You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title says it all. rownames_to_column() gives a warning if used on data.frame with no columns, but works as intended if there are columns.
library(tibble)
a<-matrix(nrow=1, ncol=0)
rownames(a) <-"name"a_df<- as.data.frame(a)
rownames_to_column(a_df)
#> Warning: The `.data` argument of `add_column()` must have unique names as of tibble 3.0.0.#> Use `.name_repair = "minimal"`.#> This warning is displayed once every 8 hours.#> Call `lifecycle::last_warnings()` to see where this warning was generated.#> rowname#> 1 name
tibble 3.0.2
- `[[` works with classed indexes again, e.g. created with `glue::glue()` (#778).
- `add_column()` works without warning for 0-column data frames (#786).
- `tribble()` now better handles named inputs (#775) and objects of non-vtrs classes like `lubridate::Period` (#784) and `formattable::formattable` (#785).
- Subsetting and subassignment are faster (#780, #790, #794).
- `is.null()` is preferred over `is_null()` for speed.
- Implement continuous benchmarking (#793).
- `is_vector_s3()` is no longer reexported from pillar (#789).
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
The title says it all.
rownames_to_column()
gives a warning if used on data.frame with no columns, but works as intended if there are columns.Created on 2020-06-07 by the reprex package (v0.3.0)
Created on 2020-06-07 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: