importFromTxt: Import data from .txt files from OECD website.

Description Usage Arguments Value

View source: R/importexport.R

Description

Import data from .txt files from OECD website.

Usage

1
2
3
4
importFromTxt(inputFilePath, variablesStartPositions, variablesEndPositions,
  groupingVariablesStartPositions, groupingVariablesEndPositions,
  groupingVariablesNames, studyYear, NAcodes = character(0),
  occupationNAcodes = character(0), outputFilePath = NULL)

Arguments

inputFilePath

path to the file to import.

variablesStartPositions

starting position of column containing country code, school id, mother and father occupation and plausible values and replicate weights.

variablesEndPositions

ending positions of column given in previous argument.

groupingVariablesStartPositions

starting positions of additional columns with factor variables.

groupingVariablesEndPositions

ending positions of variables from previous argument.

groupingVariablesNames

names for variables given in previous two arguments.

studyYear

year of study.

NAcodes

codes for NA values in PV and weight variables.

outputFilePath

path to .rda file to which results will be saved.

Value

tibble


mi2-warsaw/PISAoccupations documentation built on May 22, 2019, 8:58 p.m.