Hello, everyone,
I am the R studio new user. I am happening an issue and can not figure it out.
My question is: I have a data set called "result", and I want to use subset function to subset the data set by one of variables "Age" (Age =old and new). Here I just want all information but Age of new.
So my code is here:
bynew<result[result$Age==new, ]
Then the error shows:
Error in result$Age == new :
comparison (1) is possible only for atomic and list types
Please help and any help is appreciated! Thanks so much!