[R] another automation question

2009-07-31 Thread RRRRRRRRRR!
This code works: x-letters[1:6] ycols-23:28 xcols-rep(c(3,4,5,8),each=length(ycols)) somertime-function(i,j)somers2(Pred_pres_a_indpdt[,i,,], population[,j]) results-mapply(somertime,xcols,ycols) How can I make variable h work? x-letters[1:6] ycols-23:28

[R] Using R with Hadoop/Hive for Big Data

2009-07-31 Thread Ajay ohri
Hive http://hadoop.apache.org/hive/ is a data warehouse infrastructure built on top of Hadoop that provides tools to enable easy data summarization, adhoc querying and analysis of large datasets data stored in Hadoop files. It provides a mechanism to put structure on this data and it also provides

Re: [R] How to stop an R script when running JGR on a Linux/SuSE system

2009-07-31 Thread Bernd
I wonder whether there is a more gentle way to stop an R script running on top of JGR aother than ... unplugging the power cord. there must be a bug in JGR on Lunux. Clicking the stop button should stop the script, clicking it here on my linux machine will immediately crash R together with

[R] string

2009-07-31 Thread Mohsen Jafarikia
Hello All: I am wondering how I can have dat1 and dat2 in the following loop where 'dat' and 'i' stick together to make dat1 and dat2 : ifn - MyData dat - read.table(ifn) MyData: 01 0.40 02 0.40 03 0.40 04 0.35 05 0.34 06 0.33

[R] string

2009-07-31 Thread Mohsen Jafarikia
Hello All: I am wondering how I can have dat1 and dat2 in the following loop where 'dat' and 'i' stick together to make dat1 and dat2 : ifn - MyData dat - read.table(ifn) MyData: 01 0.40 02 0.40 03 0.40 04 0.35 05 0.34 06 0.33

[R] string

2009-07-31 Thread Mohsen Jafarikia
Hello All: I am wondering how I can have dat1 and dat2 in the following loop where 'dat' and 'i' stick together to make dat1 and dat2 : ifn - MyData dat - read.table(ifn) MyData: 01 0.40 02 0.40 03 0.40 04 0.35 05 0.34 06 0.33

Re: [R] Creating a column based on data in another column

2009-07-31 Thread Mehdi Khan
got it, thank you everyone! On Fri, Jul 31, 2009 at 12:04 PM, Mehdi Khan mwk...@ucdavis.edu wrote: hello all, I have a data frame and I want to create a column which assigns a letter based upon the value in another column. The data column has velocities ranging from 0 to 1000. So for

Re: [R] string

2009-07-31 Thread Ted Harding
On 31-Jul-09 22:10:46, Mohsen Jafarikia wrote: Hello All: I am wondering how I can have dat1 and dat2 in the following loop where 'dat' and 'i' stick together to make dat1 and dat2 : ifn - MyData dat - read.table(ifn) MyData: 01 0.40 02 0.40 03 0.40 04

Re: [R] another automation question

2009-07-31 Thread stephen sefick
where is the variable used? On Fri, Jul 31, 2009 at 4:01 PM, RR!cwal...@usgs.gov wrote: This code works: x-letters[1:6] ycols-23:28 xcols-rep(c(3,4,5,8),each=length(ycols)) somertime-function(i,j)somers2(Pred_pres_a_indpdt[,i,,], population[,j])

[R] SVG output on Windows OS

2009-07-31 Thread Michael Roessler
How may one save a graphic as svg on Windows? The svg() command is recognized and functions well on Linux, etc., but not on Windows, it seems. I'm trying to use Hadley Wickam's ggplot2 and I would like to be able to save created charts as svg for later input into Illustrator. I am able to

Re: [R] scale subset of data

2009-07-31 Thread Noah Silverman
That works perfectly. Thanks! -N On 7/31/09 2:04 PM, Steve Lianoglou wrote: Hi, On Jul 31, 2009, at 4:13 PM, Noah Silverman wrote: Hi, This should be an easy one, but I have some trouble formatting the data right I'm trying to replace the column of a subset of a dataframe with the

[R] scale subsets of grouped data in data frame

2009-07-31 Thread Noah Silverman
Hello, I'm trying to duplicate what's an easy process in RapidMiner. In RM, we can simply use two operators: subgroup iteration attribute value selection (Can use a regex for the attrribute name.) I can do this in R with a lot of code and manual steps. It would be really nice to

[R] Compare lm() to glm(family=poisson)

2009-07-31 Thread Mark Na
Dear R-helpers, I would like to compare the fit of two models, one of which I fit using lm() and the other using glm(family=poisson). The latter doesn't provide r-squared, so I wonder how to go about comparing these models (they have the same formula). Thanks very much, Mark Na

Re: [R] pyramid.plot: x-axis scale

2009-07-31 Thread ws
Hi ws, You could tweak pyramid.plot in the plotrix package to do this. I guess I will live without... Unless you can spell the process out for doing that -- where is the source, where would the package download be on my machine before (Mac OS X), who would I send a working patch to. If (the

Re: [R] Compare lm() to glm(family=poisson)

2009-07-31 Thread Wensui Liu
i don't understand how you can fit a poisson model with lm() function. otherwise, how could you compare lm() with glm(...family=poisson)? On Fri, Jul 31, 2009 at 7:41 PM, Mark Namtb...@gmail.com wrote: Dear R-helpers, I would like to compare the fit of two models, one of which I fit using lm()

Re: [R] scale subsets of grouped data in data frame

2009-07-31 Thread Steve Lianoglou
Hi, On Jul 31, 2009, at 7:17 PM, Noah Silverman wrote: Hello, I'm trying to duplicate what's an easy process in RapidMiner. In RM, we can simply use two operators: subgroup iteration attribute value selection (Can use a regex for the attrribute name.) I can do this in R with a

[R] about the summary(cph.object)

2009-07-31 Thread zhu yao
Could someone explain the summary(cph.object)? The example is in the help file of cph. n - 1000 set.seed(731) age - 50 + 12*rnorm(n) label(age) - Age sex - factor(sample(c('Male','Female'), n, rep=TRUE, prob=c(.6, .4))) cens - 15*runif(n) h -

<    1   2