Skip to content

Commit cf515a9

Browse files
author
Akira Hayashi
committed
🐛 Allow tibble in headerize()
1 parent fdf431a commit cf515a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/shapetools.R

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ make_ascii <- function(df, col, numerize = FALSE) {
127127
#' @param row Position of the row to make df header
128128
#' @export
129129
headerize <- function(df, row) {
130+
df <- as.data.frame(df)
130131
body <- df[-row, ]
131132
head <- df[row, ]
132133
magrittr::set_colnames(body, head)

0 commit comments

Comments
 (0)