r语言导入spss数据_R如何导入SPSS文件?

> rm(list=ls())

> library(foreign)

> data.spss

> head(data.spss)

manufact             model  sales resale       type price engine_s horsepow wheelbas

1 Acura         Integra           16.919 16.360 Automobile 21.50      1.8      140    101.2

2 Acura         TL                39.384 19.875 Automobile 28.40      3.2      225    108.1

3 Acura         CL                14.114 18.225 Automobile    NA      3.2      225    106.9

4 Acura         RL                 8.588 29.725 Automobile 42.00      3.5      210    114.6

5 Audi          A4                20.397 22.255 Automobile 23.99      1.8      150    102.6

6 Audi          A6                18.780 23.555 Automobile 33.95      2.8      200    108.7

width length curb_wgt fuel_cap mpg  lnsales     zresale      ztype      zprice   zengine_

1  67.3  172.4    2.639     13.2  28 2.828437 -0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值