[R] matrix with different type of column [SEC=UNCLASSIFIED]
John Kane
jrkrideau at yahoo.ca
Thu Oct 2 15:14:43 CEST 2008
?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]]
More information about the R-help
mailing list