get.data.dims: Obtains matrix dimensions

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Obtains the number of rows and columns in a matrix that is stored in a text file. The entries in the file should be either space or tab delimited. No missing values.

Usage

1
get.data.dims(genome.file)

Arguments

genome.file

Name of any file that contains a matrix of values in it, separated by either spaces or tabs.

Value

out$nrows

Number of rows in the matrix

out$ncols

Number of columns in the matrix

Note

Uses LINUX's wc functionality.

Author(s)

Olga Vesselova

See Also

run1.moss

Examples

1
2
3
write(rbinom(200,1,0.5), file="randbinary.txt", append=FALSE, sep=" ", ncolumns=50)
get.data.dims("randbinary.txt")
try(system("rm randbinary.txt*"))

genMOSSplus documentation built on May 1, 2019, 10:31 p.m.