Skip to content

Commit e4cfc83

Browse files
committed
fix: correct a typo in empty
Signed-off-by: Ali Sajid Imami <395482+AliSajid@users.noreply.github.com>
1 parent f08c0e5 commit e4cfc83

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

R/parse_BN_crosstabFile.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ parse_BN_crosstabFile <- function(file_path, type = c(
2525
)
2626

2727
meta_rows <- which(df[, 1] == "")
28-
epmty_col <- which(df[meta_rows[1], ] == "")
28+
empty_col <- which(df[meta_rows[1], ] == "")
2929

30-
meta_info <- df[meta_rows, (epmty_col[length(epmty_col)] + 1):ncol(df)]
30+
meta_info <- df[meta_rows, (empty_col[length(empty_col)] + 1):ncol(df)]
3131

3232
rows_end <- nrow(df)
3333
rows_start <- meta_rows[(length(meta_rows))] + 2
3434

3535
data <- df[rows_start:rows_end, ]
36-
data <- data[, c(1, (epmty_col[length(epmty_col)] + 2):ncol(data))]
36+
data <- data[, c(1, (empty_col[length(empty_col)] + 2):ncol(data))]
3737

3838
df2 <- data.frame(t(data[-1]), stringsAsFactors = F)
3939
colnames(df2) <- data[, 1]

0 commit comments

Comments
 (0)