[R] Question

Michael Kubovy kubovy at virginia.edu
Wed Mar 7 01:29:12 CET 2007


> How can I evaluate two or more expressions to return two or more  
> columns?
>
> eval(expression(with(bd,Var1*100),with(bd,Var2*200)))
>
> The execution is always for the last expression. I can't execute  
> the two expressions at the same time. It is possible?

How about something like this

with(bd, c(Var1 * 100, Var2 * 200))
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



More information about the R-help mailing list