r - creating loop in downloading files
问题描述
My purpose is to download each of the files from EDGAR website, parse them, and write them in .txt file. Update: Here is the code snippet:
How do I create a loop so that x will be replaced by integers e.g. 1, 2, 3,.. and I can manage downloading the files? Thanks,
解决方案
以下内容会让您到达您想去的地方吗?注意,seq_along(masterIndex$EDGAR_LINK)
相当于说1:length(masterIndex$EDGAR_LINK)
。所以换句话说,这个循环将autoparse()
在x
1、2、3 等处运行,直到masterIndex$EDGAR_LINK
你希望它停止的长度或任何地方。
for(i in seq_along(masterIndex$EDGAR_LINK)){
autoparse(i)
}
推荐阅读
- r - Biomod2 生成的伪缺失
- wso2 - 上下文不存在。可能是由于离开登录页面超过一分钟后出现无效缓存错误
- excel - VBA:转到 IE 站点并按元素打勾
- amazon-web-services - 如何使用来自 ACM 的 AWS 证书使用亚马逊 EC2 从端口 80 重定向到 443?
- ruby-on-rails - 在 Rails6 中使用多个数据库以及切换数据库的问题
- django - 带有post方法的Django ListView,get_queryset没有过滤
- sql - 通过 postgresql 插入表中的唯一行
- python - 在 Python 中映射来自两个集合的值对时如何生成唯一 ID
- node.js - 通过 Node 在 Jest 调试中包含项目目录
- swiftui - 视图不会在嵌套 ForEach 循环中重新呈现