| 查看: 460 | 回复: 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 |
» 猜你喜欢
请教限项目规定
已经有5人回复
拟解决的关键科学问题还要不要写
已经有8人回复
最失望的一年
已经有16人回复
存款400万可以在学校里躺平吗
已经有33人回复
求助一下有机合成大神
已经有3人回复
求推荐英文EI期刊
已经有5人回复
26申博
已经有3人回复
基金委咋了?2026年的指南还没有出来?
已经有10人回复
基金申报
已经有6人回复
疑惑?
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
《excel2010应用大全》【转载】
已经有10人回复
注册化工工程师须知
已经有23人回复
【转帖】Delphi代码的标准风格
已经有5人回复
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
- 金币: 18188.2
- 红花: 97
- 帖子: 8891
- 在线: 1487.4小时
- 虫号: 2400059
- 注册: 2013-04-04
- 专业: 计算机应用技术
2楼2016-10-17 22:42:09
FMStation
至尊木虫 (知名作家)
- 应助: 591 (博士)
- 贵宾: 0.03
- 金币: 18188.2
- 红花: 97
- 帖子: 8891
- 在线: 1487.4小时
- 虫号: 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













回复此楼