Hi Jack,
You need to quote non-syntactic names.
A$`A 1`
A$'A 1'
A$"A 1"
should all work, with the first form being the recommended one.
Best,
Ista
On Wed, Aug 17, 2011 at 1:45 PM, Jack Luo wrote:
> Hi,
>
> After I read an xlsx file into the work space:
> A <- read.xlsx("B.xls", header = T, ch
Hi,
After I read an xlsx file into the work space:
A <- read.xlsx("B.xls", header = T, check.names = F)
There are several headers with the names like:
colnames(A) [1:4]
# [1] "A 1""B"
[3] "C 2" "D"
I can get the content of column 2 and column 4 eas
2 matches
Mail list logo