Displaying 1 result from an estimated 1 matches for "checkbaselin".
Did you mean:
checkbaseline
2010 Jul 09
1
Data Frame Manipulation using function
Hi all,
I have a data frame for which I want to limit the output by checking whether
row values for specific column meets particular conditions.
Here are the more specific details:
I have a function that checks whether an input string exists in a defined
list:-
checkBaseLine <- function(s){
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:
dat...