read.table.idframe: Read the contents of a table-formatted file

Description Usage Arguments Details Value See Also Examples

Description

Read the contents of an file in table format into a idframe object.

Usage

1
2
read.table.idframe(file, header = TRUE, sep = ",", ninputs = 0, Ts = 1,
  unit = c("seconds", "minutes", "hours", "days")[1], ...)

Arguments

file

the path to the file to read

header

a logical value indicating whether the first row corresponding to the first element of the rowIndex vector contains the names of the variables. (Default: TRUE)

sep

the field separator character. Values on each line of the file are separated by this character. (Default: ",")

ninputs

the number of input columns. (Default: 0)

Ts

sampling interval (Default: 1)

unit

Time Unit (Default: "seconds")

...

additional arguments to be passed to the read.table function

Details

The read.table.idframe function uses the read.table function, provided by the utils package, to read data from a table-formatted file and then calls the read.idframe function to read the data into a idframe object

Value

an idframe object

See Also

read.table

Examples

1
2
3
4
5
dataMatrix <- data.frame(matrix(rnorm(1000),ncol=5))
colnames(dataMatrix) <- c("u1","u2","y1","y2","y3")
write.csv(dataMatrix,file="test.csv",row.names=FALSE)
 
data <- read.table.idframe("test.csv",ninputs=2,unit="minutes")

sysid documentation built on May 2, 2019, 4:18 a.m.