Created
February 5, 2019 19:47
-
-
Save gonzalezgouveia/3fd41769d038be68c906f348e87b6081 to your computer and use it in GitHub Desktop.
cleaning data with dplyr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clean_data <- winedata %>% | |
select(country, points, price) %>% | |
drop_na() %>% # quitando los nulos | |
group_by(country) %>% | |
filter(n()>2000) %>% # filtrando | |
ungroup() %>% | |
mutate(log_price = log(price)) # log price |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment