Skip to content

Commit

Permalink
Merge pull request #20 from VEuPathDB/export-findNumericCols
Browse files Browse the repository at this point in the history
export findNumericCols
  • Loading branch information
asizemore authored Sep 21, 2023
2 parents 3531e79 + 8c5c3b5 commit defa36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export(findCollectionVariableMetadata)
export(findDataShapesFromPlotRef)
export(findDataTypesFromPlotRef)
export(findIndexFromPlotRef)
export(findNumericCols)
export(findStudyDependentVocabularyVariableMetadata)
export(findVariableMetadataFromEntityId)
export(findVariableMetadataFromPlotRef)
Expand Down
1 change: 1 addition & 0 deletions R/utils-numeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ naToZero.default <- function(x) {
#' @param x list, data.frame, array, or vector
#' @return vector of numeric column names in x. If no numeric columns found, returns NULL
#' @importFrom purrr map_lgl
#' @export
findNumericCols <- function(x) {
numericCols <- names(x)[purrr::map_lgl(x, is.numeric)]

Expand Down

0 comments on commit defa36e

Please sign in to comment.