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 18, 2026, 5:08 p.m.