Conversation
R/dataframe.R
Outdated
There was a problem hiding this comment.
I'd prefer if the two functions were documented together (via @rdname).
Current coverage is
|
R/dataframe.R
Outdated
There was a problem hiding this comment.
If this is intended behavior, it should be documented, but I wonder if it's necessary. (One can always write use_as_rownames() %>% as.data.frame or the other way round, if necessary.)
There was a problem hiding this comment.
At least to me, use_as_rownames is to interact with the base::data.frame and tbl is trying to avoid rownames. So I convert it into data.frame directly. Comments?
There was a problem hiding this comment.
Makes sense; still, needs to be documented.
There was a problem hiding this comment.
I do not get meaning of to be documented. Return a data.frame is documented in details now. Correct?
|
More tests are added (I use test a few. Maybe need update).
|
R/dataframe.R
Outdated
There was a problem hiding this comment.
This should go into the @details section
|
Thanks. This looks good, I'll merge it soon. |
DESCRIPTION
Outdated
There was a problem hiding this comment.
This spurious change prevents me from merging into master.
R/dataframe.R
Outdated
There was a problem hiding this comment.
The new function isn't supposed to convert to tbl_df. Let's remove add_rownames() altogether and keep it only in dplyr for compatibility.
There was a problem hiding this comment.
rownames_to_column is a copy of add_rownames. So you mean keep the input of rownames_to_column as it is (I did not change that section)? For example, input data.frame output data.frame? I will remove add_rownames.
There was a problem hiding this comment.
Yes, data.frame -> data.frame, tbl_df -> tbl_df. Thanks.
use_as_rownamesfunction returns data.frame, not tbl, with rownames. This is to solve issue #8.Closes #8.
Closes #28.