Hi, I have two vectors, mag and i, and I want to generate a of vector where each element is the frequency of mag which is greater than i.
i produced the following code. However I get the following error: mag<-rnorm(40,5,3) i<-seq(floor(min(mag)),max(mag), 0.5) freq<-sum(mag>=i) Warning message: In mag >= i : longer object length is not a multiple of shorter object length What's wrong with this code? Thank you very much. Cheers, Julius Tesoro ______________________________________________ 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.