vignettes/fuzzy_join.R

## ---- echo = FALSE, message = FALSE--------------------------------------
knitr::opts_chunk$set(collapse = T, comment = "#>")
library(laycUtils)

## ---- fig.show='hold'----------------------------------------------------
data(eto)
head(eto)

data(nwea)
head(nwea)

## ---- fig.show='hold'----------------------------------------------------
eto$my_id <- create_id(eto, var = c('lname', 'fname'))
head(eto)

nwea$my_id <- create_id(nwea, var = c('StudentLastName', 'StudentFirstName'))
head(nwea)

## ---- fig.show='hold'----------------------------------------------------
df <- fuzzy_join(x = nwea, y = eto, by = 'my_id')

head(df)
thelayc/laycUtils documentation built on May 31, 2019, 9:17 a.m.