[R] How to remove the obs column in R?

Rui Barradas ruipbarradas at sapo.pt
Mon Oct 8 12:50:55 CEST 2012


Hello,

Try the following.

BOD <- data.frame(Time = 1:3, demand=runif(3))
mat <- data.matrix(BOD)
rownames(mat) <- rep("", nrow(mat))
mat

Rui Barradas
Em 08-10-2012 04:33, killerkarthick escreveu:
> >From the following image I need to remove the obs column for my documentation
> purpose.Please reply me..................................
> <http://r.789695.n4.nabble.com/file/n4645382/data.png>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-remove-the-obs-column-in-R-tp4645382.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.




More information about the R-help mailing list