csv
TealDatasetConnector
csv_dataset_connector.Rd
Usage
csv_dataset_connector(
dataname,
file,
keys = character(0),
label = character(0),
code = character(0),
script = character(0),
metadata = list(type = "csv", file = file),
...
)
csv_cdisc_dataset_connector(
dataname,
file,
keys = get_cdisc_keys(dataname),
parent = if (identical(dataname, "ADSL")) character(0L) else "ADSL",
label = character(0),
code = character(0),
script = character(0),
metadata = list(type = "csv", file = file),
...
)
Arguments
- dataname
(
character
)
A given name for the dataset it may not contain spaces- file
(
character
)
path to (.csv)
(or general delimited) file that containsdata.frame
object- keys
optional, (
character
)
vector of dataset primary keys column names- label
(
character
)
Label to describe the dataset.- code
(
character
)
A character string defining code to modifyraw_data
from this dataset. To modify current dataset code should contain at least one assignment to object defined indataname
argument. For example ifdataname = ADSL
example code should containADSL <- <some R code>
. Can't be used simultaneously withscript
- script
(
character
)
Alternatively tocode
- location of the file containing modification code. Can't be used simultaneously withscript
.- metadata
(named
list
,NULL
orCallableFunction
)
Field containing either the metadata about the dataset (each element of the list should be atomic and length one) or aCallableFuntion
to pull the metadata from a connection. This should return alist
or an object which can be converted to a list withas.list
.- ...
(
optional
)
additional arguments applied to pull function (readr::read_delim
) by defaultdelim = ","
.- parent
(
character
, optional) parent dataset name