logo-MindMajix
I
Irshad Mohammad

Posted on 29th April 2025|156 views

0
votes

$ Operator Is Invalid For Atomic Vectors

how to resolve the error $ operator is invalid for atomic vectors?

here is my code 

y<-c(1,2) 

names(y)<- c("marvel","adam") 

y$ed

But, why am i getting the error called $ operator is invalid for atomic vectors

 

Answers

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number