containsId | R Documentation |
Returns true if the specified object is a member of the package
containsId(x, ...) ## S4 method for signature 'DataPackage' containsId(x, identifier)
x |
A DataPackage object |
... |
(Not yet used) |
identifier |
The DataObject identifier to check for inclusion in the DataPackage |
A logical - a value of TRUE indicates that the DataObject is in the DataPackage
DataPackage-class
dp <- new("DataPackage") data <- charToRaw("1,2,3\n4,5,6") id <- "myNewId" do <- new("DataObject", id=id, dataobj=data, format="text/csv", user="jsmith") dp <- addMember(dp, do) isInPackage <- containsId(dp, identifier="myNewId")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.