[Rd] Bug in subsetting data frame (PR#13515)
xinlee883 at stat.math.ethz.ch
xinlee883 at stat.math.ethz.ch
Tue Feb 10 11:25:06 CET 2009
Full_Name: Xin Lee
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (193.200.150.23)
Dear developer
I discover annoying bug in subsetting data frame. Here is reproducable
examples:
> data.frame <- data.frame(x = runif(5), y = runif(5), row.names =
c('a','b','c','d','e')
> subset <- data.frame['x']
> subset['a',]
work
> subset <- data.frame$x
> subset['a',]
not work
> subset <- data.frame['a',]
> subset[,'x']
work
> subset <- data.frame[,'x']
> subset['a',]
not work
I hope this is easy fix for you and works corectly soon.
Sincerely,
Xin Lee
More information about the R-devel
mailing list