Skip to content

write a function inside the summation in a more condensed form

2 messages · mahmoudfarid30 at yahoo.com, S Ellison

#
Dear R Experts
that's my original equation
[1] 7371 
 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 

I've tried the following form
[1] 819 


But it didn't work, it gave another solution 
Any help or recommendations
3 days later
#
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}}