swirl包——R语言自学神器+期末救星

马上就要期末考试了,学了一学期的R语言,但感觉相关的知识点非常的繁琐,复习起来光看代码和课堂笔记也很困,所以一直在想有没有相关的平台可以进行操练。

最后找到了一个R语言的包,叫swirl,它是JHU开发出来的一个交互式R语言自学包,听上去很高级,自己练习了一天以后感觉非常不错,很基础,适合初学者上手,而且学习起来一点也不困,因为一直在思考+敲键盘。不过也需要你英语水平过关,因为是全英文的互动界面:

那么怎么开始呢,你只需要先清空工作台:

rm(list = ls())

然后在RStudio里面进行包的安装,根据指令就可以进行开始自学啦:

> install.packages("swirl")
> library(swirl)
| Hi! Type swirl() when you are ready to begin.
> swirl()
'''
| Welcome to swirl! Please sign in. If you've been here before, use the same name
| as you did then. If you are new, call yourself something unique.
'''
What shall I call you? Lucas
'''
| Thanks, Lucas. Let's cover a couple of quick housekeeping items before we begin
| our first lesson. First of all, you should know that when you see '...', that
| means you should press Enter when you are done reading and ready to continue.
'''
...  <-- That's your cue to press Enter to continue
'''
| Also, when you see 'ANSWER:', the R prompt (>), or when you are asked to select
| from a list, that means it's your turn to enter a response, then press Enter to
| continue.
''&#
  • 1
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值