Just learning about data frames in R Studio through Coursera and having trouble understanding the return error.

mutate(people, age_in _20 = age+20) ... error says age_in _20 must be size 1 not size 4. Not sure what this means. Thank you

Hi, welcome to the forum.

I think we need a FAQ: How to do a minimal reproducible example ( reprex ) for beginners

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need.

This may not be the problem, but 'age_in _20' has a space. It should be 'age_in_20'.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.