Skip to contents

This function extracts and returns the methods portion of a unified database, optionally retrieving a specific method by name.

Usage

boilerplate_methods(unified_db, name = NULL)

Arguments

unified_db

List. The unified boilerplate database

name

Character. Optional specific method to retrieve using dot notation

Value

List or character. The requested methods database or specific method

Examples

# Import all databases
unified_db <- boilerplate_import()
#>  importing all categories
#>  using default path: /Users/joseph/GIT/boilerplate/boilerplate/data
#> ! data directory does not exist: /Users/joseph/GIT/boilerplate/boilerplate/data
#>  importing measures database
#> ! measures database file not found, using default
#>  importing methods database
#> ! methods database file not found, using default
#>  importing results database
#> ! results database file not found, using default
#>  importing discussion database
#> ! discussion database file not found, using default
#>  importing appendix database
#> ! appendix database file not found, using default
#>  importing template database
#> ! template database file not found, using default

# Get all methods
methods_db <- boilerplate_methods(unified_db)

# Get a specific method using dot notation
lmtp_method <- boilerplate_methods(unified_db, "statistical.longitudinal.lmtp")