Displaying 2 results from an estimated 2 matches for "rsoerum80".
2003 Nov 12
5
repeat until function
Hi,
I'm in this situation:
I what to generate N random numbers(integer) that are different from each
other.
One suggestion:
tabel <- rep(NULL, N)
for (i in 1:N){
temp <- as.integer(runif(1,1,max))
if(temp in tabel) {
repeat (?) (temp <- as.integer(runif(i,i,max)))
until (?) ((temp in tabel) ==FALSE)
}
else{ tabel[i] <- temp}
I can't use
2003 Nov 07
2
opposite function of strsplit() ?
Hi,
I what to solve this problem:
>alfab <- "ABCEDFG" #[1] "ABCEDFG"
>chara <- strsplit(alfab, "") #[1] "A" "B" "C" "E" "D"
>"F" "G"
Then I do some changes before I want the character together again, say,
remove two letters.
Now,