search for: newexpression

Displaying 1 result from an estimated 1 matches for "newexpression".

2009 Feb 10
0
Dataframes: conditional calculations per row [SOLVED].
...base)*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 > scope of an external variable (Abase) that I'd like to use it as a > defaul...