[R] Problem with Freq function {prettyR}

ukoenig at med.uni-marburg.de ukoenig at med.uni-marburg.de
Fri Jun 13 15:32:51 CEST 2008


Does someone have an idea?
Thanks a lot!

Udo


Quoting Udo <ukoenig at med.uni-marburg.de>:

> Dear list,
> I have a problem with freq from prettyR.
>
> Please have a look at my syntax with a litte example:
>
>
> library(prettyR)
>
> #Version 1
> test.df<-data.frame(q1=sample(1:4,8,TRUE), gender=sample(c("f","m"),8,TRUE))
> test.df
> freq(test.df) #No error message
>
> #Version 2
> test.df<-data.frame(gender=sample(c("f","m"),8,TRUE), q1=sample(1:4,8,TRUE))
> test.df
> freq(test.df)
>
> Error message: "Error in vector("integer", length) : Vector size can´t be NA"
>
> Can someone tell me, why an error message occurs in version two? I am
> helpless...
>
> Thanks in advance!
>
> Udo K ö n i g
>
> --------------------------------------------
>
> Clinic for Child an Adolescent Psychiatry
> Philipps University of Marburg / Germany
>



More information about the R-help mailing list