This is a wrapper for the data.tree method $Get to get the names of all nodes in the tree object or project.

rxsProject_get_entityIds(x, includeClusteredEntities = TRUE)

rxsTree_get_entityIds(x, includeClusteredEntities = TRUE)

Arguments

x

The rxs tree object or project object.

includeClusteredEntities

Whether to also include clustered entities (entities in a list() value).

Value

A vector with entity names.

Examples

### Load an example Rxs project
data("example_rxsProject_1", package="metabefor");

metabefor::rxsProject_get_entityIds(
  example_rxsProject_1
);
#>  [1] "general"               "publicationYear"       "sourceAuthors"        
#>  [4] "sourceTitle"           "modeInfo"              "methods"              
#>  [7] "sample"                "sampleSize"            "samplingStrategy"     
#> [10] "method"                "variables"             "chalk"                
#> [13] "witches"               "crayons"               "instruments"          
#> [16] "associations"          "chalk_and_witches"     "criminals"            
#> [19] "cops"                  "criminals_and_cops"    NA                     
#> [22] "variableIdentifier"    "measurementLevel"      "associationIdentifier"
#> [25] "varId1"                "varId2"                "r"                    
#> [28] "t"