This may seem rather trivial, but I barely don't know any R at all and google-fu didn't help.
So, scenario is as follows: I have a dataframe with 37 columns, and I need to filter it, keeping only those rows that contain a certain string in any of 2 columns (EMPRESA, PAIS).
What I've tried so far:
if(input$ExperienciasSearchHidden == "")
{
}
else
{
print(colnames(DFfilters))
DFfilters <- DFfilters [which (
DFfilters$EMPRESA == "ESPAÑAAA"
& DFfilters$PAIS == "ESPAÑAAA"
)
,]
}
Output (ERROR):
Warning: Error in if: missing value where TRUE/FALSE needed
[No stack trace available]
Any help would be MUCH appreciated!