write_spss: Save spss data

Description Usage Arguments Examples

View source: R/read_write.R

Description

This function saves an spss '.sav' file removing known erros. String with length 0 are tranformed to " ". Also, all character string are truncated to max length of paramenter 'max' and [[:cntrl:]] string are removed.

Usage

1
write_spss(df, file, max = 255)

Arguments

df

The dataframe to be exported to sav format.

file

A characater string with the location of the spss file to be saved.

max

Maximum size of character strings.

Examples

1
spss.data <- write_sav(df,file)

neale-eldash/pd documentation built on June 26, 2021, 10:47 a.m.