?data.frame Lists and data.frames allow mixed components, matrices do not
--- On Thu, 10/2/08, ZHU, Justin <[EMAIL PROTECTED]> wrote: > From: ZHU, Justin <[EMAIL PROTECTED]> > Subject: [R] matrix with different type of column [SEC=UNCLASSIFIED] > To: r-help@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@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]] ______________________________________________ R-help@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.