getSubjects: Obtain a list of all subjects in a certain study.

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/getSubjects.R

Description

This function will retrieve a list of all subjects and their personal information for a certain study.

Usage

1

Arguments

study.name

a character string giving the name of a study

as.data.frame

logical. If TRUE (default setting) the subject information is returned as a data.frame. If set to FALSE the function returns the information as a list.

Details

The function will return for each subject the subjectID and their personal information, such as for example sex, age and ethnicity.

Value

A data.frame (or list) is returned, whereby each row (or list element) contains the information partaining to one subject.

Note

To be able to access a transmart database, you need to be connected to the server the database is on. If you haven't connected to the server yet, establish a connection using the connectToTransmart function.

Author(s)

Tim Dorscheidt, Jan Kanis, Rianne Jansen. Contact: [email protected]

See Also

getStudies

Examples

1
2
3
4
5
## Not run: 
    # The following will retrieve a data.frame with subject-information for the study "foo"
    getSubjects("foo")
    
## End(Not run)

transmart/RInterface documentation built on Oct. 18, 2017, 2:11 a.m.