ZHU, Justin
2008-Oct-02 05:34 UTC
[R] matrix with different type of column [SEC=UNCLASSIFIED]
Hi, I would like to create a matrix. Say 5*4. The first column is integer, the second column is date, the third column is character and the rest columns are integers. So it's a combination of different types. I am wondering how can I do that? "matrix" command only allow one type. ********************************************************************************* This e-mail message (along with any attachments) is intended only for the named addressee and could contain information that is confidential or privileged. If you are not the intended recipient you are notified that any dissemination, copying or use of any of the information is prohibited. Please notify us immediately by return e-mail if you are not the intended recipient and delete all copies of the original message and attachments. This footnote also confirms that this message has been checked for computer viruses. ********************************************************************************* [[alternative HTML version deleted]]
John Kane
2008-Oct-02 13:14 UTC
[R] matrix with different type of column [SEC=UNCLASSIFIED]
?data.frame Lists and data.frames allow mixed components, matrices do not --- On Thu, 10/2/08, ZHU, Justin <ZhuJ at rba.gov.au> wrote:> From: ZHU, Justin <ZhuJ at rba.gov.au> > Subject: [R] matrix with different type of column [SEC=UNCLASSIFIED] > To: r-help at r-project.org > Received: Thursday, October 2, 2008, 1:34 AM > Hi, > I would like to create a matrix. Say 5*4. > The first column is integer, the second column is date, the > third column > is character and the rest columns are integers. > So it's a combination of different types. > I am wondering how can I do that? "matrix" > command only allow one type. > > > > ********************************************************************************* > This e-mail message (along with any attachments) is > intended only for the named addressee and could contain > information that is confidential or privileged. If you are > not the intended recipient you are notified that any > dissemination, copying or use of any of the information is > prohibited. Please notify us immediately by return e-mail > if you are not the intended recipient and delete all copies > of the original message and attachments. > > This footnote also confirms that this message has been > checked for computer viruses. > > ********************************************************************************* > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org 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.__________________________________________________________________ [[elided Yahoo spam]]
Seemingly Similar Threads
- failing to select a subset of observations based on variable values [Sec: UNCLASSIFIED]
- Problem joining domain [SEC=UNCLASSIFIED]
- Problem joining domain [SEC=UNCLASSIFIED]
- Problem joining domain [SEC=UNCLASSIFIED]
- ads_sasl_spnego_krb5_bind failed: Program lacks supportfor encryption type [SEC=UNCLASSIFIED]