Skip to content

Commit

Permalink
delete space (ASCII "\032") in rings data of FHX files. Found after a…
Browse files Browse the repository at this point in the history
…fter the last line
  • Loading branch information
chguiterman committed Apr 23, 2020
1 parent b5070c8 commit 807841f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/io.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ read_fhx <- function(fname, encoding, text) {
id.vars = "year", value.name = "rec_type",
variable.name = "series", na.rm = TRUE
)
fl_body_melt <- fl_body_melt[fl_body_melt$rec_type != ".", ]
fl_body_melt <- fl_body_melt[! fl_body_melt$rec_type %in% c(".", "\032"), ]
fl_body_melt$rec_type <- vapply(fl_body_melt$rec_type, abrv2rec_type, "") # nolint
fl_body_melt$rec_type <- make_rec_type(fl_body_melt$rec_type)
f <- fhx(
Expand Down

0 comments on commit 807841f

Please sign in to comment.