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