

I want to remove the column names from a data frame. I do
it the long way, can any body show me a better way ?


df= data.frame(chrN= c(“chr1”, “chr2”, “chr3”), start= c(1,
2, 3), end= c(4, 5, 6), score= c(7, 8, 9))


df


#I write a txt file without row or column names


write.table(df,"df1.txt",sep='\t',quote=FALSE,row.names=F,col.names=F)


#then I read it with the header = F to obtain the format
I want


df1=read.table("df1.txt", header = F)


df1


      ____________________________________________________________________________________
Looking for last minute shopping deals?  

/category.php?category=shopping
	[[alternative HTML version deleted]]

