search for: ldig

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

Did you mean: dig
2003 Feb 21
2
Help on a simple function.
Hi, I try to make a function that have two others functions inside. It is simple, but the problem is that functions inside use the same variable, but with different values. I try something like this: Teste <- function(Pdig(nlinhas),Ldig(nlinhas)) { Pdig <- function(nlinhas) { Tdig <- (15.50 + 7.45*nlinhas); (3*(Tdig*(30/3600))+1*(30*(30/3600))); } Ldig <- function(nlinhas) { Tdig <- (30.50 + 7.45*nlinhas); (2*(Tdig*(30/3600))+1*(30*(30/3600))); } print(Pdig) print(Ldig) print(Pdig+Ldig) } It dont work. How to make...