Skip to contents

Collection of methods for preparing data conveniently named to make preparing easier

Usage

prep_methods()

Value

list of methods

Examples


prep_methods()
#> $data
#> function (x) 
#> {
#>     prep_object(x)
#> }
#> <bytecode: 0x55b46fb69c98>
#> <environment: namespace:wddsWizard>
#> 
#> $creators
#> function (x) 
#> {
#>     assertthat::assert_that(is.list(x), msg = "x must be a list")
#>     x_aff <- purrr::map(x, prep_affiliation)
#>     x_nid <- purrr::map(x_aff, prep_nameIdentifiers)
#>     out <- prep_array_objects(x_nid)
#>     return(out)
#> }
#> <bytecode: 0x55b4746f9250>
#> <environment: namespace:wddsWizard>
#> 
#> $descriptions
#> function (x) 
#> {
#>     prep_array_objects(x)
#> }
#> <bytecode: 0x55b472a98278>
#> <environment: namespace:wddsWizard>
#> 
#> $fundingReferences
#> function (x) 
#> {
#>     prep_array_objects(x)
#> }
#> <bytecode: 0x55b46fb666f0>
#> <environment: namespace:wddsWizard>
#> 
#> $identifier
#> function (x) 
#> {
#>     prep_array_objects(x)
#> }
#> <bytecode: 0x55b46fb66ed0>
#> <environment: namespace:wddsWizard>
#> 
#> $relatedIdentifiers
#> function (x) 
#> {
#>     prep_array_objects(x)
#> }
#> <bytecode: 0x55b46fb67678>
#> <environment: namespace:wddsWizard>
#> 
#> $language
#> function (x) 
#> {
#>     prep_atomic(x)
#> }
#> <bytecode: 0x55b46fb64028>
#> <environment: namespace:wddsWizard>
#> 
#> $methodology
#> function (x) 
#> {
#>     assertthat::assert_that(is.list(x), msg = "x must be a list")
#>     check_for_names <- c("eventBased", "archival") %in% names(x)
#>     assertthat::assert_that(all(check_for_names), msg = "x must have items `eventBased` and `archival`")
#>     x <- dplyr::mutate(x, eventBased = as.logical(.data$eventBased), 
#>         archival = as.logical(.data$archival))
#>     prep_object(x, unbox = TRUE)
#> }
#> <bytecode: 0x55b46fb650c8>
#> <environment: namespace:wddsWizard>
#> 
#> $publicationYear
#> function (x) 
#> {
#>     prep_atomic(x)
#> }
#> <bytecode: 0x55b46fb628e8>
#> <environment: namespace:wddsWizard>
#> 
#> $rights
#> function (x) 
#> {
#>     prep_array_objects(x)
#> }
#> <bytecode: 0x55b46fb630c8>
#> <environment: namespace:wddsWizard>
#> 
#> $subjects
#> function (x) 
#> {
#>     prep_array_objects(x)
#> }
#> <bytecode: 0x55b46fb638a8>
#> <environment: namespace:wddsWizard>
#> 
#> $titles
#> function (x) 
#> {
#>     prep_array_objects(x)
#> }
#> <bytecode: 0x55b46fb5e300>
#> <environment: namespace:wddsWizard>
#>