Displaying 1 result from an estimated 1 matches for "llmcc2".
Did you mean:
llmcc
2009 Feb 10
0
Dataframes: conditional calculations per row [SOLVED].
...> 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)
> return (llmcc2)
> }
> There are a couple of things I have to work out first though: The
&...