LOFTER for ipad —— 让兴趣,更有趣

点击下载 关闭
4 Back to Apples and Oranges
子苔 2019-03-14

Back to Apples and Oranges

Exercise

Common sense tells you not to add apples and oranges. The my_apples and my_oranges variables both contained a number in the previous exercise. The + operator works with numeric variables in R. If you really tried to add "apples" and "oranges", and assigned a text value to the variable my_oranges but not to my_apples (see the editor), you would be trying to assign the addition of a numeric and a character variable to the variable my_fruit. This is not possible

Instructions

  • Click 'Submit Answer' and read the error message. Make sure to understand why this did not work.

  • Adjust the code so that R knows you have 6 oranges and thus a fruit basket with 11 pieces of fruit.



推荐文章
评论(0)
联系我们|招贤纳士|移动客户端|风格模板|官方博客|侵权投诉 Reporting Infringements|未成年人有害信息举报 0571-89852053|涉企举报专区
网易公司版权所有 ©1997-2024  浙公网安备 33010802010186号 浙ICP备16011220号-11 增值电信业务经营许可证:浙B2-20160599
网络文化经营许可证: 浙网文[2022]1208-054号 自营经营者信息 工业和信息化部备案管理系统网站 12318全国文化市场举报网站
网信算备330108093980202220015号 网信算备330108093980204230011号
分享到
转载我的主页