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/Trait_dependent_TraiSIE documentation built on Nov. 22, 2019, 7:51 a.m.