We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correction to the cellIndexTable specifically the toInteger was not working
cellIndexTable <- function (env, nCellChunks, sumDirs, toInteger = T) { co = coordinates(env) keep = complete.cases(values(env)) co = co[keep, ] if (toInteger) co = apply(co, 2, as.integer) if (nCellChunks > 1) { chunks = cut(1:nrow(co), nCellChunks, labels = FALSE) } else { chunks = rep(1, nrow(co)) } cell.ind = data.frame(co, cellID = as.integer(cellFromXY(env, co)), chunkID = as.integer(chunks)) cell.ind = cell.ind %>% data.frame saveRDS(cell.ind, file = paste0(sumDirs$sumBaseDir, "/cellIndexTable.rds")) cell.ind }
The text was updated successfully, but these errors were encountered:
Merge pull request #1 from bjohnso005/master_fix
5750fb1
Fix CRAN check
No branches or pull requests
Correction to the cellIndexTable specifically the toInteger was not working
cellIndexTable <- function (env, nCellChunks, sumDirs, toInteger = T)
{
co = coordinates(env)
keep = complete.cases(values(env))
co = co[keep, ]
if (toInteger)
co = apply(co, 2, as.integer)
if (nCellChunks > 1) {
chunks = cut(1:nrow(co), nCellChunks, labels = FALSE)
}
else {
chunks = rep(1, nrow(co))
}
cell.ind = data.frame(co, cellID = as.integer(cellFromXY(env,
co)), chunkID = as.integer(chunks))
cell.ind = cell.ind %>% data.frame
saveRDS(cell.ind, file = paste0(sumDirs$sumBaseDir, "/cellIndexTable.rds"))
cell.ind
}
The text was updated successfully, but these errors were encountered: