# NOT RUN {
# Use sample data for testing
df = sample_raw_accel_data
# Show df
illustrate_signal(df, range=c(-8, 8))
# simulate new data by changing range and sampling rate
new_df = simulate_new_data(df, new_range=c(-2, 2), new_sr = 30)
# Show new df
illustrate_signal(new_df, range=c(-2, 2))
# }
Run the code above in your browser using DataLab