[R] putting a column name on a zoo object

Gabor Grothendieck ggrothendieck at gmail.com
Wed Nov 15 00:55:13 CET 2006

First, read the last line of every message to r-help.  The code below
is not self contained nor reproducible.

You can only put a column name on a zoo object that has columns!

That means its data portion must be an nx1 matrix, not a vector.

On 11/14/06, Leeds, Mark (IED) <Mark.Leeds at morganstanley.com> wrote:
> does anyone know how to put a column name on a zoo object. I think achim
> and gabor are off line or they have gotten totally tired of me
> an decided to ignore me ( which is totalyy understandable ).
> logbidask<-log((aggfxdata[,"bid"] + aggfxdata[,"ask"])/2.0)
> logbidask doesn't have a name and I can't figure out how to get one on
> it ?
> aggfxdata is a zoo object.
> --------------------------------------------------------
> This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list