50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

wizaRdry (version 0.2.6)

createSpss: Alias for 'to.sav'

Description

This is a legacy alias for the 'to.sav' function to maintain compatibility with older code.

Usage

createSpss(df, df_name = NULL, path = ".", skip_prompt = TRUE)

Value

Invisible TRUE if successful. Writes an SPSS file to the designated path and prints a message indicating the file's location.

Arguments

df

Data frame to be exported to SPSS format.

df_name

Optional; custom file name for the saved SPSS file. If not provided, the name of the data frame variable will be used. The ".sav" extension will be appended automatically.

path

Character string specifying the directory path where the "tmp" folder and SPSS file should be created. Defaults to the current working directory.

skip_prompt

Logical. If TRUE (default), skips the confirmation prompt. If FALSE, will prompt for confirmation unless the user has previously chosen to remember their preference.

Examples

Run this code
if (FALSE) {
createSpss(prl01)
}

Run the code above in your browser using DataLab