Posts by Guilherme Stipp • 5 points
2 posts
-
-2
votes0
answers13
viewsQ: Completing the Nas of a Tibble
Hello, I have a database on R where there are some Nas in the variables. I would like to apply a logical function where Nas would be filled with the immediately preceding value. Below is an example:…
-
0
votes1
answer27
viewsQ: Find higher row value and return the column title of a data frame
i have a wide format data frame with 5 variables (Município, Agropecuária, Indústria, Serviços Públicos and Serviços Privados). I would like to create a sixth variable called Predominante with the…