I have two columns for speed ('Smoothed velocity') and Spacing. What I want to 
do is to first create the intervals of speed (minimum value=0, max value= 
85.53), group the Spacing values falling in a particular Speed interval, find 
the average of the Spacing for an interval and finally plot the average spacing 
of each interval against the mid-point of the Speed interval. I want to have 
fixed intervals of 4.5 feet per second, i.e. 0-4.5, 4.5-9,......xx-85.53.After 
hours of search I found a function for creating intervals called 
classIntervals() but I can't figure out how to create fixed intervals of 4.5. 
Here is what I tried:classIntervals(s21[,'Smoothed velocity'], style='fixed', 
fixedBreaks=4.5)But the results were unexpected and there was a Warning 
message:In classIntervals(s21[, "Smoothed velocity"], style = "fixed", 
fixedBreaks = 4.5) :
  variable range greater than fixedBreaksEven after intervals are created, I 
need to group spacing and find the avg. for every interval. How can I do this? 
I have tried what I could, please help

Umair Durrani

email: umairdurr...@outlook.com
                                          
        [[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.

Reply via email to