佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1730|回复: 3

关于 R , 各位请帮帮忙。。。。

[复制链接]
发表于 25-9-2011 12:14 AM | 显示全部楼层 |阅读模式
我的 tutor 和 lecturer 很厉害咧,什么都没教,就给了不知道是什么的 assignment.....请问有谁可以帮帮忙,急需!

题目如下:

1. Create R-programming coding that build for two matrix 3 by 3 (A and B ). The data for matrix must created from random normal distribution data using looping and form 3 by 3 matrix.

Then find the following from matrix your created: (hint : study how to generate randomly distribution data, looping and matrix method)




a)  Multiplication


b)  Addition



c)  Transpose


d)  Eigenvalue


e)  Eigenvector


2.

R-programming has user friendly system for analysis, it called R-commander. Please download packages for R-commander to work and repeat again activities (a) using R-commander.

(hint : download Rcmdr package, learn and try used R-commander)

回复

使用道具 举报


ADVERTISEMENT

发表于 27-9-2011 12:43 AM | 显示全部楼层
应该不难,加油哦!=)
回复

使用道具 举报

发表于 31-10-2011 04:25 PM | 显示全部楼层
真的很容易的。可能 rnorm 是一個提示。

R裏面,我覺得對初學者最有用的就是help和help.search這兩個functions。要多多利用。
回复

使用道具 举报

发表于 1-1-2012 07:48 PM | 显示全部楼层
本帖最后由 ryusukekenji 于 1-1-2012 07:53 PM 编辑
我的 tutor 和 lecturer 很厉害咧,什么都没教,就给了不知道是什么的 assignment.....请问有谁可以帮帮忙, ...
yipei 发表于 25-9-2011 12:14 AM


在下不常造访佳丽论坛... 倘若有人对于Splus/R感兴趣,可随时联系。
ryusukekenji@gmail.com
  1. >?runif
  2. >?rnorm
  3. >A <- matrix(runif(9),nc=3)
  4. >B <- matrix(runif(9),nc=3)

  5. >#a) production
  6. >A*B
  7. >#a) cross-production
  8. >A%*%B

  9. >#b) addition
  10. >A+B

  11. >#c) transpose
  12. >t(A)
  13. > y <- eigen(A)
  14. >#d) Eigenvalue
  15. >y$val
  16. >#e) Eigenvector
  17. >y$vec
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 20-4-2024 07:29 AM , Processed in 0.061769 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表