knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Valhalla package

Installation

Valhalla rising!

devtools::install_github("Steensson/valhalla")

Margonize

"Interesting capitalization", I said. "Yeah. I'm a big believer in random capitalization. The rules of capitalization are so unfair to words in the middle.", Margo said.

valhalla::margonize("Sebastian. The man with the most sexy beard on Amager!")

stata_n

An attempt to mimic the _n function in Stata.

df <- data.frame(
    id = c("A", "A", "B", "B", "B", "C", "C"), 
    val = rnorm(7)
)
df

df <- valhalla::stata_n(df, "id")
df

stata_N

An attempt to mimic the _N function in Stata.

df <- data.frame(
    id = c("A", "A", "B", "B", "B", "C", "C"), 
    val = rnorm(7)
)
df

df <- valhalla::stata_N(df, "id")
df

hvor_mange_hedder

Calls dst.dk with name parameters and returns a dataframe with counts.

fornavn <- "Sebastian"
efternavn <- "Steenssøn"

df <- valhalla::hvor_mange_hedder(fornavn, efternavn)
df


Steensson/valhalla documentation built on May 6, 2019, 5:59 p.m.