search for: aqs_filt

Displaying 1 result from an estimated 1 matches for "aqs_filt".

2007 Feb 20
1
Difficulties with dataframe filter using elements from an array created using a for loop or seq()
....85,0.95) testdf <- data.frame(varA = a, bBins = b) attach(testdf) ## Loop through each of the vectors, create a filter on the dataframe based on equality with the current iteration, ## and print that number and the count of records in the dataframe that match that number. for (i in loopvector){ aqs_filt <- bBins==i; print(i); print(length(testdf$varA[aqs_filt])); } for (i in handmadevector){ aqs_filt <- bBins==i; print(i); print(length(testdf$varA[aqs_filt])); } for (i in seqvector){ aqs_filt <- bBins==i; print(i); print(length(testdf$varA[aqs_filt])); } ________________________________...