View source: R/popsGetObjecstIds.R
popsGetObjectsIds | R Documentation |
Retrieves objects ids belonging to a population.
popsGetObjectsIds(obj, pop = "")
obj |
an 'IFC_data' object extracted with features extracted. |
pop |
a population name from 'obj'. Default is "". If left as is or not found an error is thrown displaying all available population in 'obj'. |
An integer vector is returned
if(requireNamespace("IFCdata", quietly = TRUE)) {
## use a daf file
file_daf <- system.file("extdata", "example.daf", package = "IFCdata")
daf <- ExtractFromDAF(fileName = file_daf)
obj <- popsGetObjectsIds(obj = daf, pop = names(daf$pops)[length(daf$pops)])
} else {
message(sprintf('Please run `install.packages("IFCdata", repos = "%s", type = "source")` %s',
'https://gitdemont.github.io/IFCdata/',
'to install extra files required to run this example.'))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.