Skip to contents

Add Weight time pattern

Usage

add_weight(monthly = NULL, annual = NULL, quarterly = NULL, biannual = NULL)

Arguments

monthly

String or replicate list with weight monthly pattern

annual

String or replicate list with weight annual pattern

quarterly

String or replicate list with weight quarterly pattern

biannual

String or replicate list with weight biannual pattern

Examples

add_weight(
  monthly = add_replicate(
    weight = "W",
    replicate_pattern = "wr[0-9]+",
    replicate_path = here::here(
      "example-data",
      "ech",
      "ech_2023",
      "pesos_replicados_01-2023.xlsx"
    ),
    replicate_id = c("ID" = "ID"),
    replicate_type = "bootstrap"
  )
)
#> $monthly
#> $monthly$weight
#> [1] "W"
#> 
#> $monthly$replicate_pattern
#> [1] "wr[0-9]+"
#> 
#> $monthly$replicate_path
#> [1] "/home/runner/work/metasurvey/metasurvey/example-data/ech/ech_2023/pesos_replicados_01-2023.xlsx"
#> 
#> $monthly$replicate_id
#>   ID 
#> "ID" 
#> 
#> $monthly$replicate_type
#> [1] "bootstrap"
#> 
#>