| 查看: 454 | 回复: 3 | ||
zxwinner金虫 (小有名气)
|
[求助]
R 语言编程 如何实现一个函数的功能 已有1人参与
|
|
如何定义一个函数可以产生散点图? make a function to generate a scatter plot of any two user-supplied arbitrary rows for the dataset. The three inputs will be the matrix, and the two columns to plot |
» 猜你喜欢
计算机、0854电子信息(085401-058412)调剂
已经有4人回复
基金申报
已经有3人回复
国自然申请面上模板最新2026版出了吗?
已经有9人回复
溴的反应液脱色
已经有6人回复
纳米粒子粒径的测量
已经有7人回复
常年博士招收(双一流,工科)
已经有4人回复
推荐一本书
已经有10人回复
参与限项
已经有5人回复
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复
» 本主题相关价值贴推荐,对您同样有帮助:
《excel2010应用大全》【转载】
已经有10人回复
注册化工工程师须知
已经有23人回复
【转帖】Delphi代码的标准风格
已经有5人回复
FMStation
至尊木虫 (知名作家)
- 应助: 591 (博士)
- 贵宾: 0.03
- 金币: 18171.2
- 红花: 97
- 帖子: 8891
- 在线: 1487.1小时
- 虫号: 2400059
- 注册: 2013-04-04
- 专业: 计算机应用技术
2楼2016-10-17 22:42:09
zxwinner
金虫 (小有名气)
- 应助: 0 (幼儿园)
- 金币: 1774.2
- 散金: 119
- 帖子: 62
- 在线: 50.4小时
- 虫号: 1807592
- 注册: 2012-05-10
- 专业: 生物信息学
|
想问下 composition是什么意思,不太理解问题要让我干什么? convert the variables in the matrix from function 1 to a composition in two different ways. The simplest way to do this is to divide each row value by its column sum. You may choose any two of the below methods. function1: randomdataset <- function(s, nr, m1, m2){ size <- s r <- matrix(data=NA, nrow=nr, ncol=s) for(i in 1:10){ r[,i] <- rnorm(nr, mean=m1, sd=5) } for(i in 1:5){ r[1:size,i] <- rnorm(size, mean=m2, sd=5) } return(r) } |
3楼2016-10-17 22:49:24
FMStation
至尊木虫 (知名作家)
- 应助: 591 (博士)
- 贵宾: 0.03
- 金币: 18171.2
- 红花: 97
- 帖子: 8891
- 在线: 1487.1小时
- 虫号: 2400059
- 注册: 2013-04-04
- 专业: 计算机应用技术
【答案】应助回帖
★ ★ ★ ★ ★
zxwinner: 金币+5 2016-12-08 07:32:04
zxwinner: 金币+5 2016-12-08 07:32:04
|
http://www.dictionary.com/browse/composition the act of combining parts or elements to form a whole. https://tw.dictionary.search.yah ... on&fr2=dict 合成物,仿造物[C] convert the variables in the matrix: 方法1. divide each row value by its column sum. 方法2. for(i in 1:10){ r[,i] <- rnorm(nr, mean=m1, sd=5) } 方法3. for(i in 1:5){ r[1:size,i] <- rnorm(size, mean=m2, sd=5) } |
4楼2016-10-18 21:56:32












回复此楼