search for: r_parse_error

Displaying 2 results from an estimated 2 matches for "r_parse_error".

2009 Mar 13
6
R multiline expression grief
...r all. After much grief I have finally found the source of some weird discrepancies in results generated using R. It turns out that this is due to the way R handles multi-line expressions. Here is an example with R version 2.8.1: ---------------------------------------------------- # R-script... r_parse_error <- function () { a <- 1; b <- 1; c <- 1; d <- a + b + c; e <- a + b + c; f <- a + b + c; cat('a',a,"\n"); cat('b',b,"\n"); cat('c',c,"\n"); cat('d',d,"\n"); cat('e&...
2009 Mar 14
1
multiple hypothesis testing
...y found the source of some weird > discrepancies in results generated using R. It turns out that this is > due to the way R handles multi-line expressions. Here is an example > with R version 2.8.1: > > ---------------------------------------------------- > # R-script... > > r_parse_error <- function () > { > a <- 1; > b <- 1; > c <- 1; > d <- a + b + c; > e <- a + > b + > c; > f <- a > + b > + c; > cat('a',a,"\n"); > cat('b',b,"\n"); > cat('c',c,"\n&q...