LOFTER for ipad —— 让兴趣,更有趣

点击下载 关闭
R-lab Cousera-Basic Statistics
子苔 2019-03-14

Basic Statistics R lab - Getting started (part 1)

Little arithmetics with R

In its most basic form R can be used as a simple calculator. Consider the following arithmetic operators:

  • Addition: +

  • Subtraction: -

  • Multiplication: *

  • Division: /

  • Exponentiation: ^  The ^ operator raises the number to its left to the power of the number to its right: for example 3^2 is 9.

  • Modulo: %%  The modulo returns the remainder of the division of the number to the left by

    the number on its right,     for example 5 modulo 3 or 5 %% 3 is 2.  for example 28 modulo 6 or 28 %% 6 is 4 就是取余数 5➗3=2……3  最后输出的是3  再比如27➗3=9……0最后输出的是0



  • Basic Statistics R lab - Getting started (part 1)



推荐文章
评论(0)
联系我们|招贤纳士|移动客户端|风格模板|官方博客|侵权投诉 Reporting Infringements|未成年人有害信息举报 0571-89852053|涉企举报专区
网易公司版权所有 ©1997-2024  浙公网安备 33010802010186号 浙ICP备16011220号-11 增值电信业务经营许可证:浙B2-20160599
网络文化经营许可证: 浙网文[2022]1208-054号 自营经营者信息 工业和信息化部备案管理系统网站 12318全国文化市场举报网站
网信算备330108093980202220015号 网信算备330108093980204230011号
分享到
转载我的主页