We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_nircal()
The read_nircal() fails if the ID column in the .nitr file contains some special characters e.g. L61225_Aldi Süd_02.11.06_ARPA_0001_0002
L61225_Aldi Süd_02.11.06_ARPA_0001_0002
The text was updated successfully, but these errors were encountered:
Solution:
in get_nircal_ids() replace:
get_nircal_ids()
ids <- strsplit(ids, "\n", useBytes = TRUE)[[1]] # ids <- iconv(ids, to = "UTF-8", sub = NA) ids <- enc2utf8(ids) ids <- ids[-c(1, length(ids))] ids <- substr(x = ids, start = regexpr("/", ids) + 1, stop = 100000)
by
ids <- enc2utf8(ids) ids <- strsplit(ids, "\n", useBytes = TRUE)[[1]] # ids <- iconv(ids, to = "UTF-8", sub = NA) ids2 <- ids[-c(1, length(ids))] ids <- try(substr(x = ids2, start = regexpr("/", ids) + 1, stop = 100000)) if (inherits(ids, "try-error")) { ids <- iconv(ids2, from = "Latin1", to = "UTF-8") }
Sorry, something went wrong.
fixed
l-ramirez-lopez
No branches or pull requests
The
read_nircal()
fails if the ID column in the .nitr file contains some special characters e.g.L61225_Aldi Süd_02.11.06_ARPA_0001_0002
The text was updated successfully, but these errors were encountered: