Returns a list containing the fields of a wrapper object
Value
A list with the following entries:
contents: Any R object. The underlying object being wrappedhas_na: Logical scalar.TRUEifcontentsmight containNA, orFALSEif it definitely doesn't.is_sorted: Logical scalar.TRUEifcontentsis sorted in any orderdescending: Logical scalar.TRUEifcontentsis sorted in descending order,FALSEif it is sorted in ascending order, orNAif it isn't sorted or its sorting status is unknown.na_firstLogical scalar.TRUEifcontentsis sorted in an order that putsNAvalues first,FALSEif it is sorted last, orNAifcontentsis unsorted or its sorting status is unknown
Examples
sort(5:1) |> wrapper_details()
#> $contents
#> [1] 1 2 3 4 5
#>
#> $has_na
#> [1] FALSE
#>
#> $is_sorted
#> [1] TRUE
#>
#> $descending
#> [1] FALSE
#>
#> $na_first
#> [1] FALSE
#>