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 <
[hidden email]>
To:
[hidden email]
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.htmlSent from the R help mailing list archive at Nabble.com.
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide
http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide
http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.