[R] how to access values from functions

Aparna Sampath aparna.sampath26 at gmail.com
Mon Feb 6 12:52:26 CET 2012


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
  }

Thanks in advance.

Regards
Ap


-- 
Aparna Sampath
Master of Science (Bioinformatics)
Nanyang Technological University
Mob no : +65 91601854



More information about the R-help mailing list