Posted on 29th April 2025|156 views
how to resolve the error $ operator is invalid for atomic vectors?
here is my code
y<-c(1,2)
y
names(y)<- c("marvel","adam")
y$ed
But, why am i getting the error called $ operator is invalid for atomic vectors