Measures of a dataset
Arguments
- x
A data.frame or inherited tibble, data.frame, or a structured list.
- value
The name or column number of the within the dataset.
Value
A data frame of the names, class, isDefinedBy, and codeList properties of the measurement columns of a dataset following the datacube model.
Details
See the W3C and SDMX definition of a measure.
Examples
df <- data.frame ( sex = c("M", "F"), value = c(1,2), unit = c("NR", "NR"))
dimensions(df, sdmx_attributes = "sex") <- "sex"
measures(df) <- "value"
attributes_measures(df) <- "unit"
measures(df)
#> names class isDefinedBy codeListe
#> value value numeric https://purl.org/linked-data/cube not yet defined
df <- data.frame ( sex = c("M", "F"), value = c(1,2))
measures(df) <- "value"
measures(df)
#> names class isDefinedBy codeListe
#> value value numeric https://purl.org/linked-data/cube not yet defined