search for: getcolnames

Displaying 3 results from an estimated 3 matches for "getcolnames".

2003 Dec 17
1
Accessing row and col names of SEXP objects
..., but I couldn't find an example. Here is the code I'm using to grab the jth column name and print it, but the colnames I'm getting are garbage. None of the following are working. void printInfo(SEXP ts) { int j; for (j=0; j<col; j++) { printf("%s\n",CHAR(STRING_ELT(GetColNames(ts), j))); printf("%s\n",CHAR(VECTOR_ELT(GetColNames(ts), j))); printf("%s\n",CHARACTER_DATA(STRING_ELT(GetColNames(ts), j))); printf("%s\n",CHARACTER_DATA(VECTOR_ELT(GetColNames(ts), j))); } } Here is the object I'm passing in: tmp <- matrix(rnorm(100...
1999 Nov 23
2
rbind problem (PR#338)
In the new version 0.90.0, rbind won't take a vector and a matrix from me, but works OK if I coerce the vector to a matrix. The following was run on a new session (i.e., no prior work), and has been duplicated on 2 machines: an SGI running Irix 6.5, and an Intel box running Red Hat Linux 6.0. Either case works fine in version 0.65.1. > t3 <- c(.5, .5) > t4 <-
2008 Mar 11
1
Rtools and GCC4 problem
>> I am trying to compile rseries from Whit Armstrong and a colleague of mine found a problem with using GCC4 I get the following error when compiling rseries g++-sjlj -Ic:/R/include -O2 -Wall -c Rutils.cpp -o Rutils.o Rutils.cpp: In function 'double* getColPointer(SEXPREC*, int)': Rutils.cpp:406: warning: deprecated conversion from string constant to 'char*'