full_days | R Documentation |
Drop incomplete days from a dataset
full_days(
df,
time_var = "Timestamp",
drop = c("all", "leading", "trailing", "label"),
epoch_length_sec = NULL,
label_name = "is_full_day",
digits = 6,
check_continuous = TRUE,
discontinuous_action = c("stop", "warn"),
...
)
df |
the input data frame |
time_var |
character scalar giving the column name of the variable
containing timestamp information (either |
drop |
character scalar indicating which incomplete days to drop.
Can be |
epoch_length_sec |
optional. The epoch length of the data. If no value
is passed, |
label_name |
character scalar. Name to give the indicator column when
|
digits |
see |
check_continuous |
logical. Check the dataframe after dropping to see if it is continuous? |
discontinuous_action |
character scalar telling what to do if a
discontinuity is expected when |
... |
arguments passed to |
an updated copy of df
, in which incomplete days are addressed
according to the selected value of drop
.
df_continuous
data(ex_data, package = "PAutilities")
ex_data <- full_days(
ex_data, "DateTime", "label", 60,
"full_day_indicator", tz = "UTC"
)
head(ex_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.