Re: [R] Problem with Freq function {prettyR}

2008-06-14 Thread ukoenig
Thank you Jim, the error message appeared, as I tried to run an example from the wonderful script „R for SAS and SPSS Users“ written by Bob Muenchen (p. 76): http://oit.utk.edu/scc/RforSAS&SPSSusers.pdf This is the code on page 76: # Frequencies & percents using the freq function # from the prett

Re: [R] Problem with Freq function {prettyR}

2008-06-14 Thread Jim Lemon
[EMAIL PROTECTED] wrote: >> ... 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<-

Re: [R] Problem with Freq function {prettyR}

2008-06-13 Thread ukoenig
Thanks a lot, Jim! > Since this is a contributed package, you should be contacting the > maintainer (as mentioned in the posting guide). sorry > > Anyway, the problem occurs because in the second case you have a factor > in the first column and numeric in the second. This part of the code >

Re: [R] Problem with Freq function {prettyR}

2008-06-13 Thread James W. MacDonald
Since this is a contributed package, you should be contacting the maintainer (as mentioned in the posting guide). Anyway, the problem occurs because in the second case you have a factor in the first column and numeric in the second. This part of the code will illustrate what I mean: for (i i

[R] Problem with Freq function {prettyR}

2008-06-13 Thread ukoenig
Does someone have an idea? Thanks a lot! Udo Quoting Udo <[EMAIL PROTECTED]>: > 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",

[R] Problem with Freq function {prettyR}

2008-06-12 Thread Udo
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=sampl