Skip to content

question regarding gregexpr and read.table

4 messages · Eik Vettorazzi, Raphael Saldanha, Jack Luo

#
Hi Jack,
yes there is. see ?read.table for option check.names

and to the 2nd task "." is a special character in regular expressions,
so mask it or don't use regular expressions:

gregexpr("[.]","A.B.C.D") #or
gregexpr(".","A.B.C.D",fixed=T)

cheers.

Am 17.08.2011 15:03, schrieb Jack Luo: