Learn R Programming

oreo (version 1.0)

rpp_read: Read function

Description

This function reads data from the selected file, and assign it to a dataframe

Usage

rpp_read(filename, header = TRUE, selected = c(2, 3, 4, 0, 0, 1, 0, 0), ...)

Arguments

filename

the name of the file to read

header

TRUE if colnames are present FALSE if colnames are not present

selected

the user should input the number of the columns that represent strain-smoothed (gamma), strain rate-smoothed (gamma dot), stress smoothed (tau recon), Elast-Stress (FTtau_e), Visco-Stress (FTtau_v), raw time (time), raw stress (tau), raw strain (gamma) i.e. selected=c(2, 3, 4, 0, 0, 1, 0, 0) means that the second column of your data is the strain rate smoothed, the third column is the stress smoothed, the stress smoothed is the fourth column in the original data, and finally that we do not have data for the raw stress and raw strain

...

parameters of read.csv

Value

a dataframe with all the columns assigned