search for: r47350

Displaying 3 results from an estimated 3 matches for "r47350".

2009 Jan 26
1
Large regular expressions
Given a vector of reference strings Ref and a vector of test strings Test, I would like to find elements of Test which do not contain elements of Ref as \b-delimited substrings. This can be done straightforwardly for length(Ref) < 6000 or so (R 2.8.1 Windows) by constructing a pattern like \b(a|b|c)\b, but not for larger Refs (see below). The easy workaround for this is to split Ref into
2009 Feb 11
2
sorting a matrix by the column
this is a bad question but I can't figure it out and i've tried. if i sort the 2 column matrix , temp1, by the first column, then things work as expected. But, if I sort the 1 column matrix, temp2, then it gets turned coerced to a vector. I realize that I need to use drop=FALSE but i've put it in a few different places with no success. Thanks. temp1 <-
2009 Jan 21
3
merging several dataframes from a list
Hi there, I have a list of dataframes (generated by reading multiple files) and all dataframes are comparable in dimension and column names. They also have a common column, which, I'd like to use for merging. To give a simple example of what I have: df1 <- data.frame(c(LETTERS[1:5]), c(2,6,3,1,9)) names(df1) <- c("pos", "data") df3 <- df2 <- df1 df2$data