Displaying 1 result from an estimated 1 matches for "sumaformula".
Did you mean:
sameformula
2009 Feb 10
0
Dataframes: conditional calculations per row [SOLVED].
...in order to
> adapt it to the simplest form like the following:
> ali <- function(Abase) {
> alitemp <- ((Abase/llmcc$Clase)*PClase)+(((1/llmcc
> $Categoria)*Abase)*PCategoria)+((Abase*llmcc$Phi)*PPhi)+((Abase*llmcc
> $Rf)*PRf)
> # Subtotal para redondeo
> sumaformula <- sum(alitemp)
> # Fragmentacion de la matriz segun clases...
> llmcc2 <- llmcc
> llmcc2$Alitmp <- alitemp
> llmcc2$newExpression <- with(llmcc2,ifelse(Clase<10,
> Alitmp*100/sumaformula, Alitmp*100/sumaformula)/PAnclas)
> r...