R/tidy-map_to_english.R

#' @import dplyr
state_to_english <- function(listings) {
  listings %>%
    mutate(current_state = recode(current_state,
                                  "Goede staat" = "good",
                                  "Op te frissen" = "to be renovated",
                                  "Uitstekende staat" = "excellent",
                                  "Vernieuwd" = "renovated",
                                  .default = NA_character_))
}
IsaacVerm/find.apartment.analysis documentation built on May 29, 2019, 11:04 p.m.