You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "daattali (via GitHub)" <gi...@apache.org> on 2023/04/10 06:00:07 UTC

[GitHub] [arrow] daattali commented on pull request #34825: GH-34775: [R] arrow_table: as.data.frame() sometimes returns a tbl and sometimes a data.frame

daattali commented on PR #34825:
URL: https://github.com/apache/arrow/pull/34825#issuecomment-1501430208

   As the user who reported the bug this PR is solving, I'd like to very succintly add my opinion.
   
   I personally **strongly** believe that `as.data.frame()` should return a `data.frame`. Plain and simple. That's just what would be intuitively expected. If I cast any object with `as.X()` then I expect the result to be exactly `X`, not a clever derivation/subclass of `X`. If I want a tibble, then I'd use for `as.tibble()`.
   
   Having `as.data.frame(x)` and `as.data.frame(as.data.frame(x))` return different types feels very wrong.


-- 
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