Skip to content
Back to formatted view

Raw Message

Message-ID: <4DAC68C6.1090206@ucalgary.ca>
Date: 2011-04-18T16:37:26Z
From: Peter Ehlers
Subject: altering identity column
In-Reply-To: <loom.20110418T151413-694@post.gmane.org>

On 2011-04-18 06:15, Ben Bolker wrote:
>   Bodnar Laszlo EB_HU<Laszlo.Bodnar<at>  erstebank.hu>  writes:
>
>>   [snip snip ]
>
>> So I have a transformed dataframe now including 10,000 obeservations
>> (from 60,001 - to 70,000) and if you send
>> "head(transformed_dataframe)" into R it looks like this:
>
>    [snip]>
>
>> Now is there a quick way to alter this indexing of rows in case of
>> my "transformed_dataframe"? I mean, I would
>
>
> rownames(newdata)<- 1:nrow(newdata)

or, perhaps a bit simpler

  rownames(newdata) <- NULL

Peter Ehlers