Re: [R] How to make matrix missing data 0

2011-07-07 Thread David Winsemius
On Jul 7, 2011, at 3:52 PM, xin123620 wrote: Thank you William Your method does work I highly appreciate that. :D Also thank you for replying, David. You are absolutely correct. I re-edited my posting to make question clear according to the guidelines in case other person meet

Re: [R] How to make matrix missing data 0

2011-07-07 Thread xin123620
Thank you William Your method does work I highly appreciate that. :D Also thank you for replying, David. You are absolutely correct. I re-edited my posting to make question clear according to the guidelines in case other person meet the similar problem as I have. Thank you, Jessica

Re: [R] How to make matrix missing data 0

2011-07-07 Thread William Dunlap
NA NA 14 Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of xin123620 > Sent: Thursday, July 07, 2011 12:21 PM > To: r-help@r-project.org > Subject: [R] How

Re: [R] How to make matrix missing data 0

2011-07-07 Thread David Winsemius
On Jul 7, 2011, at 3:21 PM, xin123620 wrote: Dear All, I am trying to analysis traffic data with one timestamp column and speed column. This data set contains six years data; for each year, I want to make a matrix in (day of the year) * (hour) 0 1 2 . . . 23 1 2 . . 365 Howev

[R] How to make matrix missing data 0

2011-07-07 Thread xin123620
Dear All, I am trying to analysis traffic data with one timestamp column and speed column. This data set contains six years data; for each year, I want to make a matrix in (day of the year) * (hour) 0 1 2 . . . 23 1 2 . . 365 However random day's record is missing(e.g. there are