学习小组Days5笔记--CY

作者: 朝杨 | 来源:发表于2018-08-24 21:38 被阅读16次

R语言学习网址和图书(引自生信星球)

1.官网:https://www.r-project.org/
2.CRAN:https://cran.r-project.org/
3.书籍:R语言实战(第2版)
4.腾讯课堂自行搜索入门课程

RStudio features(引自RStudio)

RStudio is an integrated development environment (IDE) for the R programming language. Some of its features include:

  • Customizable workbench with all of the tools required to work with R in one place (console, source, plots, workspace, help, history, etc.).
  • Syntax highlighting editor with code completion.
  • Execute code directly from the source editor (line, selection, or file).
  • Full support for authoring Sweave and TeX documents.
  • Runs on all major platforms (Windows, Mac, and Linux) and can also be run as a server, enabling multiple users to access the RStudio IDE using a web browser. project website.
RStudio.png 下图引自生信星球 RStudio.png

R命令

1.1随机数的产生runif

语法:runif(n,min=0,max=1) n表示生成的随机数数量,min表示均匀分布的下限,max表示均匀分布的上限;若省略参数min、max,则默认生成[0,1]上的均匀分布随机数。

> plot(runif(50))  #默认产生50个0到1之间分布均匀的随机数,并绘图
1.2查看和设置工作目录
> getwd() # 查看工作目录
>setwd(dir=""C:/Users/Administrator/Documents"") #设置工作目录
1.3显示目录文件
dir()
list.flies()
dir.png
1.4赋值
8->x       #8赋值x
9->y       # 9赋值y
u<-2
sum(x,y)   #求和x+y
rm(x,u)    #删除对象

刚刚入门还有很多需要学习,加油!

相关文章

  • 学习小组Days5笔记--CY

    R语言学习网址和图书(引自生信星球) 1.官网:https://www.r-project.org/2.CRAN:...

  • 学习小组Days6笔记--CY

    1.R之向量与标量 变量:可以是数字或字母标量:一个元素组成的变量 如1,“a”;向量:多个变量组成的变量 如a(...

  • 学习小组Days1笔记--CY

    生信笔记 -1.生信入门の善用搜索引擎,比如‘百度,谷歌’ -2.学习markdown格式书写笔记,简书markd...

  • 学习小组Day2笔记--cy

    思维导图 目录:就是我们平时说的文件夹路径:就是目录的层级位置-----微信公众号 生信地球 随便点回车键就容易出...

  • 学习小组Day7笔记--cy

    NGS组学都包括哪些分类(粗略) illumina的测序就是在Sanger基础上加上了桥式PCR,能克服Sange...

  • 学习小组Days3笔记之CY

    1.登录云服务器后 检测是否安装bzip2 说明云服务器已经安装了 1.1安装 Miniconda3 鼠标左键点...

  • 学习小组days4笔记之CY

    1.NGS

  • 学习小组Day2笔记之CY

    一. Linux 使用 Linux基本操作 ls -l ; pwd; mkdir; cd ; mv, cp, rm...

  • 《抢占心智》Days4笔记

    2019.3.24《抢占心智》Days5笔记 004聚焦业务:让自己更专业、更专注,聚焦业务也叫工匠精神。 品牌应...

  • 学习小组Day1--学习平台--ling

    一. 学习小组正确的打开方式 如何学习(1) 电脑版微信(2) 学习小组讨论(3) 做好学习笔记(4) 打卡 解决...

网友评论

本文标题:学习小组Days5笔记--CY

本文链接:https://www.haomeiwen.com/subject/fnbiiftx.html