最近看一些大神的博客,有感而发,接触R也有好几年了,却一直停留在"接触"这个层次上。和大神比起来自己就是沧海之一粟,瘸瘸掉下来的一根毛。
不管日常工作是多么琐碎,人总要有自己想要专注的东西吧,当然不一定是学习R语言。要不然整个一生就成了一盘散沙,为了活着而活着,为了别人而活着。所以有时候得问问自己到底热爱着什么。
关于是如何学习R语言,Hadley大神是这样回答的,
-
写代码。 我花了很多时间去建立一个良好的写代码习惯。每天早上会花60-90分钟去写代码。这是我每天起床以后做的第一件事情。我觉得写代码可以帮助我解决很问题。首先,我经常使用自己写的代码作为索引参考。我不怎么用C++,所以每次都会参考Rcpp。其次是多写代码可以提醒我的对于R语言的知识空缺,填补这些空缺可以让我更有效率的使用这个工具。
-
阅读。我会阅读很多东西。我关注了300多个博主,然后同时也关注着有R标签的Twitter和Strack Overflow。我不会很深入的研究所有的代码,大多数情况下只是走马观花。但是,这些探索会帮助我跟上时代的步伐,同时了解别人在做些什么。当你遇到新的问题的时候,你可以谷歌寻求帮助,
-
Writing. I have worked really hard to build a solid writing habit - I try and write for 60-90 minutes every morning. It's the first thing I do after I get out of bed. I think writing is really helpful to me for a few reasons. First, I often use my writing as a reference - I don't program in C++ every day, so I'm constantly referring to @Rcpp every time I do. Writing also makes me aware of gaps in my knowledge and my tools, and filling in those gaps tends to make me more efficient at tackling new problems.
-
Reading. I read a lot. I follow about 300 blogs, and keep a pretty close eye on the R tags on Twitter and Stack Overflow. I don't read most things deeply - the majority of content I only briefly skim. But this wide exposure helps me keep up with changes in technology, interesting new programming languages, and what others are doing with data. It's also helpful that if when you're tackling a new problem you can recognise the basic name - then googling for it will suggest possible solutions. If you don't know the name of a problem, it's very hard to research it.
网友评论