Description Usage Arguments Details
(Vertically) expand a data.frame or
data.table by adding an interval of values around
every value in a column.
1  | pad_column(dt, col, times, lag.name = NULL)
 | 
dt | 
 
  | 
col | 
 column to pad  | 
times | 
 sequence of values to perturb   | 
lag.name | 
 name to use for column with   | 
Useful for constructing a data.table containing all
points "around" the values in dt. For example, by
applying pad_column to a time column one adds time
points around those in dt.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.