Why doesn't grepl return true in grepl(".*", LETTERS, fixed=T)?

Viewed 1974

I expected this code to return a vector of 26 TRUE but it returns all FALSE instead.

grepl(".*", LETTERS, fixed=T)

From the documentation, "grepl returns a logical vector (match or not for each element of x)".

".*" is a match for anything so shouldn't it return all TRUE because it matches each letter? Tell me what I'm missing here.

1 Answers
Related