Questions tagged as 'data-manipulation'

2
answers

How to make mobile sum in R?

I have a 1:50 vector and I need to make a moving sum (equal to the moving average), ie in the case of the last 5 observations, the new vector would be c(sum(1:5), sum(2:6), sum(3:7), ..., sum(45:49), sum(46:50)) . The aggregate func...
asked by 17.12.2018 / 15:51
1
answer

How to create a column with specific conditions?

I have a database like this: cod ano MUNICIPIO pmat 1 110001 1998 ALTA FLORESTA D OESTE NA 2 110001 1999 ALTA FLORESTA D OESTE NA 3 110001 2000 ALTA FLORESTA D OESTE NA 4 110001 2001 ALTA FLORESTA D OESTE NA 5 1...
asked by 01.09.2018 / 17:51
1
answer

PHP - Take a value and modify the day of the date

Good morning guys, I'm having a question about date manipulation. I need to get a value (given by the user) and turn this value into day of the month. Example: $Valor_Usuario = 30; $Data = 12/10/2018; $Resultado = 30/10/2018; What I'm...
asked by 15.12.2018 / 17:31