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

arun smartpink111 at yahoo.com
Mon Oct 8 14:33:35 CEST 2012


Hi,
You can try this as well:
BOD<-data.frame(Time=c(1,2,3,4,5,7),demand=c(8.3,10.3,19.0,16.0,15.6,19.8))
mat<-as.matrix(BOD)
write.table(mat,file="matwithoutrow.txt",row.names=F,quote=F)
 print(write.table(mat,row.names=F,quote=F))
#Time demand
#1 8.3
#2 10.3
#3 19
#4 16
#5 15.6
#7 19.8
A.K.




----- Original Message -----
From: killerkarthick <karthick.gdi at gmail.com>
To: r-help at r-project.org
Cc: 
Sent: Sunday, October 7, 2012 11:33 PM
Subject: [R] How to remove the obs column in R?

>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