about package randomizeBE [🇷 for BE/BA]
Dear Detlew and all others,
I recently tried to re-write GUI for your developed R package
Thanks in advanced.
I recently tried to re-write GUI for your developed R package
randomizeBE
. And I got some error messages about the function sequences. Here is what I got require("randomizeBE")
tmts<- c("R","T")
tmts
[1] "R" "T"
sequences("parallel", tmts=tmts)
Error in if (!is.null(tmts) & length(tmts) != ntmt) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In sequences("parallel", tmts = tmts) : NAs introduced by coercion
sequences
function (design, tmts = NULL)
{
seqs <- character()
ntmt <- as.numeric(substr(design, 1, 1)) ### Q1: if this works for design=="parallel" too?
if (!is.null(tmts) & length(tmts) != ntmt) {
stop("Treatment codes must have ", ntmt, " entries!")
}
if (design == "2x2" | design == "2x2x2")
seqs <- c("AB", "BA")
if (design == "parallel") ### Q2: not working if tmts=c("R","T")?
seqs <- c("A", "B")
if (design == "3x3" | design == "3x3x3") {
seqs <- c("ABC", "BCA", "CAB")
seqs <- randLS(seqs)
...
}
sequences("parallel")
[1] "A" "B"
Warning message:
In sequences("parallel") : NAs introduced by coercion ### Q3: is this warning message normal?
sequences("parallel", tmts=c("R","T1","T2")) ### Q4: not implemented yet for this?
Error in if (!is.null(tmts) & length(tmts) != ntmt) { :
missing value where TRUE/FALSE needed
In addition: Warning message:
In sequences("parallel", tmts = c("R", "T1", "T2")) :
NAs introduced by coercion
Thanks in advanced.
—
All the best,
-- Yung-jin Lee
bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
All the best,
-- Yung-jin Lee
bear v2.9.1:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
Complete thread:
- about package randomizeBEyjlee168 2019-08-19 12:14 [🇷 for BE/BA]
- about package randomizeBE yjlee168 2019-08-20 14:04
- about package randomizeBE d_labes 2019-08-24 16:26
- about package randomizeBE yjlee168 2019-08-24 19:32
- randomizeBE 0.3-5 Helmut 2019-08-25 13:43
- randomizeBE 0.3-5 yjlee168 2019-08-25 15:19
- randomizeBE 0.3-5 Helmut 2019-08-25 16:26
- randomizeBE 0.3-5 yjlee168 2019-08-25 17:08
- randomizeBE 0.3-5 d_labes 2019-08-25 19:39
- randomizeBE 0.3-5 Helmut 2019-08-25 16:26
- randomizeBE 0.3-5 yjlee168 2019-08-25 15:19
- randomizeBE 0.3-5 Helmut 2019-08-25 13:43
- about package randomizeBE yjlee168 2019-08-24 19:32
- about package randomizeBE d_labes 2019-08-24 16:26
- about package randomizeBE yjlee168 2019-08-20 14:04