Re: [R] Column Name Matching in xts Objects

2013-11-14 Thread Joshua Ulrich
On Thu, Nov 14, 2013 at 12:06 PM, Pooya Lalehzari wrote: > Hello, > I noticed an unexpected behavior when using the xts object and I was > wondering if anyone knows why that happens. I have a code to create a new > column and copy one of the columns to the new column (please see below): > > libr

[R] Column Name Matching in xts Objects

2013-11-14 Thread Pooya Lalehzari
Hello, I noticed an unexpected behavior when using the xts object and I was wondering if anyone knows why that happens. I have a code to create a new column and copy one of the columns to the new column (please see below): library(xts) df = data.frame(stringsAsFactors=FALSE) df[1:3,"date"] = c("