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

  • Practical Data Wrangling
  • Allan Visochek
  • 262字
  • 2021-07-02 15:16:05

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. 

主站蜘蛛池模板: 木兰县| 东乡族自治县| 扶绥县| 都安| 康定县| 湄潭县| 杭锦后旗| 浑源县| 大新县| 酒泉市| 谢通门县| 化德县| 都兰县| 临沧市| 包头市| 南和县| 漳州市| 寿宁县| 梅州市| 宜都市| 射阳县| 屏南县| 崇明县| 唐山市| 女性| 道孚县| 喀喇沁旗| 日土县| 通州市| 肥东县| 鹰潭市| 屯昌县| 金湖县| 石林| 都匀市| 平乡县| 曲靖市| 房山区| 区。| 来凤县| 玉树县|