Error in data.frame

29 views
Skip to first unread message

Björn Fisseler

unread,
Jan 7, 2016, 9:53:32 AM1/7/16
to compareGroups Forum
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

compareGroups

unread,
Jan 16, 2016, 4:45:01 PM1/16/16
to compareGroups Forum
 Hi Björn,

Could you provide the data frame in order to replicate your analyses to my email (see compareGroups package mantainer) and try to figure out what happens?
I'm sorry but without the data.frame I have no idea what the problem could be.
Thanks.

Isaac.
Reply all
Reply to author
Forward
0 new messages