Skip to content

Commit

Permalink
Remove use of default.stringsAsFactors()
Browse files Browse the repository at this point in the history
  • Loading branch information
hmalmedal committed Mar 17, 2022
1 parent 18925cd commit 29a2b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/jsonstat_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ array_to_jsonstat_helper <- function(jsa){
}

#' @export
as.data.frame.jsonstat_dataset <- function(x, row.names = NULL, optional = FALSE, ..., stringsAsFactors = default.stringsAsFactors()){
as.data.frame.jsonstat_dataset <- function(x, row.names = NULL, optional = FALSE, ..., stringsAsFactors = FALSE){
df <- parse_dataset(dataset = x, naming = "id", use_factors = stringsAsFactors)
if(!is.null(row.names)) rownames(df) <- row.names
df
Expand Down

0 comments on commit 29a2b7d

Please sign in to comment.