Re: [R] how to comment off sections

2010-07-16 Thread RICHARD M. HEIBERGER
if (FALSE) { codeline 1 codeline k } On Fri, Jul 16, 2010 at 7:59 PM, Joshua Wiley wrote: > Hello, > > Is there an way to easy comment of sections of code? I was thinking > something along the lines of > > \dontrun{ > codeline 1 > > codeline k > } > > but that could be used in regul

Re: [R] how to comment off sections

2010-07-16 Thread Joshua Wiley
That's a great idea. Thanks! On Fri, Jul 16, 2010 at 5:02 PM, RICHARD M. HEIBERGER wrote: > if (FALSE)  { > codeline 1 > > codeline k > } > > > On Fri, Jul 16, 2010 at 7:59 PM, Joshua Wiley > wrote: >> >> Hello, >> >> Is there an way to easy comment of sections of code?  I was thinking >>

Re: [R] multivariate graphs, averaging on some vars

2010-07-16 Thread Wu Gong
Hi, you can try plot3d library(rgl) plot3d(x=x[,2],y=x[,3],z=rowMeans(x[,2:4])) - A R learner. -- View this message in context: http://r.789695.n4.nabble.com/multivariate-graphs-averaging-on-some-vars-tp2292039p2292076.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] RMySQL package on 64bit R for Windows

2010-07-16 Thread Steven McKinney
I think this is a question for R-devel so I'm cross-posting there with apologies. I've just acquired a Windows 7 64-bit box and also will need RMySQL eventually. Is there any information about issues involved with compiling RMySQL for Windows 64-bit? Steven McKinney Statistician Molecular Oncol

[R] package anacor possible for formula lm ?

2010-07-16 Thread elaine kuo
Dear list I found package anacor very user-friendly but wanted to learn more after reading the publication "a simple..." and its manual. Please kindly help with the following questions and thanks in advance. 1. is it possible to implement lm formula in anacor? 2. is there manual to a

Re: [R] how to comment off sections

2010-07-16 Thread Erik Iverson
On 07/16/2010 06:59 PM, Joshua Wiley wrote: Hello, Is there an way to easy comment of sections of code? I was thinking something along the lines of \dontrun{ codeline 1 codeline k } but that could be used in regular script files. When I am still working on a script, I often want to bein

Re: [R] Creating Enumerated Variables

2010-07-16 Thread Gabor Grothendieck
On Thu, Jul 15, 2010 at 10:45 AM, jdellava wrote: > > Hi, > > I am trying to create a variable counting the number of individuals based on > two variables. I am able to do it or one variable, but not two. In SAS I was > able to sort by two variables and use a first. statement to create the > count

[R] cca in vegan (formula instead of community matrix data)

2010-07-16 Thread elaine kuo
Dear List, I tried to do cca based on species data and environmental variables (formula instead of community data). However, there was an error saying row sums must be >0. I searched the previous related messages but found few solutions. Please kindly help and thank you in advance. code This is

Re: [R] cca in vegan (formula instead of community matrix data)

2010-07-16 Thread Bill.Venables
As it says, (at least) one of your rows is all zeros. CCA cannot handle such sites. You might want to try something like this: m.cca <- cca(WinterM_ratio ~ topo_mean + coast + prec_max + temp_min + evi_min, data = datam, subset = rowSums(WinterM_ratio) > 0) ### Note. (Note that you do n

[R] data.frame required for cca in ade4

2010-07-16 Thread elaine kuo
Dear List, I tried to conduct cca using csv data but failed. The message said that data.frame is required. Please kindly share how to convert a csv-imported file to a data.frame. Thank you. Elaine code rm(list=ls()) spec <-read.csv("c:/migration/M_R_20100718_winterM_spec_vegan.csv",header=T, r

[R] cca in ade4

2010-07-16 Thread elaine kuo
Dear List, I used spec and envi for cca in ade4. (both are data.frame) However, there is a message telling that error in if (nf > rank) nf <- rank R missing value in TRUE/FALSE Please kindly help how to modify the code below. Thank you. Elaine code rm(list=ls()) spec <-read.csv("c:/migration

Re: [R] how to comment off sections

2010-07-16 Thread Joshua Wiley
I use XEmacs + ESS, and looking for ways to add text to a region of code, I see it is quite easy with C-x r t. Thanks for your great advice. On Fri, Jul 16, 2010 at 7:32 PM, Erik Iverson wrote: > On 07/16/2010 06:59 PM, Joshua Wiley wrote: >> >> Hello, >> >> Is there an way to easy comment of se

[R] How to generate PDF help file for our internal R package?

2010-07-16 Thread noclue_
Currently, we have developed an R package for our company's internal use (at least for now). I have successfully built the package and generated zip file which can be easily installed. However, I am not sure how to generate the big HELP file in PDF. Right now, I have about 30+ Rd files for t

Re: [R] How to generate PDF help file for our internal R package?

2010-07-16 Thread Romain Francois
Le 17/07/10 08:23, noclue_ a écrit : Currently, we have developed an R package for our company's internal use (at least for now). I have successfully built the package and generated zip file which can be easily installed. However, I am not sure how to generate the big HELP file in PDF. Right

[R] R2HTML: how to include comments in html output

2010-07-16 Thread Vikas Rawal
Is there any way to include comments in the html output of R2HTML? Or is there any other function in any package that produces an html output including comments, commands and output of the commands. Vikas Rawal __ R-help@r-project.org mailing list http

<    1   2