Displaying 1 result from an estimated 1 matches for "combmatrix".
Did you mean:
colmatrix
2009 Feb 15
0
Porcentual separation
...current problem: I have a series (dataframe with 1 column and 283
rows, all with numbers (no NA's) that go from 0 to 3 or 4 with up to
14 decimals. They indicate a percentage. I have to apply a formula to
that dataframe that uses 4 variables I have already stored in a
dataframe called combmatrix.
df.clases = sapply(seq(1,by=1,length=3921225),function(x)
((AlicuotaBruta/llmcc$Clase)*combmatrix[1,x]+((1/llmcc
$Categoria)*AlicuotaBruta)*combmatrix[2,x]+(AlicuotaBruta*llmcc
$Phi)*combmatrix[3,x]+ (AlicuotaBruta*llmcc$Rf)*combmatrix[4,x]))
The number 3921225 corresponds to the number of d...