Skip to content
Prev 17668 / 398503 Next

Strange behavior when subsetting data frames with NAs

On Wed, 6 Mar 2002 apjaworski at mmm.com wrote:

            
What exactly do you find strange?  It is the correct behaviour and
replicates that of S.  Remember that data frames have to have unique row
names, and you asked for rows
[1]  TRUE FALSE  TRUE    NA    NA

so new row names have to be created.  Matrices do not have to have unique
dimnames.