: Re: [R] One silly question about "tapply output"
To: "Vincy Pyne"
Received: Wednesday, October 27, 2010, 11:28
AM
Assign your result to an object and then write out the object as a csv
file. For example:
x<-data.frame(rating=rep(letters[1:3],2),rate=runif(1:6)) # example
dear Vincy,
Firstly, a suggestion: to increase the probability of getting help, you
should provide reproducible code (people can do "copy-and-paste" of your
code and to modify the code to obtain the response.. )
However a possible solution (not tested, of course..) could be simply
a<-tapply(r
Or,
tap <- tapply(rate, rating, mean)
data.frame(Rating=as.factor(rownames(tap)), Mean=as.vector(tap))
remko
--
View this message in context:
http://r.789695.n4.nabble.com/One-silly-question-about-tapply-output-tp3015202p3015274.html
Sent from the R help mailing list archive at Nabble.com.
On 2010-10-27 03:39, Vincy Pyne wrote:
Dear R helpers
I have a data which gives Month-wise and Rating-wise Rates. So the input file
is something like
month rating rate
JanuaryAAA 9.04
February AAA 9.07
...
Dear R helpers
I have a data which gives Month-wise and Rating-wise Rates. So the input file
is something like
month rating rate
January AAA 9.04
February AAA 9.07
..
.
5 matches
Mail list logo