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)]))
|
ninds <- length(unique(data[, ncol(data)]))
|
||||||
ekat <- t(seq(1, ninds, rowsFromInd) * rowsFromInd)
|
ekat <- t(seq(1, ninds, rowsFromInd) * rowsFromInd)
|
||||||
c$rows <- c(ekat, ekat + rowsFromInd - 1)
|
c$rows <- t(rbind(ekat, ekat + rowsFromInd - 1))
|
||||||
|
|
||||||
# ASK remove?
|
# ASK remove?
|
||||||
# partition compare
|
# partition compare
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ indMix <- function(c, npops, dispText) {
|
||||||
npopstext <- c(npopstext, ' ', npopstextExtra)
|
npopstext <- c(npopstext, ' ', npopstextExtra)
|
||||||
teksti <- 'The input field length limit (255 characters) was reached. Input more values: '
|
teksti <- 'The input field length limit (255 characters) was reached. Input more values: '
|
||||||
} else {
|
} else {
|
||||||
npopstext <- c(npopstext, ' ', npopstextExtra)
|
npopstext <- strsplit(npopstextExtra, " ")[[1]]
|
||||||
ready <- TRUE
|
ready <- TRUE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -76,7 +76,7 @@ indMix <- function(c, npops, dispText) {
|
||||||
worstLogml <- -1e50
|
worstLogml <- -1e50
|
||||||
worstIndex <- 1
|
worstIndex <- 1
|
||||||
for (run in 1:nruns) {
|
for (run in 1:nruns) {
|
||||||
npops <- npopsTaulu[run]
|
npops <- npopsTaulu[[run]]
|
||||||
if (dispText) {
|
if (dispText) {
|
||||||
dispLine()
|
dispLine()
|
||||||
print(
|
print(
|
||||||
|
|
@ -99,7 +99,7 @@ indMix <- function(c, npops, dispText) {
|
||||||
PARTITION <- zeros(ninds, 1)
|
PARTITION <- zeros(ninds, 1)
|
||||||
for (i in 1:ninds) {
|
for (i in 1:ninds) {
|
||||||
apu <- rows[i]
|
apu <- rows[i]
|
||||||
PARTITION[i] <- initialPartition(apu[1])
|
PARTITION[i] <- initialPartition[apu[1]]
|
||||||
}
|
}
|
||||||
|
|
||||||
COUNTS <- counts
|
COUNTS <- counts
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue