To: arun smartpink...@yahoo.com
Sent: Wednesday, August 21, 2013 4:49 PM
Subject: Re: [R] ave function
Arun--
Thanks I had no idea about dput. I really appreciate your help. I have
attached an example data set from dput. Not to worry the ID#s have been
changed but I wanted to include them
(Clean$TERM,Clean$INST_NUM)),function(x)
shapiro.test(x$GRADE))
A.K.
- Original Message -
From: Robert Lynch robert.b.ly...@gmail.com
To: r-help@r-project.org
Cc:
Sent: Tuesday, August 13, 2013 1:46 PM
Subject: [R] ave function
I've written the following function
CoursePrep
.
From: Robert Lynch robert.b.ly...@gmail.com
To: arun smartpink...@yahoo.com
Cc: R help r-help@r-project.org
Sent: Tuesday, August 20, 2013 8:00 PM
Subject: Re: [R] ave function
I tried
lapply(split(Clean,list(Clean$TERM,Clean$INST_NUM)),function(x)
shapiro.test(x$GRADE))
and I
I've written the following function
CoursePrep - function (Source, SaveName) {
Clean$TERM - as.factor(Clean$TERM)
Clean$INST_NUM - as.factor(Clean$INST_NUM)
Clean$zGrade - with(Clean, ave(GRADE., list(TERM, INST_NUM), FUN =
scale))
write.csv(Clean,paste(SaveName, csv, sep =.), row.names
Hi,
You could try:
lapply(split(Clean,list(Clean$TERM,Clean$INST_NUM)),function(x)
shapiro.test(x$GRADE))
A.K.
- Original Message -
From: Robert Lynch robert.b.ly...@gmail.com
To: r-help@r-project.org
Cc:
Sent: Tuesday, August 13, 2013 1:46 PM
Subject: [R] ave function
I've written
5 matches
Mail list logo