Posts by Filipaaaaa • 13 points
5 posts
-
-2
votes3
answers339
viewsQ: How to convert the number of hours into date format in r
I have a column in this format and I can’t convert it to date. At this time it is in hours. Example: 8.5 is actually 08:30:00 and so on... Any idea how to do it? (see image) start_date <-…
-
0
votes1
answer33
viewsA: Create a column with case_when with ranges error appears
In fact, I managed to solve the problem this way: datanew1$Calendar_Week <- as.numeric(datanew1$Calendar_Week) datanew1$Quartile <- case_when( datanew1$Calendar_Week %in% seq(36,45) ~ "1",…
-
-1
votes1
answer33
viewsQ: Create a column with case_when with ranges error appears
I have this database and I intend to create a new column with this structuring (see image). For example, if the row in the Calendar_week column has a value between 36 and 45 the new Quartile column…
-
0
votes1
answer31
viewsQ: Query SQL Help
select T.n_acid,T.marca from (select n_acid, veic_seguro, marca from marca_acid as ma, veiculo as v where ma.veic_seguro = v.n_veic) as T group by T.n_acid, T.marca; This query returns the table…
-
0
votes1
answer197
viewsQ: Sort by year SQL data
I have a table with 2 columns (one with date (YYYY,MM,DD) and another with a numeric value). I want the table to be ordered only per year and in case of entries with the same year the "tie-breaker"…