Description Usage Arguments Details Value Examples
A useful function for working with data that aren't sampled at regular intervals and(or) contain gaps. This can present issues when, for example, trying to apply time-windowed rolling operations.
1  | resample(.data, time_column = "time.s", Hz = 1L, fill = 0L)
 | 
.data | 
 data.frame; the data to be resampled on the basis of
  | 
time_column | 
 string; identifier for the column in   | 
Hz | 
 numeric (scalar); the desired sampling frequency.  | 
fill | 
 the value with which to "fill" new rows in the returned
data. For most purposes this should be either   | 
For time-windowed rolling operations, fill should logically
be set to 0L; the use of NAs could generate large runs of NAs.
a resampled tbl_df, with a  new Hz
attribute added.
1 2 3 4 5 6 7  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.