Hi everybody I need to create a program using the function filter with this vector. MATDINAMIC$VELOCIDADFIN[1:1000] That´s why I want to identify when use the mean and the median because I have problems. I want to know if I am using correct this: filter(MATDINAMIC$VELOCIDADFIN[1:1000],rep(1/3,3)) : ¿ is it for the mean or not? and filter(MATDINAMIC$VELOCIDADFIN[1:1000],rep(3,3)), is it for the median or not? How can I know or identify the right method? I hope to receive an answer as soon as possible. Wilquin _________________________________________________________________
[[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.