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
[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<-
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
>
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
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",
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
6 matches
Mail list logo