[R] topical guide to R packages

2005-07-16 Thread Vivek Rao
for time series data uroot: Unit root tests and graphics for seasonal time series I would like to see lists corresponding to other categories of IMSL. Another classification system is GAMS at http://gams.nist.gov/Classes.plain . Section L, Statistics, probability, would be relevant. Regards, Vivek Rao

[R] line numbers and file names in error messages

2005-04-15 Thread Vivek Rao
Many of my R scripts call other R scripts using the source function. If there is a syntax error in one of the scripts, I get an error message such as Error in parse(file, n, text, prompt) : syntax error on line 1 but the name of the file where the error occurs is not given. Other error messages

[R] terminate R program when trying to access out-of-bounds array element?

2005-04-13 Thread Vivek Rao
I want R to stop running a script (after printing an error message) when an array subscript larger than the length of the array is used, for example x = c(1) print(x[2]) rather than printing NA, since trying to access such an element may indicate an error in my program. Is there a way to get

[R] removing characters from a string

2005-04-12 Thread Vivek Rao
Is there a simple way in R to remove all characters from a string other than those in a specified set? For example, I want to keep only the digits 0-9 in a string. In general, I have found the string handling abilities of R a bit limited. (Of course it's great for stats in general). Is there a

Re: [R] removing characters from a string

2005-04-12 Thread Vivek Rao
Thanks for all the helpful replies to my question about string handling. I will try to be more careful in making general comments about R, about which I still have much to learn. The string handling I need to do is not that sophisticated (somewhat contradicting my previous message) and can be

[R] Why is 1 a double?

2005-04-12 Thread Vivek Rao
Based on examples in R books and the syntax of other programming languages, I expected that n - 10 assigns the integer 10 to n, but typeof(n) is actually a double. The subscripting expression x[1] is valid, but sprintf(\n %d,1) is not, giving the error Error in sprintf(\n %d, 1) : use format

[R] static analysis tools for R code?

2005-04-11 Thread Vivek Rao
An R script will terminate when one tries to use an undefined variable, with a message such as Error in print(x) : Object x not found This run-time error might occur after the script has already been running for some time. In some cases it would be nice to get such warnings before the script is

[R] restrict namespace inside functions?

2005-04-08 Thread Vivek Rao
mult. Thanks. Vivek Rao __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] stdev, skew, kurtosis, ACF from summary function?

2005-03-03 Thread Vivek Rao
, I would also like to display the autocrrelations of each series up to a certain lag, as part of the summary. Thanks. Vivek Rao Philadelphia, USA __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read