Hi, How can I evaluate two or more expressions to return two or more columns? The command is the following: eval(parse(text=paste("with(bd,",as.character(var$Formula),")",sep=""))) And the expression to evaluate is for example: 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? Thanks, Rita. [[alternative HTML version deleted]]
> 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/