is_numeric_list: Determine if list has only numerical values.

Description Usage Arguments Value Note Examples

View source: R/DAISIE_utils.R

Description

Determine if list has only numerical values.

Usage

1

Arguments

x

Object to determine

Value

Boolean indicating if object is list with only numerical values

Note

do not forget: NAs are removed from a list!

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  testit::assert(
    DAISIE:::is_numeric_list(
      x = list(char = "character", numerical = 1)
    ) == FALSE
  )

  testit::assert(
    DAISIE:::is_numeric_list(
      x = list(numerical_1 = 1, numerical_2 = 2)
    ) == TRUE
  )

xieshu95/DAISIE_new documentation built on March 20, 2020, 5:31 a.m.