[R] write a function inside the summation in a more condensed form
S Ellison
S.Ellison at LGCGroup.com
Mon Apr 11 17:27:38 CEST 2016
> I want to write the inside function (3^(x[i]+x[j])) in a more condensed form
> cause this will help me when the multiple summations are more than two
indices<-c(i,j) #or whatever you want
3^sum( x[indices] )
S Ellison
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}
More information about the R-help
mailing list