Skip to content

Create List DataType

Source code

Description

Create List DataType

Usage

DataType_List(datatype = "unknown")

Arguments

datatype an inner DataType, default is "Unknown" (placeholder for when inner DataType does not matter, e.g. as used in example)

Value

a list DataType with an inner DataType

Examples

library(polars)

# some nested List
pl$List(pl$List(pl$Boolean))
#> DataType: List(
#>     List(
#>         Boolean,
#>     ),
#> )
# check if some maybe_list is a List DataType
maybe_List = pl$List(pl$UInt64)
pl$same_outer_dt(maybe_List, pl$List())
#> [1] TRUE