Skip to content
Prev 279939 / 398502 Next

nice report generator?

Hello again Duncan,
I am sorry it took me two days to get back to your response.

Regarding reshape -
It is well presented here: http://www.jstatsoft.org/v21/i12
And there is also more information about it here: http://had.co.nz/reshape/

After playing around with it, I wrote a small "bridge" between {reshape}
and {tables} in a function called "tabular.cast_df".  I am attaching the
code (with self contained examples) to this e-mail.

I would be happy for any revisions from either you or anyone else on the
list.

While working on this, I found something which might be a bug in {tables}
(either in the way I am using the function, or in the way that it works),
please see example bellow:




# loading libraries
library(tables)
library(reshape)

# getting our data ready
names(airquality) <- tolower(names(airquality))
airquality2 <- airquality
airquality2$temp2 <- ifelse(airquality2$temp > median(airquality2$temp),
"hot", "cold")
aqm <- melt(airquality2, id=c("month", "day","temp2"), na.rm=TRUE)
colnames(aqm)[4] <- "variable2" # because otherwise the function is having
problem when relying on the melt function of the cast object
head(aqm,4)
  # month day temp2 variable2 value
# 1     5   1  cold     ozone    41
# 2     5   2  cold     ozone    36
# 3     5   3  cold     ozone    12

# possible BUG ?!
tabular(month*temp2~variable2*result_variable, data = m_xx)
# this one gets the "temp2" header in the first 2 columns (instead of in
only the second column).





----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili at gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------
On Fri, Dec 9, 2011 at 1:51 AM, Duncan Murdoch <murdoch.duncan at gmail.com>wrote:

            

Thread (35 messages)

Michael nice report generator? Dec 7 Steve Lianoglou nice report generator? Dec 7 Sarah Goslee nice report generator? Dec 7 Janko Thyson nice report generator? Dec 7 Michael nice report generator? Dec 7 Sarah Goslee nice report generator? Dec 7 Duncan Murdoch nice report generator? Dec 7 Nutter, Benjamin nice report generator? Dec 7 Michael nice report generator? Dec 7 Abhijit Dasgupta nice report generator? Dec 7 Liviu Andronic nice report generator? Dec 7 Michael nice report generator? Dec 7 Richard M. Heiberger nice report generator? Dec 7 Yihui Xie nice report generator? Dec 7 Gabor Grothendieck nice report generator? Dec 7 Duncan Murdoch nice report generator? Dec 7 Gabor Grothendieck nice report generator? Dec 7 Rainer Schuermann nice report generator? Dec 7 Michael nice report generator? Dec 7 Gabor Grothendieck nice report generator? Dec 7 R. Michael Weylandt nice report generator? Dec 7 Tal Galili nice report generator? Dec 8 Michael nice report generator? Dec 8 Richard M. Heiberger nice report generator? Dec 8 Duncan Murdoch nice report generator? Dec 8 Tal Galili nice report generator? Dec 8 Michael nice report generator? Dec 8 Tal Galili nice report generator? Dec 8 Duncan Murdoch nice report generator? Dec 8 Tal Galili nice report generator? Dec 10 Greg Snow nice report generator? Dec 14 Richard M. Heiberger nice report generator? Dec 14 Greg Snow nice report generator? Dec 14 Greg Snow nice report generator? Dec 14 Richard M. Heiberger nice report generator? Dec 14