| 查看: 559 | 回复: 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 |
» 猜你喜欢
关于filecode,很负责任的告诉大家
已经有7人回复
【2027博士申请】纳米药物递送方向
已经有5人回复
关于豆爷回答的JTJC与%2F数量
已经有7人回复
2026国自然放榜时间
已经有3人回复
国基金的申报应该改成非等额制,评价高的钱多评价低的钱少,但是增加资助率
已经有7人回复
好奇怪的filecode
已经有4人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有4人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有4人回复
售SCI文章,我:8O.5.5.1O.54,科目全,可十急
已经有4人回复
售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急
已经有5人回复
» 本主题相关价值贴推荐,对您同样有帮助:
《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










回复此楼