| 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> |
|---|---|---|
| ||
| Previous by Date: | Summary: pasting graphs to other app, Liaw, Andy |
|---|---|
| Next by Date: | Plotting challenge, David Parkhurst |
| Previous by Thread: | Summary: pasting graphs to other app, Liaw, Andy |
| Next by Thread: | Plotting challenge, David Parkhurst |
| Indexes: | [Date] [Thread] [Top] [All Lists] |