Depends on what these variables are. Are these vectors?
if so a simple
a*b etc should work.
If they are columns of a data frame DF?
then DF$a*DF$b.

If these variables are part of a function then also a*b should work.

On 9/26/06, nalluri pratap <pratap_stat@yahoo.co.in> wrote:
>
> Hello All,
>
>   I have 8 variables named
>
>    a b c d e f g h
>
>   I need to create four variables from these 8 vraibles in R.
>
>   the new variables are ab,cd,ef,gh.
>
>   Can anyone pleas help me
>
>   thanks,
>   Pratap
>
>
>
>
> ---------------------------------
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



-- 
Ritwik Sinha
Graduate Student
Epidemiology and Biostatistics
Case Western Reserve University

http://darwin.cwru.edu/~rsinha

	[[alternative HTML version deleted]]

