Beware of grep with a list

R-bloggers 2013-04-03

Summary:

Another R tip: beware of as.character applied to a list. Really, beware of grep with a list: You might have thought that the result would be just 1, but grep expects a vector of character strings. If the input is not that, it uses as.character(). Since the result of that starts with "c(", grep finds [...]

Link:

http://feedproxy.google.com/~r/RBloggers/~3/zRGaZxmV5eg/

From feeds:

Statistics and Visualization ยป R-bloggers

Tags:

Authors:

Karl Broman

Date tagged:

04/03/2013, 12:02

Date published:

04/03/2013, 01:48