Posts by Nevs Bia • 115 points
5 posts
-
4
votes3
answers71
viewsQ: Conditional column based on multiple dplyr lines
I have this df: structure(list(id = c("R054", "R054", "R054", "R054", "R054", "GT68U", "GT68U", "GT68U", "GT68U", "GT68U", "G001", "G001", "G001", "G001"), car1 = c("sim", "sim", "sim", "sim",…
-
1
votes1
answer83
viewsQ: Error while scaling on ggplot map
I’m using this Shape file to make a map: link library(rgdal) library(ggplot2) mapadf <- readOGR(dsn= "/rj_municipios", layer = "33MUE250GC_SIR") mapadf <-fortify(mapadf) The map stays as I…
-
0
votes1
answer31
viewsQ: Select the most recent date of each group in r
I have that data data;code 18/02/2020;C106 05/04/2018;C107 11/09/2016;C107 16/02/2019;C109 11/03/2020;C110 04/03/2020;C114 18/02/2020;C114 06/02/2020;C121 I would like to select the latest date of…
-
2
votes1
answer80
viewsQ: Join columns in ggplot histogram
I have that data https://pastebin.com/9tBv1Enm and tried to make a histogram with x= date and y= count ggplot(ind_geral1, aes(x=mes_ano))+ geom_histogram(binwidth=40) + theme(axis.text.x =…
-
3
votes1
answer403
viewsQ: Convert date to month in full
I have a table in r with a column with months in numerical format data = c("01", "03", "03", "04", "05", "10", "12")) I would like to convert in the abbreviations of the months. I found how to put…