Revision: 44753
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 17, 2011 16:29 by mjaniec
Initial Code
FindContaining <- function(Element,ElementsTable) {
list <- matrix(,nrow(ElementsTable),2)
j <- 0
for (i in 1:nrow(ElementsTable)) {
if (Element != ElementsTable[i,2]) {
if ( grepl(Element,ElementsTable[i,2]) ) {
j <- j+1
list[j,1] <- ElementsTable[i,1]
list[j,2] <- ElementsTable[i,2]
}
}
}
list
}
Initial URL
Initial Description
ElementsTable contains 1. phrases, 2. frequency of a given phrase
Initial Title
Find phrases containing some base phrase
Initial Tags
Initial Language
R