On 03/05/2011 4:43 PM, Jun Shen wrote:
Dear list,
This may sound silly. What is the right way to change the names of a
dataframe? Let's say I have this data frame (dose) with four columns with
names "ID", "DOSE", "TIME" "CMT". I want to change "DOSE" to "AMT". So I did
names(dose[2])<-'AMT'
Bu
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Jun Shen
> Sent: Tuesday, May 03, 2011 2:43 PM
> To: R-help
> Subject: [R] Change the names of a dataframe
>
> Dear list,
>
> This may soun
Dear list,
This may sound silly. What is the right way to change the names of a
dataframe? Let's say I have this data frame (dose) with four columns with
names "ID", "DOSE", "TIME" "CMT". I want to change "DOSE" to "AMT". So I did
names(dose[2])<-'AMT'
But nothing happened. The name of the secon
3 matches
Mail list logo