[R] how to access values from functions
R. Michael Weylandt
michael.weylandt at gmail.com
Mon Feb 6 18:33:05 CET 2012
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 version rather than
whatever package you are using.
On Mon, Feb 6, 2012 at 6:52 AM, Aparna Sampath
<aparna.sampath26 at gmail.com> wrote:
> Hi All
> I would like to know how to access the values of the variable
> lambda.mu and and see what abs(lambdas)
> does since lambdas is not a keyword.
> Snippet of the code:
> scoreFunction <- function(lambdas)
> lambda.mu <- abs(lambdas)
> Thanks in advance.
> Aparna Sampath
> Master of Science (Bioinformatics)
> Nanyang Technological University
> Mob no : +65 91601854
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help