summaryrefslogtreecommitdiff
path: root/R/partition.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/partition.R')
-rw-r--r--R/partition.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/partition.R b/R/partition.R
index 0c92e76..e64e1fb 100644
--- a/R/partition.R
+++ b/R/partition.R
@@ -14,8 +14,8 @@ dataSlice <- function(object,indices){
stop("Invalid indices")
trim <- object
- trim$output <- trim$output[indices,]
- trim$input <- trim$input[indices,]
+ trim$output <- trim$output[indices,,drop=F]
+ trim$input <- trim$input[indices,,drop=F]
if(trim$type=="freq"){
trim$frequncies <- trim$frequencies[indices]