From 80328d6e9a1165c66eec2bc5b4bc8b7d8532ed31 Mon Sep 17 00:00:00 2001 From: Andreas Gammelgaard Damsbo Date: Wed, 27 Nov 2024 09:56:32 +0100 Subject: [PATCH] new helper functions for data labelling based on data dictionary --- man/apply_factor_labels.Rd | 19 +++++++++++++++++++ man/apply_field_label.Rd | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 man/apply_factor_labels.Rd create mode 100644 man/apply_field_label.Rd diff --git a/man/apply_factor_labels.Rd b/man/apply_factor_labels.Rd new file mode 100644 index 0000000..03e8159 --- /dev/null +++ b/man/apply_factor_labels.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/read_redcap_tables.R +\name{apply_factor_labels} +\alias{apply_factor_labels} +\title{Preserve all factor levels from REDCap data dictionary in data export} +\usage{ +apply_factor_labels(data, meta) +} +\arguments{ +\item{data}{REDCap exported data set} + +\item{meta}{REDCap data dictionary} +} +\value{ +data.frame +} +\description{ +Preserve all factor levels from REDCap data dictionary in data export +} diff --git a/man/apply_field_label.Rd b/man/apply_field_label.Rd new file mode 100644 index 0000000..49796b3 --- /dev/null +++ b/man/apply_field_label.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/read_redcap_tables.R +\name{apply_field_label} +\alias{apply_field_label} +\title{Apply REDCap filed labels to data frame} +\usage{ +apply_field_label(data, meta) +} +\arguments{ +\item{data}{REDCap exported data set} + +\item{meta}{REDCap data dictionary} +} +\value{ +data.frame +} +\description{ +Apply REDCap filed labels to data frame +}