; "8", "9"), class = "AsIs")
>> 1
>> 4 7
>> 2
>> 5 8
>> 3
>&
>
- Original Message ----
From: Benilton Carvalho <[EMAIL PROTECTED]>
To: joseph <[EMAIL PROTECTED]>
Cc: r-help@r-project.org
Sent: Monday, February 18, 2008 11:47:50 AM
Subject: Re: [R] remove column names from a data frame
apparently you want to check the "Introduction t
7
2 5
8
3 6
9
>
----- Original Message ----
From: Benilton Carvalho <[EMAIL PROTECTED]>
To: joseph <[EMAIL PRO
Try this:
names(df) <- NA
or
names(df) <- make.names(seq(ncol(df)))
On 18/02/2008, joseph <[EMAIL PROTECTED]> wrote:
>
>
> 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"), star
apparently you want to check the "Introduction to R" document I
found it very useful when I started working with R:
http://cran.r-project.org/doc/manuals/R-intro.pdf
try:
names(df) <- NULL
b
ps: "df" is the name of the function to get the density for an F
distribution...
On Feb 18,
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"
6 matches
Mail list logo