官术网_书友最值得收藏!

R

R is both a programming language and an environment built specifically for statistical computing. This definition has been taken from the R website, r-project.org/about.html:

The term 'environment' is intended to characterize [R] as a fully planned and coherent system, rather than an incremental accretion of very specific and inflexible tools, as is frequently the case with other data analysis software.

In other words, one of the major differences between R and Python is that some of the most common functionalities for working with data--data handling and storage, visualization, statistical computation, and so on--come built in. A good example of this is linear modeling, a basic statistical method for modelling numerical data.

In R, linear modeling is a built-in functionality that is made very intuitive and straightforward, as we will see in Chapter 5, Manipulating Text Data - An Introduction to Regular Expressions. There are a number of ways to do linear modeling in Python, but they all require using external libraries and often doing extra work to get the data in the right format.

R also has a built-in data structure called a dataframe that can make manipulation of tabular data more intuitive. 

The big takeaway here is that there are benefits and trade-offs to both languages. In general, being able to use the right tool for the job can save an immense amount of time spent on data wrangling. It is therefore quite useful as a data programmer to have a good working knowledge of each language and know when to use one or the other. 

主站蜘蛛池模板: 璧山县| 彝良县| 射洪县| 讷河市| 手游| 岚皋县| 桃江县| 依安县| 汉阴县| 来安县| 庆阳市| 郸城县| 玛曲县| 图们市| 汝南县| 区。| 南宫市| 田东县| 泽普县| 涞水县| 闽侯县| 隆安县| 红桥区| 柳林县| 翁牛特旗| 新民市| 余江县| 双峰县| 灵山县| 淳安县| 杭锦旗| 宜兰市| 延安市| 精河县| 九龙城区| 内丘县| 尚志市| 阜康市| 丹江口市| 兴化市| 故城县|