r - 总结独特价值
问题描述
我有一个梦幻足球统计数据集,我用它来自学 R。这些数据是年度球员梦幻足球数据。下面是它的格式示例。
| x | Year| Player | TM | *Pos*| Age |*FantasyPts*|
| 1 | 2019| *J.Jones* | ATL| WR | 29 |100 |
| 2 | 2018| *J.Jones* | ATL| WR | 28 |101.3 |
| 3 | 2019| *A.Rogers* | GB | QB | 30 |500 |
| 4 | 2017| *A.Peterson*| TM | RB | 29 |12 |
What I want to do is summarize the player data as a whole. So for example summarize the two years together of *J.Jones* to be as follows.
| Player | *Pos*| *FantasyPts*|
| *J.Jones* | WR | 201.3|
Any thoughts?
解决方案
推荐阅读
- c# - Entity Framework Core 3.1.7:更新记录失败
- angular - 如何合并来自参考的阵列的角火结果
- javascript - Vue js 观看 vue 漂亮的复选框值
- r - 数据/文件夹R包中的.Rdata文件中有两个R对象?
- microsoft-graph-api - 从会话(sessionStorage)中获取“adal.access.token.key|https://graph.microsoft.com”
- python - python中的卷曲请求
- android - 在 Kotlin/Java 中使用什么来进行有效的浮点集合处理?
- java - 在区块链中查找最新区块的最有效实现
- java - 为什么铸造给我这些奇怪的结果Java?
- neo4j - Popoto.js 自定义密码查询