# NOT RUN {
# Use sample data for testing
df = sample_raw_accel_data
# compute mims unit values and output axial values
output = mims_unit(df, epoch = '1 sec', dynamic_range=c(-8, 8), output_mims_per_axis=TRUE)
head(output)
# Use sample mhealth file for testing
filepaths = c(
system.file('extdata', 'mhealth.csv', package='MIMSunit')
)
# Test with multiple files
output = mims_unit_from_files(filepaths, epoch = "1 sec", dynamic_range = c(-8, 8))
head(output)
# }
Run the code above in your browser using DataCamp Workspace