Skip to content

Commit

Permalink
add fill = T in fread
Browse files Browse the repository at this point in the history
  • Loading branch information
hxfan1227 committed Oct 28, 2024
1 parent cee3df1 commit 60b85ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/import_cmdc_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NULL
#' @export
import_cmdc_data <- function(fname){
cmdc <- list()
cmdc$data <- data.table::fread(fname)
cmdc$data <- data.table::fread(fname, fill = T) # in case that the row lengths are not equal.
class(cmdc) <- cmdcr::get_data_type(fname)
cmdc
}

0 comments on commit 60b85ec

Please sign in to comment.