GetJColNames | R Documentation |
Returns a R StringVector with the column names of a matrix stored in the binary format of package jmatrix, if it has them stored.
GetJColNames(fname)
fname |
String with the file name that contains the binary data. |
A R StringVector with the column names, or the empty vector if the binaryfile has no column names as metadata.
Rf <- matrix(runif(48),nrow=6)
rownames(Rf) <- c("A","B","C","D","E","F")
colnames(Rf) <- c("a","b","c","d","e","f","g","h")
tmpfile1=paste0(tempdir(),"/Rfullfloat.bin")
JWriteBin(Rf,tmpfile1,dtype="float",dmtype="full",comment="Full matrix of floats")
cn<-GetJColNames(tmpfile1)
cn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.