选择(列,(包含())未显示结果

发布于 2025-01-28 13:25:06 字数 444 浏览 6 评论 0原文

 chase_2021 = chase[c(143:1020),]
 
 paychecks = chase_2021 %>% 
     select(Posting.Date, Amount, Description, starts_with('CVS'), ends_with('PPD ID: 9953382345')) %>% 
     filter(Amount > 100, Amount < 1000)

目前,我正在尝试根据我从我的银行帐户之一下载的数据集找到去年的薪水。如果我要获得超过100美元的交易,R将显示我通过雇主赚取的钱,以及通过我从当时欠我的人那里收到的投资和现金。我的雇主的薪水在“描述”列下的CVS Payroll PPID上列出。上面的代码仍显示我从雇主和其他人那里获得的收入。另外,我无法使用end_with(2021)按年来列出列,因此我不得不使用列号过滤。

 chase_2021 = chase[c(143:1020),]
 
 paychecks = chase_2021 %>% 
     select(Posting.Date, Amount, Description, starts_with('CVS'), ends_with('PPD ID: 9953382345')) %>% 
     filter(Amount > 100, Amount < 1000)

I'm currently trying to find my paychecks from last year based on a dataset I downloaded from one of my bank accounts. If I subet for transactions that were more than $100, R displays money I earned through my employer, but also through investments and cash I received from people who owed me at the time. Paychecks from my employer are listed on CVS PAYROLL PPID under the Description column. The code above still displays the earnings I received from my employer and others. Also, I couldn't subset the columns by year with ends_with(2021) So I had to filter with column numbers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文