getMember {datapack}R Documentation

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 signature '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

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")

[Package datapack version 1.4.1 Index]