December 19, 2017 at 8:29 pm
Comments posted to this topic are about the item Parameters
December 20, 2017 at 12:02 am
Nice one, thanks Steve
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
December 20, 2017 at 1:07 am
Interesting question, but I would argue that R isn't "smart enough to know that the last parameter, unnamed, is second", but rather that R is "stupid enough to not complain about what is probably a mistake."
If I was doing QA on that code I would definitely pounce.
December 20, 2017 at 10:36 am
Nice question, but the last bit of the explanation is a real mess (good job the question doesn't in any way depend on that bit - if it did I would have go it wrong!
Just what is "FindingTheMean2(f=25, t = 100, 200)" supposed to mean? I can't find anything that explains it (presumably as asking for the second parameter, which would look like really foul language design in the absence of some form of quotation marking so actually I'm glad not to have found it) in the document referenced. And if I tried running it (in R x64 3.4.1, which is what I'm playing with to try to learn the language) after creating the function FindingTheMean I certainly wouldn't get 200 as a result, I would get an error telling me there was no such function as FindingTheMean2 (unless I had also defined that).
Tom
December 20, 2017 at 11:05 am
TomThomson - Wednesday, December 20, 2017 10:36 AMNice question, but the last bit of the explanation is a real mess (good job the question doesn't in any way depend on that bit - if it did I would have go it wrong!
Just what is "FindingTheMean2(f=25, t = 100, 200)" supposed to mean? I can't find anything that explains it (presumably as asking for the second parameter, which would look like really foul language design in the absence of some form of quotation marking so actually I'm glad not to have found it) in the document referenced. And if I tried running it (in R x64 3.4.1, which is what I'm playing with to try to learn the language) after creating the function FindingTheMean I certainly wouldn't get 200 as a result, I would get an error telling me there was no such function as FindingTheMean2 (unless I had also defined that).
Tom
As this is an SQL Server site, I would check what happens in an R sproc.
My case: it blew in an R sproc on an SQLS-centric project but the developer claimed that 'But it works in my R Studio.'
December 25, 2017 at 2:44 pm
.
You never know: reading my book: "All about your computer" might just tell you something you never knew!
lulu.com/kaspencer
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply