You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/02 18:23:23 UTC
[GitHub] [arrow] thisisnic commented on a change in pull request #12547: MINOR: [R][DOCS] Fix Scalar reference
thisisnic commented on a change in pull request #12547:
URL: https://github.com/apache/arrow/pull/12547#discussion_r817979160
##########
File path: r/R/scalar.R
##########
@@ -25,14 +25,16 @@
#' @description A `Scalar` holds a single value of an Arrow type.
#'
#' @section Methods:
-#' `$ToString()`: convert to a string
-#' `$as_vector()`: convert to an R vector
-#' `$as_array()`: convert to an Arrow `Array`
-#' `$Equals(other)`: is this Scalar equal to `other`
-#' `$ApproxEquals(other)`: is this Scalar approximately equal to `other`
-#' `$is_valid`: is this Scalar valid
-#' `$null_count`: number of invalid values - 1 or 0
-#' `$type`: Scalar type
+#' - `$ToString()`: convert to a string
+#' - `$as_vector()`: convert to an R vector
+#' - `$as_array()`: convert to an Arrow `Array`
+#' - `$Equals(other)`: is this Scalar equal to `other`
+#' - `$ApproxEquals(other)`: is this Scalar approximately equal to `other`
+#' - `$is_valid`: is this Scalar valid
+#' - `$null_count`: number of invalid values - 1 or 0
+#' - `$type`: Scalar type
+#' - `$cast(target_type, safe = TRUE, options = cast_options(safe))`: Alter the
+#' data in the Scalar to change its type.
Review comment:
```suggestion
#' - `$cast(target_type, safe = TRUE, options = cast_options(safe))`: cast value to a different type
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org