| 查看: 521 | 回复: 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 |
» 猜你喜欢
河北省自然科学基金
已经有8人回复
云南大学材料与能源学院解琳课题组钙钛矿博士招生
已经有7人回复
西安交大新媒学院副院长用撤稿论文结题
已经有5人回复
论文撤稿了
已经有5人回复
某211大学教师把个人教师官方主页改成:我跑了我跑了我跑了!官宣跑路!
已经有5人回复
26/27申博自荐
已经有9人回复
售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急
已经有3人回复
售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急
已经有7人回复
揭秘青基评审内幕:几个A才能顺利中标
已经有4人回复
青B发送上会通知了吗
已经有7人回复
» 本主题相关价值贴推荐,对您同样有帮助:
《excel2010应用大全》【转载】
已经有10人回复
注册化工工程师须知
已经有23人回复
【转帖】Delphi代码的标准风格
已经有5人回复
FMStation
至尊木虫 (知名作家)
- 应助: 591 (博士)
- 贵宾: 0.03
- 金币: 18701.7
- 红花: 97
- 帖子: 8891
- 在线: 1493.2小时
- 虫号: 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
- 金币: 18701.7
- 红花: 97
- 帖子: 8891
- 在线: 1493.2小时
- 虫号: 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












回复此楼
10