Re: [R] Building a data frame with missing data

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Fri, 25 Jul 2008 08:11:22 -0300

Try:

color<- c("red",NA,"orange","green",NA,NA,NA) size<- c(2,1,NA,3,NA,NA,8)
data.frame(color, size)

On Fri, Jul 25, 2008 at 7:33 AM, Natalia Quinteros <natquint_at_gmail.com> wrote:
> Hi List,
>
> I'm trying to built a list where there are some missing data in some
> columns, then I would like to know what I should put in these blank spaces
> when building the vector. eg:
>
> color<- c("red",?,"orange","green",?,?,?)
> size<- c(2,1,?,3,?,?,8)
>
> Thanks,
>
> Natalia
>
> [[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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
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.
Received on Fri 25 Jul 2008 - 11:19:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Jul 2008 - 11:32:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive