search for: robalexcl

Displaying 1 result from an estimated 1 matches for "robalexcl".

2008 Nov 23
3
grep for asterisks "*"'s
Hello, I'm trying to determine if a string contains asterisks using the grep function. I know that this is slightly difficult because * is a special character in regular expressions and needs to be escaped. However, escaping the * using \ doesn't work either: if(grep("\*", model)>0) #does the model have an interaction { do something... } produces the following error