supp: Merge CDISC Supplemental Data

Description Usage Arguments Value Author(s) References See Also Examples

Description

Generic, with method for data.frame and keyed.

Within CDISC SDTM, data sets SUPPxx have a reasonably fixed relation to their counterparts xx, enabling an automated merge. The method for data.frame defaults to the method for keyed, which returns the merge of the two data sets.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 ## S3 method for class 'data.frame'
supp(
 	x,
 	suppx,
	...
 )
 
## S3 method for class 'keyed'
supp(
 	x,
 	suppx,
 	value= 'QVAL',  # possibly QORIG or QEVAL
	...
 )

Arguments

x

primary CDISC data set

suppx

supplemental CDISC data set

value

name of column in supplemental set where attribute names are stacked

...

ignored

Value

keyed data.frame

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com http://www.w3.org/wiki/images/6/61/HCLS$$F2F$$DrugSafety$SDTM_3.1_Implementation_Guide_v1_01.pdf See p. 124.

See Also

Examples

1
2
3
4
5
6
7
## Not run: 
library(foreign)
ex <- read.xport('ex.xpt')
suppex <- read.xort('suppex.xpt')
ex <- supp(ex, suppex)

## End(Not run)	

metrumrg documentation built on May 2, 2019, 5:55 p.m.