Skip to content

Commit

Permalink
Minor: fix verbose message when stringsAsFactors=TRUE in fread
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsrinivasan committed Jul 11, 2015
1 parent 4dada61 commit 2a94588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fread.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fread <- function(input="",sep="auto",sep2="auto",nrows=-1L,header="auto",na.str
idx = which(vapply(ans, is.character, TRUE))
if (length(idx)) {
if (verbose)
cat("Converting char column(s) [", paste(names(ans)[idx], collapse=", "), "] to factors", sep="")
cat("Converting 'char' column(s) [", paste(names(ans)[idx], collapse=", "), "] to 'factor'\n", sep="")
for (j in idx)
set(ans, i = NULL, j = j, value = as_factor(ans[[j]]))
}
Expand Down

0 comments on commit 2a94588

Please sign in to comment.