toBoolean
Converts values in the columns previously selected with convert to Boolean, preserving their original names and positions within the DataFrame. Preserves null values.
For more information: See convert on the documentation website.
Examples:
df.convert { isMarked and isFinished }.toBoolean()
df.convert { colsOf<String?> { it.name.startsWith("it") } }.toBoolean()Content copied to clipboard