search for: filtera

Displaying 2 results from an estimated 2 matches for "filtera".

Did you mean: filter
2006 Jan 07
1
level sets of factors are different
Hi, I have two data frames A en B. I want to filter B with values of A data_frame_b names <- colnames(data_frame_b[1:1, ]) filtera <- data.frame(data_frame_a[1:1]) print(nrow(filtera)) if (nrow(filtera)>0){ filtered_frame_b <- subset(data_frame_b, ColumnX == filtera[1, 1], names) } The results are: [1] 124 Error in Ops.factor(ColumnX, filtera[1, 1]) : level sets of factors are different...
2007 Jul 05
3
Using conditions appropriately
...e been struggling with this function for most of the morning, but something just doesn''t seem right in my logic with respect to efficiency. I have a basic view that is submitting information on three variables directly to this function. The information is accessible simply through params[:filtera1], params[:filtera2] and params[:filtera1]. I''m trying to build a find that will check the filter_a column in my database table (places) and list the record if filter_a matches any one of the three parameters just passed to it. The difficulty comes from two areas 1. I have not perfected...