The optim documentation states (second from last sentence of Details Section)
that "Any names given to par will be copied to the vectors passed to \code{fn}
and \code{gr}." This does not seem to be the case when the method argument is
set to "Brent".
Consider finding an optimum with the "Brent"
On 22/06/2018 9:55 AM, Rui Barradas wrote:
Hello,
This just came up in SO, sessionInfo() at the end.
https://stackoverflow.com/questions/50988018/seeking-explanation-for-as-date-function-in-r?noredirect=1#comment88971055_50988018
# example 1
# not even the month is right
as.Date(x = 1, form
Hello,
This just came up in SO, sessionInfo() at the end.
https://stackoverflow.com/questions/50988018/seeking-explanation-for-as-date-function-in-r?noredirect=1#comment88971055_50988018
# example 1
# not even the month is right
as.Date(x = 1, format = '%j', origin= '2015-01-01')
#[1] "2018-