Re: [R] 'Rscript -e' and stdout() puzzle

2011-06-23 Thread Benjamin Tyner
Thanks Bill! Next time, I'll try literacy. William Dunlap wrote: -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Benjamin Tyner Sent: Thursday, June 23, 2011 5:31 PM To: r-help@r-project.org Subject: [R] 'Rscript -e' and

Re: [R] help- subtitles for multiple charts

2011-06-23 Thread David Winsemius
On Jun 23, 2011, at 4:41 PM, jalen wrote: http://r.789695.n4.nabble.com/file/n3620982/mbeFORUM.csv mbeFORUM.csv I uploaded my data and one more time the script (*adjusted version*): Try: pMBE- MBE[MBE$left!=0,] pMBE$bt- interaction(pMBE$Block,pMBE$trt) par(mfrow=c(3,3), oma=c(2,0,2,0))

Re: [R] help- subtitles for multiple charts

2011-06-23 Thread David Winsemius
On Jun 23, 2011, at 10:40 PM, David Winsemius wrote: On Jun 23, 2011, at 4:41 PM, jalen wrote: http://r.789695.n4.nabble.com/file/n3620982/mbeFORUM.csv mbeFORUM.csv I uploaded my data and one more time the script (*adjusted version*): To get the Block and Trt text as in the original

[R] Converting an ftable (contingency table) to a dataframe in R

2011-06-23 Thread Mark Alen
I am generating an ftable (by running ftable on the results of a xtabs command) and I am getting the following.                                                                    Var1  Var2 date                 group                                                2007-01-01          q1          

[R] extract worksheet names from an Excel file

2011-06-23 Thread Shi, Tao
Hi list, Is there a R function I can use to extract the worksheet names from an Excel file?  If no, any other automatic ways (not using R) to do this? thanks! ...Tao __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] extract worksheet names from an Excel file

2011-06-23 Thread Bill.Venables
Package XLConnect appears to provide this kind of thing. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Shi, Tao Sent: Friday, 24 June 2011 2:42 PM To: r-help@r-project.org Subject: [R] extract worksheet names from an Excel file

Re: [R] Converting an ftable (contingency table) to a dataframe in R

2011-06-23 Thread Richard M. Heiberger
Use as.data.frame() See ?ftable for details. ftable(Titanic, row.vars = 1:3) as.data.frame(.Last.value) Rich On Thu, Jun 23, 2011 at 10:58 PM, Mark Alen linux_...@yahoo.com wrote: I am generating an ftable (by running ftable on the results of a xtabs command) and I am getting the

Re: [R] extract worksheet names from an Excel file

2011-06-23 Thread David Scott
On 24/06/11 16:55, bill.venab...@csiro.au wrote: Package XLConnect appears to provide this kind of thing. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Shi, Tao Sent: Friday, 24 June 2011 2:42 PM To: r-help@r-project.org

[R] replacing empty cells, and Date question

2011-06-23 Thread Keun-Hyung Choi
Hello, I have a data set like one below. First, I'd like to replace the empty cells with NA, and then the one immediately above. I could replace NAs with the immediate one, but don't know for the empty cells. index - which(is.na(data1$year)) while (any(index)) { dummy$data1[index] -

Re: [R] extract worksheet names from an Excel file

2011-06-23 Thread Shi, Tao
Thank you, David and Bill!  I'll try that. ...Tao - Original Message - From: David Scott d.sc...@auckland.ac.nz To: bill.venab...@csiro.au Cc: shida...@yahoo.com; r-help@r-project.org Sent: Thursday, June 23, 2011 10:11 PM Subject: Re: [R] extract worksheet names from an Excel

<    1   2