dts_bound | R Documentation |
Values outside the bounds are set to missing values.
dts_bound(
x,
dtt = "DateTime",
colname = "Value",
bounds = c(-Inf, Inf),
adjust = FALSE
)
x |
A dts data frame |
dtt |
A string specifying the column with the Date or POSIXct values. |
colname |
A character vector specifying the column(s) with the other values. |
bounds |
A sorted double vector of the lower and upper permitted bounds. |
adjust |
A flag indicating whether to adjust values outside the bounds to the permitted bounds or whether to set to NA (the default). |
A data frame
dts_bound(dts_data[1:5,], bounds = c(0,Inf))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.