mutate_ages: Calculates ages based on birthdates and test/MRI dates

View source: R/mutates.R

mutate_agesR Documentation

Calculates ages based on birthdates and test/MRI dates

Description

mutate_ages Creates a dataframe where age and subject timepoint have been added to the data. Both MRI and Test age are calculated, and 'Age' is the mean between these two. If only one of MRI or Test age are present, this one is used for Age.

Usage

mutate_ages(data)

Arguments

data

The MOAS or a MOAS generated file.

Value

a data frame with added/replaced age and timepoint variables.

Examples

## Not run: 
mutate_ages(data)

## End(Not run)


LCBC-UiO/MOAS documentation built on Aug. 28, 2023, 3:29 a.m.