Displaying 2 results from an estimated 2 matches for "alicuotabruta".
2009 Feb 15
0
Porcentual separation
...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 dimensions of the
combmatrix created with the combd function using 4 elements...
2009 Feb 13
1
Add columns to data frame automatically
...nding 100 series. I want to save all those
datasets in a dataframe, so I wrote this...
prep <- function()
# Clase[1]/Categoria[2]/Phi[3]/Rf[4]
peso <- c(.0,.03,.3,.6)
# Extension del calculo
for (i in 1:100)
{
# Calculos de todas las curvas
# Variables (Valor Base)
abase <- AlicuotaBruta
clase <- llmcc$Clase
as.numeric(peso)
df.clases <- data.frame()
df.clases[,i] <- (abase/llmcc$Clase)*peso[1]
peso[1] <- peso[1]+(.01)
cat("Modelos de Alicuotas:", i, peso[1], "\n")
}
return (df.clases)
Problem is: the function does not work, and I...