mapply over two lists [closed]

两盒软妹~` 提交于 2019-12-01 21:13:23

I ran your code and got

> result <- mapply(myfunction,x=mylist1,y=mylist2)
> result
      part1 part2
y$a       1     0
meana     3     0
meanb   100    50

you have a typo

result <- mapply(myfunction,x=mylist,y=mylist2)

which I changed to

result <- mapply(myfunction,x=mylist1,y=mylist2)

maybe this is the issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!