[Rd] Bug in subsetting data frame (PR#13515)

From: <xinlee883_at_stat.math.ethz.ch>
Date: Tue, 10 Feb 2009 11:25:06 +0100 (CET)

Full_Name: Xin Lee
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (

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 =

> subset <- data.frame['x']
> subset['a',]


> subset <- data.frame$x
> subset['a',]

not work

> subset <- data.frame['a',]
> subset[,'x']


> subset <- data.frame[,'x']
> subset['a',]

not work

I hope this is easy fix for you and works corectly soon.

Xin Lee

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 10 Feb 2009 - 11:36:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 Feb 2009 - 13:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive