Hello everyone,=I have a question as to how to remove the column headers
in a data file and then replace those with titles from another file in this case
the file labeled ann  (
in which the titles are all in one column).I am unsure which function to
use.I tried rm () to remove the column headers but they are numbers and
 the error message said to only use rm for charactors not numbers
Below is the code I used, I abbreviated the file path. 
dat<-read.table(file="C:\\Documents and Settings\\....txt",header=F,row.names=1)
x.df<-as.data.frame(dat)
rm(dat[,1])
file.show(file="C:\\Documents and
Settings....txt")
ann<-read.table("C:\\Documents and Settings\\......txt=")
file.show(file="C:\\Documents and Settings\\.......txt")
Any help would be appreciated   
Paul


      
        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to