【发布时间】:2016-02-05 14:18:10
【问题描述】:
请有人告诉我如何调用我的输出,这两个矩阵作为另一个函数的输入?
X1=function(y,z)
{
output1=y*z
output2=y/z
}
X2=function(p,q)
{
input=X1(y,z)
input1=input$output1 ??? How to specify the output that I can call it this way? output1 and output2 are matrices!
input2=input$output2
equation=input1+input2
}
我尝试了return() 和data.frame,但都没有成功。有什么提示吗?
【问题讨论】: