Skip to content

Commit

Permalink
Ensure strings aren't converted to factors in m*ply
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Oct 5, 2008
1 parent 7395812 commit 13c40e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ply-mapply.r
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ m_ply <- function(data., fun. = NULL, ..., progress. = "none") {
.matrix_to_df <- function(data.) {
cnames <- colnames(data.)
if (is.null(cnames)) cnames <- rep("", ncol(data.))
data. <- as.data.frame(data.)
data. <- as.data.frame(data., stringsAsFactors = FALSE)
colnames(data.) <- cnames
data.
}

0 comments on commit 13c40e2

Please sign in to comment.