Skip to content

as_data_frame deprecated message #1149

@kwstat

Description

@kwstat

I want to convert a tibble to a data.frame. Since I'm used to the tidyverse having it's own non-R-style syntax (using underscores instead of dots), I tried this:

as_data_frame(as_tibble(iris))

and was told

Warning message:
`as_data_frame()` was deprecated in tibble 2.0.0.
Please use `as_tibble()` instead.
The signature and semantics have changed, see `?as_tibble`.

This warning message is very confusing and the help page is not clear either. It would be nice if both the warning and the help page said something like: "Maybe you meant as.data.frame", since that is actually the right syntax to convert a tibble into a dataframe.

as.data.frame(as_tibble(iris))

General comment: The decision to use "as_" instead of "as." has created much confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions