Skip to content

Commit

Permalink
defensive drop=FALSE in create.bins
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lawrence Miller committed May 13, 2017
1 parent 52eb627 commit f5bd2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/create.bins.R
Expand Up @@ -25,7 +25,7 @@ create.bins <- function(data,cutpoints){
if(!all(in.cp.ind)){
warning("Some distances were outside bins and have been removed.")
}
data <- data[in.cp.ind,]
data <- data[in.cp.ind, , drop=FALSE]

# pull out the distances (removing the NAs for now)
na.ind <- is.na(data$distance)
Expand Down

0 comments on commit f5bd2e1

Please sign in to comment.