Re: [R] how to access values from functions

2012-02-06 Thread R. Michael Weylandt
You can modify the function and add either a print() statement or a browser() call as make sense for your purposes. Type the name of the function to get the source: copy and edit it as desired, and then run something like funcName <- newSource Now when you run funcName it will run your new versi

[R] how to access values from functions

2012-02-06 Thread Aparna Sampath
Hi All I would like to know how to access the values of the variable lambda.mu and and see what abs(lambdas[1]) does since lambdas is not a keyword. Snippet of the code: scoreFunction <- function(lambdas) { lambda.mu <- abs(lambdas[1]) sme.em(yi,tmei,Xi,Ni,G,lambda.mu,lambda.v)$AICc