Displaying 1 result from an estimated 1 matches for "urltype".
Did you mean:
url_type
2010 Jul 09
1
Data Frame Manipulation using function
...){
for (listItem in WHITELIST){
if(regexpr(as.character(listItem), s)[1] > -1){
return(TRUE)
}
}
return(FALSE)
}
Now, I have a data frame for which I want to apply the above function for
all row values for a given column:-
This works fine when I define a condition like:
data <- data[data$urlType != 1,]
However, I want to combine two logical conditions together like:
data <- data[data$urlType != 1 & checkBaseLine(data$url),]
This would check whether the column `urlType` contains row values that !=
1,
and the column `url` contains row values that gets evaluated using the
defined fun...