thisisnic commented on a change in pull request #12546:
URL: https://github.com/apache/arrow/pull/12546#discussion_r830869645



##########
File path: r/R/type.R
##########
@@ -320,11 +320,27 @@ NestedType <- R6Class("NestedType", inherit = DataType)
 #' @return An Arrow type object inheriting from DataType.
 #' @export
 #' @seealso [dictionary()] for creating a dictionary (factor-like) type.
-#' @examplesIf arrow_available()
+#' @examplesIf arrow_available() && arrow_with_dataset()
 #' bool()
 #' struct(a = int32(), b = double())
 #' timestamp("ms", timezone = "CEST")
 #' time64("ns")
+#'
+#' # Use the cast method to change the type of data contained in Arrow Objects.
+#' # Please check the documentation of each data object class for details.
+#' Scalar$create(0L)$cast(int64())$cast(timestamp("ns"))

Review comment:
       Just to check - what's the significance of the fact that it takes an 
argument?




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to