[R] putting a column name on a zoo object

2006-11-14 Thread Leeds, Mark \(IED\)
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

Re: [R] putting a column name on a zoo object

2006-11-14 Thread Horace Tso
Mark, What's wrong with the following, head(sp.z) OpenHigh Low Close Volume Adj..Close. 2000-01-03 1469.25 1478.00 1438.36 1455.22 93180 1455.22 2000-01-04 1455.22 1455.22 1397.43 1399.42 100900 1399.42 2000-01-05 1399.42 1413.27 1377.68 1402.11

Re: [R] putting a column name on a zoo object

2006-11-14 Thread Leeds, Mark \(IED\)
a column name on a zoo object Mark, What's wrong with the following, head(sp.z) OpenHigh Low Close Volume Adj..Close. 2000-01-03 1469.25 1478.00 1438.36 1455.22 93180 1455.22 2000-01-04 1455.22 1455.22 1397.43 1399.42 100900 1399.42 2000-01-05 1399.42

Re: [R] putting a column name on a zoo object

2006-11-14 Thread Leeds, Mark \(IED\)
, 1144025100, 1144025160, 1144025220)) -Original Message- From: Leeds, Mark (IED) Sent: Tuesday, November 14, 2006 4:39 PM To: 'Horace Tso'; r-help@stat.math.ethz.ch Subject: RE: [R] putting a column name on a zoo object let me try colnames. I thought I tried that earlier and got an error

Re: [R] putting a column name on a zoo object

2006-11-14 Thread Horace Tso
, 1144025220)) -Original Message- From: Leeds, Mark (IED) Sent: Tuesday, November 14, 2006 4:39 PM To: 'Horace Tso'; r-help@stat.math.ethz.ch Subject: RE: [R] putting a column name on a zoo object let me try colnames. I thought I tried that earlier and got an error but I've been wrong before

Re: [R] putting a column name on a zoo object

2006-11-14 Thread Gabor Grothendieck
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) [EMAIL PROTECTED] wrote:

Re: [R] putting a column name on a zoo object

2006-11-14 Thread Gabor Grothendieck
: Tuesday, November 14, 2006 4:39 PM To: 'Horace Tso'; r-help@stat.math.ethz.ch Subject: RE: [R] putting a column name on a zoo object let me try colnames. I thought I tried that earlier and got an error but I've been wrong before. Thanks. -Original Message- From: Horace Tso