Hello,
Try the following.
rownames(df) <- seq_len(nrow(df))
Hope this helps,
Rui Barradas
Em 10-10-2012 08:41, CrimMagic escreveu:
Hi Everyone! :D
Just need a little help on data frames. I was wondering if anyone would know
a way to rename the row numbers on a data frame.
e.g.
head(df)
Hi Everyone! :D
Just need a little help on data frames. I was wondering if anyone would know
a way to rename the row numbers on a data frame.
e.g.
>head(df)
Hats Dogs Horses
52 Glen9.53 0.00 0.00
18 Jane 1.48
2 matches
Mail list logo