【发布时间】:2017-10-20 13:28:24
【问题描述】:
我是 R 新手,尝试做一些练习。我想知道为什么第一个代码可以正常工作,而第二个代码不能。当我尝试运行第二个代码时,它说他找不到函数a。
1.)
x = seq(from = - 9, to = 9, len = 100)
curve(dnorm(x,0,2),add = FALSE, from = -9, to = 9)
2.)
x = seq(from = - 9, to = 9, len = 100)
a = dnorm(x,0,2)
curve(a,add = FALSE, from = -9, to = 9)
【问题讨论】:
标签: r function plot statistics normal-distribution