diff options
author | Ken Kellner <ken@kenkellner.com> | 2018-08-31 14:16:58 -0400 |
---|---|---|
committer | Ken Kellner <ken@kenkellner.com> | 2018-08-31 14:16:58 -0400 |
commit | 5b74135547b523f1bca75f3affa21f4aa0193121 (patch) | |
tree | a2683c4961bf6738853cd7d6061acf494eda3c47 | |
parent | 6b9ee6fe052acae36a2ae69c3d577ef734da9458 (diff) |
Don't collapse 1 row / 1 col matrices into vectors automatically
-rw-r--r-- | R/datacheck.R | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/R/datacheck.R b/R/datacheck.R index 7222ba3..7c40473 100644 --- a/R/datacheck.R +++ b/R/datacheck.R @@ -14,10 +14,10 @@ data.check <- function(x,name,verbose=TRUE){ if (is.numeric(x)&&is.matrix(x)){ - if(1%in%dim(x)){ - if(verbose){cat('\nConverting 1-column matrix \'',name,'\' to vector\n',sep="")} - x = as.vector(x) - } + #if(1%in%dim(x)){ + # if(verbose){cat('\nConverting 1-column matrix \'',name,'\' to vector\n',sep="")} + # x = as.vector(x) + #} test = TRUE } @@ -33,4 +33,4 @@ data.check <- function(x,name,verbose=TRUE){ return(x) } else{return('error')} -}
\ No newline at end of file +} |