| 查看: 562 | 回复: 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 |
» 猜你喜欢
澳大利亚 Murdoch University 全奖博士招生(3个名额)地质化工冶金领域
已经有32人回复
欢迎发来filecode的Mz6后的代码验证其规律
已经有27人回复
咱们一起用铁证分析2026国家社科基金中标与否
已经有10人回复
小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊
已经有10人回复
阿姨
已经有4人回复
一作与独作在应聘高校教师时区别大吗
已经有4人回复
静等基金结果
已经有21人回复
FileCode能看出啥?
已经有28人回复
有时候,自然基金真的不能太认真 (我的申报经验)
已经有6人回复
filecode
已经有16人回复
» 本主题相关价值贴推荐,对您同样有帮助:
《excel2010应用大全》【转载】
已经有10人回复
注册化工工程师须知
已经有23人回复
【转帖】Delphi代码的标准风格
已经有5人回复
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
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










回复此楼