Closed
Description
info <- data.frame("流水号" = 1:2, "性别"= factor(c('男','女')), "年龄"= c(25,34)); info
# 流水号 性别 年龄
#1 1 男 25
#2 2 女 34
tmp <- tempfile(fileext=".sav")
write_sav(info, tmp)
#! Variables in `data` must have valid SPSS variable names.
#✖ Problems: `流水号`, `性别`, and `年龄`
#Run `�]8;;rstudio:run:rlang::last_error()rlang::last_error()�]8;;` to see where the error occurred.
Activity