formats_SAS_to_R: INSEE SAS formats to R : translate code

formats_SAS_to_RR Documentation

INSEE SAS formats to R : translate code

Description

INSEE SAS formats to R : translate code

Usage

formats_SAS_to_R(
  path,
  name_in,
  name_out,
  open = TRUE,
  remove_at_end_of_var = "f",
  not_if_numeric = TRUE,
  text_aposthophe = "'",
  path_out
)

Arguments

path

The path of the file with the sas formats

name_in

The name of the unformatted database

name_out

The name of the database to be formatted, if not the same than name_in.

open

Should the file be opened, or just its path printed ?

remove_at_end_of_var

Set to f or F the final f in variables names in the sas file.

not_if_numeric

Should the code prevent numeric variables to get recoded ?

text_aposthophe

How do apostrophes in labels appear ?

path_out

The path, name and extension of the output file. In temporary directory if not provide.

Value

A file with R code.


BriceNocenti/tablr documentation built on April 12, 2025, 12:56 a.m.