Learn R Programming

parallelpam (version 1.4.3)

GetJRowNames: GetJRowNames

Description

Returns a R StringVector with the row names of a matrix stored in the binary format of package jmatrix, if it has them stored.

Usage

GetJRowNames(fname)

Value

A R StringVector with the row names, or the empty vector if the binary file has no row names as metadata.

Arguments

fname

String with the file name that contains the binary data.

Examples

Run this code
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")
rn<-GetJRowNames(tmpfile1)
rn

Run the code above in your browser using DataLab