Skip to content

Commit

Permalink
precision fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dswatson committed Nov 13, 2023
1 parent 9647aad commit f25f26e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/forde.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ forde <- function(
if (any(!factor_cols)) {
prec[!factor_cols] <- sapply(which(!factor_cols), function(j) {
if (any(grepl('\\.', x[[j]]))) {
out <- max(nchar(sub('.*[.]', '', x[[j]])))
tmp <- x[grepl('\\.', x[[j]]), j]
out <- max(nchar(sub('.*[.]', '', tmp)))
} else {
out <- 0L
}
Expand Down

0 comments on commit f25f26e

Please sign in to comment.