as: as.*

Description Usage Arguments Details Examples

Description

Coerce REDCapExporter objects to data.frame.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## S3 method for class 'rcer_raw_metadata'
as.data.frame(x, ...)

## S3 method for class 'rcer_raw_record'
as.data.frame(x, ...)

## S3 method for class 'rcer_raw_project'
as.data.frame(x, ...)

## S3 method for class 'rcer_raw_user'
as.data.frame(x, ...)

## S3 method for class 'rcer_raw_metadata'
as.data.table(x, ...)

## S3 method for class 'rcer_raw_record'
as.data.table(x, ...)

## S3 method for class 'rcer_raw_project'
as.data.table(x, ...)

## S3 method for class 'rcer_raw_user'
as.data.table(x, ...)

Arguments

x

any R object.

...

additional arguments to be passed to or from methods.

Details

These functions are S3 methods for as.data.frame for the raw exports from the REDCap API.

Examples

1
2
3
4
5
data("avs_raw_record")

avs_record <- as.data.frame(avs_raw_record)

str(avs_record)

REDCapExporter documentation built on Feb. 2, 2021, 5:15 p.m.