Hi, I am trying to filter in a secuence by different intervals to obtein the maximun value in each interval...
I am trying to do it filtering using a loop... but I am not able to do it
Please, could anyone help me?
This is an example of dataframes to do it:
df <- data.frame(tibble( PK = 1:100, z = PK^2 #where PK is the secuence where I want to filter ache interval )) df1 <- data.frame(tibble( INI = seq(from = 10, to = 90, by = 10), #every start of each interval FIN = seq(from = 20, to = 100, by = 10) #every end of each interval ))
Could someone help me?
Thanks in advance
Javi (from Spain)