Posts by A Neto • 328 points
11 posts
-
0
votes2
answers73
viewsQ: How to compare snippets of two columns of a Dataframe to generate filter
I have a data frame with multiple columns. I need to filter based on two if the end of the string is the same as the other. p. example: Item 1 Item 2 Item 3 carro do joão quitado casa do joão carro…
-
-2
votes1
answer232
viewsQ: How to automate PDF download with Selenium?
I’m trying to automate a daily entry to the Official Gazette, http://www.imprensaoficial.com.br find the date, the desired section and download each page of the pdf section. Page numbering changes…
-
3
votes1
answer145
viewsA: How to make forecast charts in R?
I tested your code here and the error that appeared was Error: Mapping should be created with aes() oraes_()`. To fix this, you need to declare 'date' geom_line(data = previsoes, aes(x = Data, y =…
-
3
votes1
answer168
viewsA: Display data label in line chart in ggplot2
One option is you create an object with state positions on the last day of your data: nm_estados <- dados %>% filter(data == max(data)) And then use this object in plotting as the source of…
-
0
votes2
answers95
viewsA: "proj_api. h not found in standard or Given Locations" when installing package in R
After days of searching, the only solution found that worked for me was to install lwgeom in an older version. There is the option to install lwgeom version 0.2-2 which, according to the…
-
5
votes2
answers321
viewsQ: How to plot map with place names - ggplot - R
I downloaded the data and plotted a map with the demographic density of the cities of the Metropolitan Region of São Paulo. But it is difficult to identify the cities. rmsp <- readOGR("rmsp",…
-
3
votes2
answers321
viewsA: How to plot map with place names - ggplot - R
If we put the function label inside aes() before we process the data, for each row in df it will plot a name. We will have thousands of repetitions overlapping. The solution I found was to create an…
-
1
votes2
answers242
viewsQ: Format latitude and numerical longitude coordinates in R
I received a data frame with the coordinates of the schools of the city of São Paulo. They were separated by dot in the thousands, as a number -23,456,789. Thus, R reads the value as Chr. There were…
-
1
votes2
answers242
viewsA: Format latitude and numerical longitude coordinates in R
First, we must remove the points in the numbers to stay -23456789 in each column (latitude and longitude): dados$latitude <- as.numeric(gsub("\\.", "", dados$latitude)) # O "\\." é necessário…
-
-1
votes2
answers95
viewsQ: "proj_api. h not found in standard or Given Locations" when installing package in R
I’m trying to install the tmap in R and appears Installing package into ː/home/Americo/R/x86_64-pc-linux-gnu-library/3.6' (as ːlib' is unspecified) also Installing the dependencies ?lwgeom',…
-
2
votes1
answer699
views