# NOT RUN {
# Use sample data
df = sample_raw_accel_data
# Plot input
illustrate_signal(df, plot_maxed_out_line=FALSE)
# Interpolate to 100 Hz
sr = 100
# Interpolate the entire sequence of data
output = interpolate_signal(df, sr=sr)
# Plot output
illustrate_signal(output, plot_maxed_out_line=FALSE)
# Interpolate part of the sequence
output = interpolate_signal(df, sr=sr, st=df[10,1], et=df[100,1])
# Plot output
illustrate_signal(output, plot_maxed_out_line=FALSE)
# }
Run the code above in your browser using DataLab