| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../../cpp/../r/articles/./../reference/cast.html | [Back] [Original] |
This is a wrapper around the $cast() method that many Arrow objects have.
It is more convenient to call inside dplyr pipelines than the method.
an Array, Table, Expression, or similar Arrow data object.
DataType to cast to; for Table and RecordBatch, it should be a Schema.
logical: only allow the type conversion if no data is lost
(truncation, overflow, etc.). Default is TRUE.
specific CastOptions to set
An Expression
data-type for a list of DataType to be used with to.
Arrow C++ CastOptions documentation # nolint for the list of supported CastOptions.
if (FALSE) { # \dontrun{
mtcars |>
arrow_table() |>
mutate(cyl = cast(cyl, string()))
} # }
| Web Proxy Viewer | New URL | Original Page |