romente.org | www.mojakarijera.com | www.psih.org
>
> -Original Message-
> From: Frank E Harrell Jr [mailto:[EMAIL PROTECTED]
> Sent: 17 September 2007 17:18
> To: Steve Powell
> Cc: [EMAIL PROTECTED]
> Subject: Re: [R] Creating Hmisc labels inside a
www.psih.org
-Original Message-
From: Frank E Harrell Jr [mailto:[EMAIL PROTECTED]
Sent: 17 September 2007 17:18
To: Steve Powell
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Creating Hmisc labels inside a function
Steve Powell wrote:
>
> Thanks, Frank - it doesn't work though.
>
; consulting
> Kranjčevićeva 35, 71000 Sarajevo
> mobile: +387 61 215 997 | office: +387 33 556 865 | fax: +387 33 556 866
> skype: stevepowell99
> www.promente.org | www.mojakarijera.com | www.psih.org
>
> -Original Message-----
> From: Frank E Harrell Jr [mailto:[EMAIL PRO
[EMAIL PROTECTED]
Subject: Re: [R] Creating Hmisc labels inside a function
Steve Powell wrote:
> hello list members,
> I am wanting to write a label using the Hmisc package, but inside a
> function. Normally I can do:
>
> library(Hmisc)
> M=2
> label(M)="lab"
>
>
Steve Powell wrote:
> hello list members,
> I am wanting to write a label using the Hmisc package, but inside a
> function. Normally I can do:
>
> library(Hmisc)
> M=2
> label(M)="lab"
>
> #But inside a function the "=" does not work:
> Test=function(obj,labe)
> {
> label(obj)=labe
at this point
hello list members,
I am wanting to write a label using the Hmisc package, but inside a
function. Normally I can do:
library(Hmisc)
M=2
label(M)="lab"
#But inside a function the "=" does not work:
Test=function(obj,labe)
{
label(obj)=labe
}
Test(M,"new label")
I usually use the "assign" functio
6 matches
Mail list logo