inst/extdata/data-raw/migrate_test.R

library(tidyverse)
library(locatr)

  migrate_test <-
    locatr_example("worked-examples.xlsx") %>%
    xlsx_cells_fmt(sheets = "pivot-annotations") %>%
    locate_data(data_type == "numeric") %>%
    locate(direction = "WNW", name = subject_type) %>%
    locate(direction = "W", name = subject) %>%
    locate(direction = "NNW", name = gender) %>%
    locate(direction = "N", name = name) %>%
    migrate()

usethis::use_data(migrate_test, overwrite = TRUE)
ianmoran11/locatr documentation built on June 14, 2020, 3:32 a.m.