s-news
[Top] [All Lists]

coercion

To: s-news@lists.biostat.wustl.edu
Subject: coercion
From: Anne_Yeh@hc-sc.gc.ca
Date: Thu, 26 Jul 2001 14:11:02 -0400

Hello,

This is a quick question involving data coercion.

I'm passing variable names into a function.
I need to change the variable names into a string so that the function below
will run properly.

i.e

myfunction <- function(data=dat, dep=x, indep =y,group=s){

     formula <- paste(dep,"~",s,"+",indep)
}

Thanks in advance,

Anne





<Prev in Thread] Current Thread [Next in Thread>
  • coercion, Anne_Yeh <=