bb_1440: Summarize Biobank Acceleration File into 1440 format

Description Usage Arguments Value Note

View source: R/bb_1440.R

Description

Summarize Biobank Acceleration File into 1440 format

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
bb_1440(
  df,
  summarize_over_day = FALSE,
  summarize_day_func = "mean",
  na.rm = TRUE,
  keep_imputed = TRUE,
  long = FALSE,
  ...
)

bb_1440_count(
  df,
  summarize_over_day = FALSE,
  keep_imputed = TRUE,
  long = FALSE,
  ...
)

Arguments

df

A data.frame or tbl from bb_read

summarize_over_day

Should the data be summarized over days?

summarize_day_func

function to summarize days over

na.rm

Should NAs be removed?

keep_imputed

Should the imputed values be kept in this data set or counted before summarization

long

Should the data be kept long? If so, not in 1440 format.

...

Additional arguments to pass to bb_summarize

Value

A table of the day (if summarize_over_day = FALSE) and 1440 columns

Note

bb_1440_count counts the number of non-imputed measures


muschellij2/biobankr documentation built on April 13, 2020, 7:33 a.m.