formatData: Format Data

Description Usage Arguments Value Examples

View source: R/formatData.R

Description

Read data from a file.The first row and the first column are the names of the data.

Usage

1
formatData(data, trans = FALSE, sep = ",")

Arguments

data

File path of the data that needs to be read.

trans

Whether you need to transpose the results.

sep

The separator of the data in the file.

Value

Data in matrix format read from file.

Examples

1
2
3
data(COAD_Methy)
write.csv(COAD_Methy, 'temp.csv')
mydata <- formatData('temp.csv', sep = ',')

GaoLabXDU/CEPICS documentation built on June 9, 2020, 2:31 a.m.