
Given a slot name and set of package member identifiers, return slot values.
getValue(x, ...)# S4 method for DataPackage
getValue(x, name, identifiers = NA_character_)
A DataPackage instance
(Not yet used)
A name of a DataObject slot.
A list of DataPackage member identifiers
A list of values for matching slot names and included identifiers.
If the parameter identifiers
is provided, then only the DataPackage
members that have identifiers in the provided list will have there values fetched.
If this parameter is not provided, then the values for all DataPackage members are returned.
# NOT RUN {
dp <- new("DataPackage")
data <- charToRaw("1,2,3\n4,5,6")
do <- new("DataObject", id="myNewId", dataobj=data, format="text/csv", user="jsmith")
dp <- addMember(dp, do)
data <- charToRaw("7,8.9\n4,10,11")
do <- new("DataObject", id="myNewId2", dataobj=data, format="text/csv", user="jsmith")
dp <- addMember(dp, do)
formats <- getValue(dp, name="sysmeta@formatId")
# }
Run the code above in your browser using DataLab