Re: [Rd] Assignment of individual values to data frame columns: intentional or unintentional behavior?

2010-09-02 Thread Peter Ehlers
On 2010-08-05 12:14, Ulrike Grömping wrote: Gabor Grothendieck schrieb: On Thu, Aug 5, 2010 at 12:24 PM, Ulrike Grömping wrote: Dear developeRs, I have just discovered a strange feature when assigning some values to columns of a data frame: The column is matched by partial matching (as docu

Re: [Rd] Assignment of individual values to data frame columns: intentional or unintentional behavior?

2010-08-05 Thread Michael Lachmann
Ulrike Grömping wrote: > > > However, given the documentation that partial matching is not used on > the left-hand side, I would have expected even more that the assignment > > sw$Fert[1] <- 10 > > works differently, because I am using it on the left-hand side. > Probably, extraction ([1])

Re: [Rd] Assignment of individual values to data frame columns: intentional or unintentional behavior?

2010-08-05 Thread Ulrike Grömping
Gabor Grothendieck schrieb: On Thu, Aug 5, 2010 at 12:24 PM, Ulrike Grömping wrote: Dear developeRs, I have just discovered a strange feature when assigning some values to columns of a data frame: The column is matched by partial matching (as documented), but when assigning a value, a new c

Re: [Rd] Assignment of individual values to data frame columns: intentional or unintentional behavior?

2010-08-05 Thread Gabor Grothendieck
On Thu, Aug 5, 2010 at 12:24 PM, Ulrike Grömping wrote: > Dear developeRs, > > I have just discovered a strange feature when assigning some values to > columns of a data frame: The column is matched by partial matching (as > documented), but when assigning a value, a new column with the partial na

[Rd] Assignment of individual values to data frame columns: intentional or unintentional behavior?

2010-08-05 Thread Ulrike Grömping
Dear developeRs, I have just discovered a strange feature when assigning some values to columns of a data frame: The column is matched by partial matching (as documented), but when assigning a value, a new column with the partial name is added to the data frame that is identical to the origina