Skip to content

Commit

Permalink
Merge pull request #5 from atusy/bugfix
Browse files Browse the repository at this point in the history
bugfix in cluster and read_qnt
  • Loading branch information
atusy authored Sep 11, 2018
2 parents a56f24f + 08933f8 commit c066c2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/cluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cluster <- function(x, centers, xte = NULL, ...) {
x_trans <- t(x)
y <- pipeline({
centers
apply(1, function(y) colSums(x_trans - y) ^ 2)
apply(1, function(y) colSums((x_trans - y) ^ 2))
apply(1, which.min)
})
rm(x_trans)
Expand Down
2 changes: 1 addition & 1 deletion R/read_qnt.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ read_qnt <- function(
'wt'
) %>>%
(setNames(paste0(., '.qnt'), .)) %>>%
# `[`(file.exists(.)) %>>%
`[`(file.exists(.)) %>>%
lapply(fread)

elemw <- c('.cnd/elemw.cnd', 'Pos_0001/data001.cnd')
Expand Down

0 comments on commit c066c2b

Please sign in to comment.