add_person_properties: Add person properties to a project

View source: R/dexter.R

add_person_propertiesR Documentation

Add person properties to a project

Description

Add, change or define person properties in a dexter project. Person properties defined here will also be automatically imported with add_booklet

Usage

add_person_properties(db, person_properties = NULL, default_values = NULL)

Arguments

db

a connection to a dexter database, e.g. the output of start_new_project or open_project

person_properties

A data frame containing a column person_id and 1 or more other columns with person properties (e.g. education_type, birthdate)

default_values

a list where the names are person_properties and the values are defaults. The defaults will be used wherever the person property is unknown.

Details

Due to limitations in the sqlite database backend that we use, the default values for a person property can only be defined once for each person_property

Value

nothing


dexter documentation built on Sept. 11, 2024, 6:42 p.m.