Hi,
I just ran into an error using compareGroups. I've got at data frame with 4884 obs. in 8 variables (7 factor variables, 1 numeric). When trying to compareGroups like this:
compareGroups(SmB ~ . -Beh, data = dfDem)
I get the following error:
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 0, 4884
Strange enough, when I change the data.frame to a matrix and back into a data.frame, it just works. What am I doing wrong or what is wrong with my data frame?
Kind regards
Björn