ReadTable reads the raw tri-axial accelerometry data in csv files.

ReadTable(filename)

Arguments

filename

The name of the csv file.

Value

The ReadTable returns a data frame with 4 columns: Index, X, Y and Z. Index is the column for the indices of acceleration. X, Y and Z are for the acceleration time series in each direction.

Details

The function reads csv files containing only three columns: acceleration time series of x-, y- and z-axis.

Examples

filename = system.file("extdata","sample_table.csv.gz",package="ActivityIndex") res = ReadTable(filename)