首页 > > 详细

调试R、R调试、辅导R编程、R程序讲解、讲解R Statistics

Statistics 4960/6260
Assignment 3 (100 points) Due: Wednesday, November 22
Email me one file. Do not use a “reply” to email your file. Use .R as the extension. The file name
submitted by a student named Albert Einstein is AlbertEinsteinAssign3.R I should be able to load your
code into the R environment by using the “Open Script” feature of R. Then I should be able to run your
code. Put your name as the first line of your .R file. This will be a line that is executable, and look this:
name = “Albert Einstein”. Of course your own name will be substituted for Albert Einstein. When I run
tests on your code, I will want to know whose code is running. Your code should be well-commented,
and indented so a reader can easily follow the code. Bring a print out of your file to class.
The prototype of the file is:
long.mult x = c(123,456,789)
> y = c(987,654,321)
> z = long.mult(x,y)
> z
[1] 121 932 631 112 635 269
Given below is another example.
> x = c(3,400,999,65,270)
> y = c(478,231,598)
> z = long.mult(x,y)
> z
[1] 1 626 465 217  0 578 401 460

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!