Learn R Programming

datapack (version 1.4.1)

getMember: Return the Package Member by Identifier

Description

Given the identifier of a member of the data package, return the DataObject representation of the member.

Usage

getMember(x, ...)

# S4 method for DataPackage getMember(x, identifier)

Arguments

x

A DataPackage instance

...

(Not yet used)

identifier

A DataObject identifier

Value

A DataObject if the member is found, or NULL if not

See Also

DataPackage-class

Examples

Run this code
# 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)
do2 <- getMember(dp, "myNewId")
# }

Run the code above in your browser using DataLab