Skip to content

Data types information

Source code

Description

Get the data type of all columns as strings. You can see all available types with names(pl$dtypes). The data type of each column is also shown when printing the DataFrame.

Usage

<DataFrame>$dtype_strings()

Value

A character vector with the data type of each column

Examples

library(polars)

pl$DataFrame(iris)$dtype_strings()
#> [1] "f64" "f64" "f64" "f64" "cat"