Fixed syntax
This commit is contained in:
parent
22d689c1c4
commit
68ad663ce1
2 changed files with 4 additions and 4 deletions
|
|
@ -268,7 +268,7 @@ greedyMix <- function(
|
|||
|
||||
ninds <- length(unique(data[, ncol(data)]))
|
||||
ekat <- t(seq(1, ninds, rowsFromInd) * rowsFromInd)
|
||||
c$rows <- c(ekat, ekat + rowsFromInd - 1)
|
||||
c$rows <- t(rbind(ekat, ekat + rowsFromInd - 1))
|
||||
|
||||
# ASK remove?
|
||||
# partition compare
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ indMix <- function(c, npops, dispText) {
|
|||
npopstext <- c(npopstext, ' ', npopstextExtra)
|
||||
teksti <- 'The input field length limit (255 characters) was reached. Input more values: '
|
||||
} else {
|
||||
npopstext <- c(npopstext, ' ', npopstextExtra)
|
||||
npopstext <- strsplit(npopstextExtra, " ")[[1]]
|
||||
ready <- TRUE
|
||||
}
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ indMix <- function(c, npops, dispText) {
|
|||
worstLogml <- -1e50
|
||||
worstIndex <- 1
|
||||
for (run in 1:nruns) {
|
||||
npops <- npopsTaulu[run]
|
||||
npops <- npopsTaulu[[run]]
|
||||
if (dispText) {
|
||||
dispLine()
|
||||
print(
|
||||
|
|
@ -99,7 +99,7 @@ indMix <- function(c, npops, dispText) {
|
|||
PARTITION <- zeros(ninds, 1)
|
||||
for (i in 1:ninds) {
|
||||
apu <- rows[i]
|
||||
PARTITION[i] <- initialPartition(apu[1])
|
||||
PARTITION[i] <- initialPartition[apu[1]]
|
||||
}
|
||||
|
||||
COUNTS <- counts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue