-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as.data.frame.tbl_df() ignores row.names argument #1202
Comments
Thanks. This has been like this from day one, but looks like something we could consider. On the other hand, there's @hadley @DavisVaughan: What are your thoughts on supporting |
If it's simple to implement and doesn't affect much downstream code, it seems like it's worth adhering to the |
Reverted because it's causing downstream failures. Will address in a separate PR after CRAN release. |
If it's going to cause revdep failures, that clearly pushes it in to the "not worth it" category, IMO. |
I just ran into this as well. Even though I agree that it might not be worth changing, please at least consider documenting this. Now the function arguments suggest functionality that is not implemented which is confusing for me as a user. |
Help says that for
as.data.frame()
,x
can be any R object androw.names
can be acharacter
vector giving the row names for the data frame.Although
tibble
has a valid opinion onrownames
, the output is adata.frame
. So, I believe that theas.data.frame.tbl_df()
method should not ignorerow.names
argument and set the attribute likeas.data.frame.data.frame()
does.Obviously, I am not the expert so I am willing to be corrected. Thank You :)
sessionInfo()
The text was updated successfully, but these errors were encountered: