Re: [R] [R-devel] Source Code for function

2019-09-10 Thread Golden, Shelby
://stackoverflow.com/questions/1743698/evaluate-expression-given-as-a-string - comment left Martin Maechler). Thank you again, and I hope you have a wonderful week! Shelby From: Richard O'Keefe Date: Sunday, September 8, 2019 at 11:01 PM To: "Golden, Shelby" Cc: "Richard M. Heib

Re: [R] [R-devel] Source Code for function

2019-09-06 Thread Golden, Shelby
-pd > On 6 Sep 2019, at 23:10 , David Winsemius wrote: > > > On 9/6/19 1:07 PM, Golden, Shelby wrote: >> Thank you all for your reply. I should clarify, that I am looking to understand why the keyword function can take a logical argument (eg: x

Re: [R] [R-devel] Source Code for function

2019-09-06 Thread Golden, Shelby
lby On 9/6/19, 3:10 PM, "David Winsemius" wrote: On 9/6/19 1:07 PM, Golden, Shelby wrote: > Thank you all for your reply. I should clarify, that I am looking to understand why the keyword function can take a logical argument (eg: x<4) and use that later inside

Re: [R] [R-devel] Source Code for function

2019-09-06 Thread Golden, Shelby
To: "Golden, Shelby" Cc: "r-help@R-project.org" , "Gillenwater, Lucas" Subject: Re: [R] [R-devel] Source Code for function Hi Shelby, Not quite sure what you are trying to do. Mine might be off-topic but have you seen this document? http://adv-r.had.co.nz/Func

Re: [R] [R-devel] Source Code for function

2019-09-06 Thread Golden, Shelby
> > > > > parse(text="function(x)message(x)") > > expression(function(x)message(x)) > > > eval(parse(text="function(x)message(x)")) > > function(x)message(x) > > > > Best, > > Jiefei >

Re: [R] [R-devel] Source Code for function

2019-09-06 Thread Golden, Shelby
: "Golden, Shelby" Cc: "r-help@R-project.org" , "Gillenwater, Lucas" Subject: Re: [R] [R-devel] Source Code for function 1. This is a plain text list; all html is stripped. So there is no red highlighting. 2. There is no "source code" for "func

[R] [R-devel] Source Code for function

2019-09-06 Thread Golden, Shelby
Hi all, I have been attempting to access the source code for the keyword “function” to better understand how it assigns and stores logical inputs, like in the subset() [base] function. Does anyone know how I can access the source code for this? For example, if I have norm <- function(x){