Description Usage Arguments Value See Also Examples
View source: R/processVISION.R
This function takes in a XML and creates a list of R data.frames
1 2 3 4 |
xmlfile |
XML filename from VISION EDC, or if |
isXML |
(logical) indicating whether |
drop.dsets |
vector of dataset names that can be dropped (NULL) |
keep.dsets |
vector of dataset names that are to be kept (NULL) |
dset.names |
vector of dataset names to match (after dropping drop.dsets) if these do not match EXACTLY (case) the dataset names (all of them), this will error (NULL) |
verbose |
logical - Progress printed?(TRUE) |
drop.pattern |
vector of regular expression that will drop datasets that contain patterns using grep |
keep.pattern |
vector of regular expression that will keep only datasets that contain any of the patterns grep |
drop.new |
(logical) should records be dropped with a "New" formState (default TRUE) |
fast |
(logical) if TRUE (default), will use |
homogeneous |
(logical) should |
writedta |
(logical) should the dta be written for each dataset? (default FALSE) |
... |
arguments to be passed to |
A list with slots df.list, the list of datasets,
datetime, the date/time the data was exported according to the XML,
dsets, the dataset names, should match names(df.list), and
runtimes, a list of system.time
objects recorded how
long it took to convert to data.frame from XML.
1 2 3 4 5 6 7 | ## Not run:
xmlfile = "MISTIE_III_Subjects_2014_01_09.xml"
df <- processVISION(xmlfile, isXML=FALSE,
drop.pattern=c("^i_Doc_.*", "^docs_.*"),
drop.new=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.