Skip to content

Commit

Permalink
DS-3884 Minor tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwishart committed Aug 15, 2022
1 parent 603a339 commit 559b937
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/removeat.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,5 @@ parseIndex <- function(index, split = NULL)
if (!is.null(split))
index <- ConvertCommaSeparatedStringToVector(index, split)
tmp <- suppressWarnings(as.numeric(index))
if (all(!is.na(tmp)))
return(tmp)
return(index)
if (all(!is.na(tmp))) tmp else index
}

0 comments on commit 559b937

Please sign in to comment.