马上就要期末考试了,学了一学期的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.
''&#