“$”在 R 中做什么?
What does '$' do in R?
我一直在努力理解 R 中的集成,并且遇到了如下代码:
Lambda=function(t) integrate(f=lambda,lower=0,upper=t)$value
这里的$value
是什么意思? “$”符号在做什么?它在帮助或互联网上的任何地方都没有解释。请帮忙。
来自 ?integrate
(粗体是我的)。
Value:
A list of class ‘"integrate"’ with components
value: the final estimate of the integral.
abs.error: estimate of the modulus of the absolute error.
subdivisions: the number of subintervals produced in the subdivision
process.
message: ‘"OK"’ or a character string giving the error message.
call: the matched call.
换句话说,integrate
returns class "integrate"
的对象,其中元素 value
包含积分的估计。
我一直在努力理解 R 中的集成,并且遇到了如下代码:
Lambda=function(t) integrate(f=lambda,lower=0,upper=t)$value
这里的$value
是什么意思? “$”符号在做什么?它在帮助或互联网上的任何地方都没有解释。请帮忙。
来自 ?integrate
(粗体是我的)。
Value:
A list of class ‘"integrate"’ with components
value: the final estimate of the integral.
abs.error: estimate of the modulus of the absolute error.
subdivisions: the number of subintervals produced in the subdivision process.
message: ‘"OK"’ or a character string giving the error message.
call: the matched call.
换句话说,integrate
returns class "integrate"
的对象,其中元素 value
包含积分的估计。