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

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. 

主站蜘蛛池模板: 阿拉尔市| 荣成市| 广宁县| 岳阳县| 科技| 鞍山市| 巩留县| 黑山县| 鄂伦春自治旗| 延川县| 万载县| 保靖县| 韩城市| 比如县| 托克逊县| 额尔古纳市| 池州市| 行唐县| 龙井市| 潢川县| 南昌市| 绍兴县| 和林格尔县| 巴林左旗| 乌拉特中旗| 安泽县| 安泽县| 玛纳斯县| 织金县| 新乡市| 罗源县| 凉城县| 黑龙江省| 霸州市| 三原县| 鄢陵县| 五台县| 北海市| 南京市| 囊谦县| 洱源县|