Learn R Programming

oreo (version 1.0)

rpp_read2: Read function

Description

This function reads data from a dataframe

Usage

rpp_read2(dat, selected = c(2, 3, 4, 0, 0, 1, 0, 0), ...)

Arguments

dat

dataframe of input

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

Examples

Run this code
# NOT RUN {
data(mydata)
df <- rpp_read2(mydata , selected=c(2, 3, 4, 0, 0, 1, 0, 0))
 
# }

Run the code above in your browser using DataLab