[18664] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] How to convert a string to a command

daemon@ATHENA.MIT.EDU (Fowler, Mark)
Mon Jul 19 10:29:33 1999

Content-Return: allowed
Date: Mon, 19 Jul 1999 11:22:13 -0300
From: "Fowler, Mark" <FowlerM@mar.dfo-mpo.gc.ca>
To: "'S-news'" <s-news@wubios.wustl.edu>
Message-Id: <C1273EEC9EE3D21192B30090273D20B209BDBB@msgmarbio02.bio.dfo.ca>
Mime-Version: 1.0
Content-Type: text/plain


Can somebody tell me how to make a character string, such as exp3 below, be
interpreted as an S-Plus expression within a function.

nullmod_glm(LNCPUE~1,data=modat)
exp1_"step(nullmod, .~. + "
exp2_paste(names(moddat[,termcol]), collapse = " + ")
exp3_paste(exp1,exp2,collapse="")

> exp3
[1] "step(nullmod, .~. +  YEAR + MONTH + TONCL + DEPZONE + totyears + PMSC"
> 
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post