
Read zip archive and unzip tab delimited files downloaded from SHARK
Source:R/shark_read.R
shark_read_zip.Rd
This function is deprecated and has been replaced by
read_shark().
Arguments
- zipname
Path to the zip archive containing SHARK data (expects a file named
shark_data.txtinside).- delimiters
Character. Specifies the delimiter used to separate values in the file. Options are
"point-tab"(tab-separated) or"point-semi"(semicolon-separated). Default is"point-tab".- encoding
Character. Specifies the text encoding of the file. Options are
"cp1252","utf_8","utf_16", or"latin_1". Default is"utf_8". If encoding mismatch is detected, the detected encoding is used.
Details
Uses unz() and read_delim() to extract and read tab-delimited or
semicolon-delimited files with standardized export format from SHARK.
Like shark_read(), this function is tolerant to encoding issues.
It allows a user-specified encoding (cp1252, utf_8, utf_16, or latin_1),
but also automatically detects the encoding from the file content.
If the detected encoding does not match the specified one,
the detected encoding is preferred.
This ensures files with wrongly labeled or inconsistent encodings are still read correctly.