Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9613#discussion_r44734240
  
    --- Diff: R/pkg/R/DataFrame.R ---
    @@ -2200,4 +2200,107 @@ setMethod("coltypes",
                 rTypes[naIndices] <- types[naIndices]
     
                 rTypes
    -          })
    \ No newline at end of file
    +          })
    +
    +#' Display the structure of a DataFrame, including column names, column 
types, as well as a
    +#' a small sample of rows.
    +#' @name str
    +#' @title Compactly display the structure of a dataset
    +#' @rdname str_data_frame
    +#' @family dataframe_funcs
    +#' @param x a DataFrame
    +#' @examples \dontrun{
    +#'
    +#' # Create a DataFrame from the Iris dataset
    +#' irisDF <- createDataFrame(sqlContext, iris)
    +#' 
    +#' # Show the structure of the DataFrame
    +#' str(irisDF)
    +#' 
    +#' }
    +setMethod("str", signature="DataFrame", definition=
    +            function(object) {
    --- End diff --
    
    This is a little odd, try with the same format of coltypes:
    ```
     setMethod("coltypes",
               signature(x = "DataFrame"),
               function(x) {
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to