rc_fill: Fills in empty rows for categorical data

View source: R/rc_fill.R

rc_fillR Documentation

Fills in empty rows for categorical data

Description

Takes a data point which only occurs in a single event (row) and copies that data to all rows for each participant (or other grouping variable assigned by group_by). This function is particularly useful for making filtering operations more straight forward.

Usage

rc_fill(record_data, ..., group_by = getOption("redcap_bundle")$id_field)

Arguments

record_data

Dataframe. Record data exported from REDCap

...

Variables to be filled. Variable names must be quoted.

group_by

Variable(s) to group data by. The project's record_id field is used by default.

Author(s)

Marcus Lehr


chillywings/rctools documentation built on Aug. 9, 2024, 11:52 p.m.