R-Inferno [🇷 for BE/BA]
Hi Helmut, hi ElMaestro,
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
Try:
Thefore we obtain correctly NULL.
The lazy author of the functions had forgotten to use the argument
. Also for capitalizing Design.
❝ 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()$n
is the value of power.RSABE()$nlast
.Try:
r2 <- sampleN.RSABE(CV=0.3, theta0=0.95, print=F)
r2$n
# will give 27, the original nlast
r2$nlast <- 100
r2$n
# 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 PowerTOST
design
is character variable, but Design
is a 1-level factor.
The lazy author of the functions had forgotten to use the argument
stringsAsFactors
in creating the return data.frame. Have his butt's 
—
Regards,
Detlew
Regards,
Detlew
Complete thread:
- A little off topic: data.frame members ElMaestro 2018-01-22 23:49 [🇷 for BE/BA]
- R-Inferno Helmut 2018-01-23 13:37
- R-Infernod_labes 2018-01-23 15:03
- Thanks :-D ElMaestro 2018-01-23 15:26
- Safe side syntax d_labes 2018-01-23 15:39
- Thanks :-D ElMaestro 2018-01-23 15:26
- R-Infernod_labes 2018-01-23 15:03
- A little off topic: data.frame members yjlee168 2018-01-23 17:47
- R-Inferno Helmut 2018-01-23 13:37