inst/doc/languages.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(pxmake)

x <- px(population_gl)

## -----------------------------------------------------------------------------
px_language(x)  # Main language
px_languages(x) # All languages

## -----------------------------------------------------------------------------
x1 <- px_language(x, "kl")

## -----------------------------------------------------------------------------
x2 <- px_languages(x1, c("da", "kl"))

## -----------------------------------------------------------------------------
x3 <- px_contact(x2, "Johan Ejstrud")

## -----------------------------------------------------------------------------
x4 <- px_contact(x3, dplyr::tribble(~language, ~value,
                                    "kl", "Lars Pedersen",
                                    "da", "Johan Ejstrud"
                                    )
                 )

Try the pxmake package in your browser

Any scripts or data that you put into this service are public.

pxmake documentation built on April 11, 2025, 6:06 p.m.