R-Inferno [🇷 for BE/BA]
❝ that’s strange...
The answer to that problem:
R is an interactive language and tries to save the user from keystrokes.
Partial match of names is one of these tries.
See Patrick Burns R-Inferno, Paragraph "8.1.20 partial matching can partially confuse".
That means what we see in case of
power.RSABE()$nis the value of
r2 <- sampleN.RSABE(CV=0.3, theta0=0.95, print=F)
# will give 27, the original nlast
r2$nlast <- 100
# will give our changed content nlast=100
sampleN.TOST()doesn't have a return parameter which could be matched with n.
Thefore we obtain correctly NULL.
❝ ... In the functions of
design is character variable, but
Design is a 1-level factor.
The lazy author of the functions had forgotten to use the argument
stringsAsFactorsin creating the return data.frame. Have his butt's . Also for capitalizing Design.