[R] "assign" statement in S-Plus

David Winsemius dwinsemius at comcast.net
Tue Dec 23 20:38:11 CET 2008


On Dec 23, 2008, at 1:41 PM, kathie wrote:

>
> Dear R users...
>
> I need to change the S+ code below to R code.
>
> I am wondering if there is a R statement equivalent for "assign"  
> statement
> in S-plus.
>

?assign   # ????


>
> --------------------------------------------------------
>
>  prime <- function(x)
>    {
>    1*(abs(x) < chuber)
>    }
>  assign("prime",prime,frame=1)
>
> ---------------------------------------------------------
>
>
> Any comments will be greatly appreciated.
>
> Kathryn Lord
> -- 
> View this message in context: http://www.nabble.com/%22assign%22-statement-in-S-Plus-tp21149319p21149319.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list