- R Programming Fundamentals
- Kaelen Medeiros
- 132字
- 2021-07-23 16:58:18
Using R and RStudio
Out of the box, R is completely usable. Open R on your machine. Let's use R for some basic arithmetic such as addition, multiplication, subtraction, and division. The following screenshot demonstrates this:

It also provides functions such as sum() and sqrt() for addition and calculation of the square root. The following screenshot shows this in action:

R can—and will—do basic arithmetic like a calculator, using symbols you're familiar with. One you may not have used before is exponentiate, where you use two asterisks, for example, 4 ** 2, which you can read as 4 to the power of 2.
Once you want to start doing math beyond basic arithmetic, such as finding square roots or summing many numbers, you have to start using functions.
推薦閱讀
- Learning Social Media Analytics with R
- 數(shù)據(jù)挖掘?qū)嵱冒咐治?/a>
- 機(jī)器學(xué)習(xí)與大數(shù)據(jù)技術(shù)
- Learning Apache Cassandra(Second Edition)
- PostgreSQL Administration Essentials
- CentOS 8 Essentials
- Learning C for Arduino
- 項(xiàng)目管理成功利器Project 2007全程解析
- 電氣控制與PLC技術(shù)應(yīng)用
- 統(tǒng)計(jì)挖掘與機(jī)器學(xué)習(xí):大數(shù)據(jù)預(yù)測(cè)建模和分析技術(shù)(原書(shū)第3版)
- 學(xué)練一本通:51單片機(jī)應(yīng)用技術(shù)
- 筆記本電腦使用與維護(hù)
- 算法設(shè)計(jì)與分析
- Eclipse全程指南
- 微計(jì)算機(jī)原理及應(yīng)用