[Rd] Add to Documentation of atan2.

2021-05-18 Thread Jorgen Harmse via R-devel
The current documentation says that atan2(y,x) is the angle between the x-axis and the vector from the origin to (x,y), but what does this mean when x & y are complex? The function seems to pick theta with Re(theta) between -pi and pi and with tan(theta) (approximately) equal to y/x, but that le

[Rd] glm Argument-Evaluation Does Not Match Documentation.

2018-08-03 Thread Jorgen Harmse via R-devel
Details in documentation: "All of ‘weights’, ‘subset’, ‘offset’, ‘etastart’ and ‘mustart’ are evaluated in the same way as variables in ‘formula’, that is first in ‘data’ and then in the environment of ‘formula’." In fact, `data` is usually not an environment, and I have not seen arguments evalu