Why do I get this error when I try to group measures?

grouping eating measures(within gender)
girls_data$m_eating_behaviors=rowMeans(girls_data[,c("m_eating8", "m_eating7","m_eating4", "m_eating3"),], na.rm = TRUE)
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'rowMeans': undefined columns selected

Can you supply us with some sample data. It is difficult to see what is happening without it.

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