Learn R Programming

REDCapExporter (version 0.1.0)

format_record: Format Record

Description

Use REDCap project metadata to build a well formatted data.frame for the record.

Usage

format_record(record, metadata = NULL, col_type = NULL, ...)

Arguments

record

a rcer_raw_record object.

metadata

a rcer_metadata or rcer_raw_metadata object. Will be ignored if col_type is defined.

col_type

a rcer_col_type object.

...

other arguments passed to col_type

Value

A data.frame

Examples

Run this code
# NOT RUN {
data("avs_raw_metadata")
data("avs_raw_record")

avs <- format_record(avs_raw_record, avs_raw_metadata)

str(avs)

# }

Run the code above in your browser using DataLab