diff --git a/R/rswat_rest.R b/R/rswat_rest.R index 0c86fb1..2588574 100644 --- a/R/rswat_rest.R +++ b/R/rswat_rest.R @@ -174,8 +174,9 @@ REST_CASTable <- setRefClass( out <- do.call(rbind.data.frame, out) if (length(names(out)) > 0 ) { - names(out) <- col.names + names(out) <- col.names } + return( out ) },