R 中 with() 与 by() 函数有什么用途?
What is the use of With () and By () function in R?
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: medium
分类: Data Science
参考答案摘要
答案 with():将表达式应用到数据集上。 by():将函数应用到因子各水平(每个分组)上。 with() function applies an expression to a dataset. #with(data,expression) #by (data, factorlist, function)
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。