首页 > 解决方案 > 使用棒球的日期返回错误

问题描述

当我在棒球运动员中使用刮擦功能时,我得到一个错误,即使我的使用“看起来”与我在示例中看到的方式相同。有什么建议么?

player_info_astros <- scrape_statcast_savant_batter_all(start_date = "2021-08-01", 
                                              end_date = "2021-20-07",
                                              playerid = 518545)
# 2021-08-01 is not a date. Attempting to coerce...
# Error in charToDate(x) : 
#  character string is not in a standard unambiguous format

标签: r

解决方案


推荐阅读