Posts by Luiz Rodrigo • 156 points
3 posts
-
2
votes1
answer76
viewsA: Web Scrapping with R, java or html?
Take a look at the package rvest. The page you want was really built using bad practices, which makes the work a little difficult. By analyzing the page code, you can find that the actual content is…
ranswered Luiz Rodrigo 156 -
1
votes2
answers204
viewsA: Subset and maintain NA values
One option (maybe uglier) is to use the subsetting that the operator [ provides: dados[dados$V2 != "CNPJ",] This operation keeps the lines containing NA.…
ranswered Luiz Rodrigo 156 -
1
votes1
answer126
viewsA: Show information of a dataframe on a shapefile map
I believe the function geom_map, library ggplot2, is just what you are looking for. There are similar examples in the documentation that Inkei. Roughly speaking, basically you use the parameter fill…
ranswered Luiz Rodrigo 156