Mutate new columns into sample_info

mutate2sample(
  object,
  what = c("mean_intensity", "median_intensity", "sum_intensity", "na_number", "na_prop",
    "date", "week", "time"),
  according_to_variables = "all",
  ...
)

# S3 method for wearable_dataset
mutate2sample(
  object,
  what = c("sum_intensity", "mean_intensity", "median_intensity", "na_number", "na_prop",
    "date", "week", "time"),
  according_to_variables = "all",
  ...
)

Arguments

object

wearable_dataset

what

which you want to mutate

according_to_variables

(required) What variables used to calculate. Default is "all". If you want to use only several variables, provide their names as a vector.

...

other params

Value

wearable_dataset or data.frame.