search for: getcolnam

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

Did you mean: 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(1...
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
...ning: unused variable 'nrhs' tseries.cpp:1060: warning: unused variable 'info' c:/src/R/Rtools/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/ 3.4.5/bits/stl_uninitiali zed.h: In member function `std::vector<std::string, std::allocator<std::string> > tseries::getColNam es() const': c:/src/R/Rtools/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/ 3.4.5/bits/stl_uninitiali zed.h:82: warning: '__cur' might be used uninitialized in this function c:/src/R/Rtools/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/ 3.4.5/bits/stl_vector.h:...