Skip to content

Commit

Permalink
read strings as factors
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyDoorn authored and boutinb committed Apr 23, 2024
1 parent 53f9265 commit a11ad0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loadCorrectDataset <- function(x) {

# check if it's a path to a file
if (file.exists(x)) {
return(utils::read.csv(x, header = TRUE, check.names = FALSE))
return(utils::read.csv(x, header = TRUE, check.names = FALSE, stringsAsFactors = TRUE))
}

# check if it's a name of a JASP dataset
Expand Down

0 comments on commit a11ad0a

Please sign in to comment.