Skip to content

Commit

Permalink
Merge pull request #44 from bkemper24/main
Browse files Browse the repository at this point in the history
check for toVectors() returning empty list
  • Loading branch information
bkemper24 authored Jan 10, 2023
2 parents 0bcbcad + 716d8dc commit b09bc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/swat.R
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ cas2r <- function(sw_value) {
}, silent = TRUE)

# Use vectors if it exists, it will be much faster
if ( !is.null(vectors) ) {
if ( !is.null(vectors) && length(vectors) > 0 ) {
col.names <- c()
col.transformers <- list()
for (col in 0 : (nCols - 1)) {
Expand Down

0 comments on commit b09bc46

Please sign in to comment.