@@ -160,7 +160,7 @@ to_matrix_axis <- function(direction) {
160160melt_matrix <- function (matrix ) {
161161 row_nms <- rownames(matrix )
162162 col_nms <- colnames(matrix )
163- data <- as_tibble0 (matrix , rownames = NULL ) # nolint
163+ data <- as_data_frame0 (matrix ) # nolint
164164 colnames(data ) <- seq_len(ncol(data ))
165165 data $ .row_index <- seq_len(nrow(data ))
166166 data <- tidyr :: pivot_longer(data ,
@@ -179,23 +179,21 @@ fct_rev <- function(x) {
179179 factor (ans , levels = rev(levels(ans )))
180180}
181181
182- data_frame0 <- function (... ) {
183- quickdf(list (... ))
184- }
185-
186182quickdf <- function (x ) {
187183 class(x ) <- " data.frame"
188184 attr(x , " row.names" ) <- .set_row_names(length(.subset2(x , 1L )))
189185 x
190186}
191-
192- tibble0 <- function (... ) {
193- tibble :: tibble(... , .name_repair = " minimal" )
187+ data_frame0 <- function (... ) quickdf(list (... ))
188+ as_data_frame0 <- function (data , ... ) {
189+ as.data.frame(
190+ x = data , ... ,
191+ make.names = FALSE ,
192+ stringsAsFactors = FALSE ,
193+ fix.empty.names = FALSE
194+ )
194195}
195196
196- as_tibble0 <- function (data , ... ) {
197- tibble :: as_tibble(data , ... , .name_repair = " minimal" )
198- }
199197
200198imap <- function (.x , .f , ... ) {
201199 nms <- names(.x )
0 commit comments