Last chance! 50% off unlimited learning
Sale ends in
Opens a connection to a PIAAC data file and
returns an edsurvey.data.frame
with
information about the file and data.
readPIAAC(
path,
countries,
forceReread = FALSE,
verbose = TRUE,
usaOption = "12_14"
)
a character value to the full directory path to the PIAAC .csv files and Microsoft Excel codebook
a character vector of the country/countries to include
using the three-digit ISO country code. A list of country
codes can be found in the PIAAC codebook or
https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes.
If files are downloaded using downloadPIAAC
,
a country dictionary text file can be
found in the filepath. You can use *
to indicate
all countries available. For the usa
, the year must
be specified using: usa12_14
or usa17
.
a logical value to force rereading of all processed data.
Defaults to FALSE
.
Setting forceReread
to be TRUE
will cause
PIAAC data to be reread and increase the processing time.
a logical value that will determine if you want verbose
output while the function is running to indicate the progress.
Defaults to TRUE
.
a character value of 12_14
or 17
that specifies
what year of the USA survey should be used when loading all countries by
using *
in the countries
argument. This will only make a difference
when loading all countries. Defaults to 12_14
.
an edsurvey.data.frame
for a single specified country or
an edsurvey.data.frame.list
if multiple countries specified
Reads in the unzipped .csv files downloaded from the PIAAC dataset using
the OECD repository (http://www.oecd.org/skills/piaac/). Users can use
downloadPIAAC
to download all required files automatically.
Organisation for Economic Co-operation and Development. (2016). Technical report of the survey of adult skills (PIAAC) (2nd ed.). Paris, France: Author. Retrieved from http://www.oecd.org/skills/piaac/PIAAC_Technical_Report_2nd_Edition_Full_Report.pdf
getData
and downloadPIAAC
# NOT RUN {
# the following call returns an edsurvey.data.frame to PIAAC for Canada
can <- readPIAAC("~/PIAAC/Cycle 1/", countries = "can")
# extract a data.frame with a few variables
gg <- getData(can, c("c_d05","ageg10lfs"))
head(gg)
# conduct an analysis on the edsurvey.data.frame
edsurveyTable(~ c_d05 + ageg10lfs, data = can)
# }
Run the code above in your browser using DataLab