Skip to content
Prev 14096 / 15379 Next

[R-es] SALDO EN RESUMEN DE CUENTA CONTABLE

Prueba a ver con estolibrary (dplyr)
dataset<-dataset%>%group_by(fecha)%>%mutate(saldo=cumsum(debe-haber))

    En jueves, 10 de septiembre de 2020 12:25:21 CEST, Carlos J. Gil Bellosta <cgb en datanalytics.com> escribió:  
 
 Hola, ¿qué tal?

Lo que quieres es algo así como

cumsum(debe) - cumsum(haber)

o una variante de lo anterior.

Un saludo,

Carlos J. Gil Bellosta
http://www.datanalyltics.com

El jue., 10 sept. 2020 a las 11:50, Jesus MARTIN F. (<jmfpas en gmail.com>)
escribió:
    [[alternative HTML version deleted]]

_______________________________________________
R-help-es mailing list
R-help-es en r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es