hello. I am studying with coursera and in an R exercise was given that chunk below but when i ran it gave an error. Since I am still very new to this, I dont even know where to begin.

people <- data.frame(names, age)

Error in as.data.frame.default(x[[i]], optional = TRUE) :
cannot coerce class ‘"function"’ to a data.frame

i figured it out. i needed to create the vector for names first :upside_down_face:

1 Like

This topic was automatically closed 7 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.