search for: symbolvalue

Displaying 4 results from an estimated 4 matches for "symbolvalue".

Did you mean: symbolvalues
2013 Dec 17
3
In-string variable/symbol substitution: What formats/syntax is out there?
...'Biobase' package (with some efforts), e.g. > bbsubst <- function(fmt, ...) { args <- lapply(list(...), FUN=as.character) in <- textConnection(fmt) out <- textConnection("res", open="w") on.exit({ close(in); close(out) }) copySubstitute(in, out, symbolValues=args) res } > bbsubst("pi = @pi@", pi=pi) [1] "pi = 3.14159265358979"
2003 Apr 16
0
vignette segfault bt
...ions.c:289 289 this->wpos = ftell(this->fp); (gdb) bt #0 0x080786ff in file_fgetc (con=0xbfffc830) at connections.c:289 #1 0x080a9ce1 in con_getc () at /ext/R/cvs/R-devel/src/main/gram.y:1130 #2 0x080a881b in xxgetc () at /ext/R/cvs/R-devel/src/main/gram.y:287 #3 0x080aa947 in SymbolValue (c=255) at /ext/R/cvs/R-devel/src/main/gram.y:1673 #4 0x080aab01 in token () at /ext/R/cvs/R-devel/src/main/gram.y:1744 #5 0x080aaefa in Rf_yylex () at /ext/R/cvs/R-devel/src/main/gram.y:1886 #6 0x080a87e4 in Rf_yyparse () at /usr/local/share/bison/bison.simple:595 #7 0x080a98cd in R_Parse1...
2003 Apr 05
0
sweave/gc segfault bt
...1 291 fseek(this->fp, this->rpos, SEEK_SET); (gdb) bt #0 0x080784ff in file_fgetc (con=0xbfffc8a0) at connections.c:291 #1 0x080a9f12 in con_getc () at /ext/R/cvs/R-devel/src/main/gram.y:1130 #2 0x080a8a2b in xxgetc () at /ext/R/cvs/R-devel/src/main/gram.y:287 #3 0x080aab78 in SymbolValue (c=0) at /ext/R/cvs/R-devel/src/main/gram.y:1673 #4 0x080aad30 in token () at /ext/R/cvs/R-devel/src/main/gram.y:1744 #5 0x080ab12a in Rf_yylex () at /ext/R/cvs/R-devel/src/main/gram.y:1886 #6 0x080a89f4 in Rf_yyparse () at /usr/local/share/bison/bison.simple:595 #7 0x080a9afd in R_Parse1 (stat...
2005 May 07
4
string syntactic sugar in R? - long post
Currently in R, constructing a string containing values of variables is done using 'paste' and can be an error-prone and traumatic experience. For example, when constructing a db query we have to write, paste("SELECT " value " FROM table where date ='",cdate,"'") we are getting null result from it, because without (forgotten...)