Skip to content

Commit

Permalink
replace as.data.table(dt) with setDT(dt)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Oct 20, 2021
1 parent 0680d82 commit f138edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r-package/R/java_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ java_to_dt <- function(obj) {
})

# convert list of vectors to a data.table, and rename columns accordingly
dt <- data.table::as.data.table(dt)
data.table::setDT(dt)
data.table::setnames(dt, new = columns)
}

0 comments on commit f138edb

Please sign in to comment.