Posts by Jon Cardoso • 171 points
2 posts
-
2
votes1
answer282
viewsA: include missing data
It is possible to settle with dplyr: If you have a data frame completo with all possible combinations of uor and mes, it is possible to make a Join with your data frame incompleto: completo <-…
ranswered Jon Cardoso 171 -
2
votes1
answer289
viewsA: Argument of a function is another function
Just pass the function as argument, for example: funcaoSoma <- function(a,b){a + b} funcaoAritmetica <- function(a, b, fn){ fn(a,b) } When you run funcaoAritmetica(2,3,funcaoSoma), R will…
ranswered Jon Cardoso 171