Displaying 1 result from an estimated 1 matches for "tp2321888p2321966".
2010 Aug 11
1
How to calculate the concentration
Hi, folks,
######
food=c('fruit','fruit','fruit','drink','drink','drink')
type=c('apple','apple','orange','water','soda','soda')
value=c(2,3,1,5,7,6)
data=data.frame(food,type,value)
share=c((2+3)/(2+3+1),5/6,1/6,5/(5+7+6),13/18,13/18)