# NOT RUN {
default_ops = options()
options(digits.secs=3)
# Use the sample actigraph csv file provided by the package
filepath = system.file('extdata', 'actigraph_timestamped.csv', package='MIMSunit')
# Check file format
readLines(filepath)[1:15]
# Load the file with timestamp column
df = import_actigraph_csv(filepath)
# Check loaded file
head(df)
# Check more
summary(df)
# Use the sample actigraph csv file without timestamp
filepath = system.file('extdata', 'actigraph_no_timestamp.csv', package='MIMSunit')
# Check file format
readLines(filepath)[1:15]
# Load the file without timestamp column
df = import_actigraph_csv(filepath, has_ts = FALSE)
# Check loaded file
head(df)
# Check more
summary(df)
# Restore default options
options(default_ops)
# }
Run the code above in your browser using DataLab