as.array.px | R Documentation |
This function extracts the data component from a px object as a array
.
## S3 method for class 'px' as.array(x, use.codes = FALSE, ...)
x |
A |
use.codes |
A logical value to indicate whether to use CODES instead of VALUES as names of the levels: TRUE to use CODES, defaut FALSE. Or a vector with the names of the variables that use CODES to identify levels |
... |
Additional arguments. Not used yet. |
An array
Francisco J. Viciana
https://www.scb.se/globalassets/vara-tjanster/px-programmen/px-file_format_specification_2013.pdf
read.px
,
as.data.frame.px
my.px <- read.px(system.file("extdata", "example.px", package = "pxR")) my.array <- as.array(my.px) my.array2 <- as.array(my.px ,use.codes=TRUE) my.array3 <- as.array(my.px ,use.codes=c('municipios'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.