View source: R/fun-get-province-of-institution.R
get_province_of_institution | R Documentation |
Helper Function to match and get province of target institution
get_province_of_institution(df, target_institution, target_province)
df |
data frame, contains the target institution column |
target_institution |
character, the column name of target institution |
target_province |
character, the target output column name for province variable. |
out
library(magrittr)
utils::data("PubObsStation",package = "techme")
tbl_read <- PubObsStation %>%
dplyr::select(-province)
tbl_out <- get_province_of_institution(df = tbl_read,
target_institution ="institution",
target_province = "province")
head(tbl_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.