R语言基本指令,本文主要focus在读取文件以及数据介绍上
觉得自己以后可能生活中很经常会和R语言打交道,并且觉得R在处理数据上很好用并且相对于其他机器语言好学一些,决定好好学习R语言。这篇文章的内容主要也是参考其他人的博客以及coursera上JHU和duke的课程,希望后期能够做到一些简单的实现。学习用的材料用的是中英双语的,所以后面的代码书写会出现两种语言。
有用的数据网站:https://www.kaggle.com/harlfoxem/housesalesprediction ## housing transactions in King County
工具:R Studio
写在前面的话
主要借鉴的我的计量老师 Rachael Meager的,也是一些编程中的好习惯吧,提醒自己
(1) ALWAYS name your variables something descriptive
(2) indent your code (use tab)
(3) make everything into a function if it can possibly be a function (always make a module)
(4) almost never hardcode a number or copy and paste pieces of code
(5) check that those canned functions do what you think they do
– especially when they encounter NAs
6) write unit tests and debug regularly and systematically
– asymmetric debugging is a form of fishing
基本指令:
前期工作,文件读取等
|
|
R with statistics
|
|