[R] Running a PERL script from R

2007-09-07 Thread Pierce, Ken
Is there a way to run a simple perl script from R? Kenneth B. Pierce Jr. Research Ecologist Landscape Ecology, Modeling, Mapping and Analysis Team PNW Research Station - USDA-FS 3200 SW Jefferson Way, Corvallis, OR 97331 [EMAIL PROTECTED] 541 750-7393

Re: [R] Running a PERL script from R

2007-09-07 Thread Pierce, Ken
I've tried various configurations of .script, system and shell to no avail. It seems to pause and run something but then no output is created. -Original Message- From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED] Sent: Friday, September 07, 2007 1:11 PM To: Pierce, Ken Cc: r-help Subject

[R] Nested source() errors

2006-10-18 Thread Pierce, Ken
Does anyone know of any issues with nesting source() calls within multiple scripts? I have at least one script which always finds errors when I source it but runs fine when run on its own. It containd source() calls to other scripts and it seems to fail during the first nested source() command.

[R] problem coercing truncated character vector to levels

2006-09-20 Thread Pierce, Ken
Dear R wizes, I have a data.frame of species abundances with column names consisting of 4 letter codes then an underscore and a number like this: abco_1, abco_2, abco_3, psm_1, psme_2, psme_3, etc. I would like to get an identifier for all the abco, and psme and other species etc. I used

Re: [R] problem coercing truncated character vector to levels

2006-09-20 Thread Pierce, Ken
) Ken From: nalluri pratap [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 4:03 PM To: Pierce, Ken Subject: Re: [R] problem coercing truncated character vector to levels hi, Try this one spec.count- strtrim(c(abco_1, abco_2, abco_3, psm_1, psme_2

[R] variables in object names

2006-09-12 Thread Pierce, Ken
Is there any way to put an argument into an object name. For example, say I have 5 objects, model1, model2, model3, model4 and model5. I would like to make a vector of the r.squares from each model by code such as this: rsq - summary(model1)$r.squared for(i in 2:5){ rsq - c(rsq,

Re: [R] variables in object names

2006-09-12 Thread Pierce, Ken
Thanks to all who showed me to the get() function. That works like a charm. Ken From: David Barron [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:24 PM To: Pierce, Ken; r-help Subject: Re: [R] variables in object names The trick is to use

Re: [R] Saving Graphics

2005-09-29 Thread Pierce, Ken
savePlot has been working quite well for me. Ken ~~~ Kenneth B. Pierce Jr. Research Ecologist Forestry Sciences Laboratory 3200 SW Jefferson Way Corvallis, OR 97331 [EMAIL PROTECTED] 541 750-7393 -Original Message- From: [EMAIL PROTECTED]

Re: [R] dumping plots

2005-09-28 Thread Pierce, Ken
There's the xpinch and ypinch parameters in the windows() device call. However, as an addition to this question, how do you specify output, say with the savePlot function, to maximize the plot area on an 8 1/2 x 11 sheet of paper? Ken ~~~ Kenneth B. Pierce Jr. Research