Good Day All !
I have a 2-D vector of mode numeric and a parallel 1-D vector of mode numeric. 
Here are my values.
2-D vector         1-D vector
80 75 85 80       80
70 80 90 80       80  
60 70 80 70       70
85 75 95 85       85
70 60 90 60       70
My 1-D vector is the average across the rows of my 2-D vector.
I process each column of the 2-D vector in a loop.
When I trim my 2-D vector column for values less than 65, I have to trim the 
corrosponding average value.
I have a copy of the 1-D vector to recreate the original 1-D vector for each 
loop iteration.
My original vectors consist of 54,000 values and I am trying to avoid using 
loops as much as I can to gain speed.
Any advice will be greatly appreciated.
 
Thanks in advance.
 
Choudary Jagarlamudi
Instructor
Southwestern Oklahoma State University
STF 254
100 campus Drive
Weatherford OK 73096
Tel 580-774-7136

        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to