I have the following statement. I seem to have to repeat myself by writing out the numbers myself. Using seq(-1,-9,-1) or -1:-9 doesn't seem to work. Is there another way to speak with R?
difnormsum<-rowSums(data.frame(difnorm[[1]][-nrow(difnorm)],difnorm[[1]][-1],
difnorm[[1]][-2],difnorm[[1]][-3],difnorm[[1]][-4],difnorm[[1]][-5],
difnorm[[1]][-6],difnorm[[1]][-7],difnorm[[1]][-8],difnorm[[1]][-9]))