[R] Command Line Arguments

2010-07-01 Thread Bierbryer, Andrew
Do you know to pass named command line arguments into an R script? I have used littler and argv to pass a vector of arguments, but this requires you to maintain the order of the arguments. I'm wondering if there is a way to do this when you do not know the order of the arguments being passed in.

Re: [R] do.call and timeSeries

2009-11-10 Thread Bierbryer, Andrew
uesday, November 10, 2009 2:38 PM To: Bierbryer, Andrew Cc: r-help@r-project.org Subject: Re: [R] do.call and timeSeries Bierbryer, Andrew wrote: > Does anyone know why the following code hangs on the do.call, but works > fine when I either comment out the require(timeSeries) or only do 2 &

[R] do.call and timeSeries

2009-11-10 Thread Bierbryer, Andrew
Does anyone know why the following code hangs on the do.call, but works fine when I either comment out the require(timeSeries) or only do 2 levels of a for loop instead of 3? Thanks, Andrew Bierbryer require(timeSeries) num <- 1 x.list <- list() for ( i in 1:10 ) {

[R] Returning Variables in R to Linux Shell

2009-04-22 Thread Bierbryer, Andrew
If I have an R script that I am executing from a command line in linux, do you know how I can return the value of the variable in my R script to the linux environment without writing it to a file in my R script and then reading the file through cat? For example, if I had a simple one line R