如何下载此管道分隔文件?
在此链接中:
”您单击“下载用于全年的管道划界的制药处置地点”只需带我到一个新页面,就像我打开一个具有以下网址的PDF一样: https://apps.deadiversion.usdoj.gov/pubdisp/pub_disposal_sites.txt
我只想下载.txt文件,但是我无法弄清楚如何将其打开,因为网页!我已经尝试搜索Internet和Stackoverflow,但是我没有找到答案(我对R的新手并使用数据很新)。
有没有办法下载.txt文件?
How do I download this pipe delimited file?
It is in this link:
https://www.deadiversion.usdoj.gov/drug_disposal/takeback/
When you click on "Download For Pipe Delimited Year Round Pharmaceutical Disposal Locations" it just takes me to a new page like I'm opening a pdf with the following web address: https://apps.deadiversion.usdoj.gov/pubdisp/pub_disposal_sites.txt
I just want to download the .txt file, but I can't figure out how to as it just opens it up as a web page! I've tried searching the internet and stackoverflow, but I have found no answers (I'm pretty new to R and working with data).
Is there a way to download the .txt file?
发布评论
评论(2)
一种更好的方法是将其直接读取为R,例如
在2022-07-08创建的(v2.0.1)
A better way to do it is to read it directly into R, e.g.
Created on 2022-07-08 by the reprex package (v2.0.1)
JK,我很愚蠢。
您可以通过以下步骤下载文件:
打开要从中提取文本的网页。
单击“右键单击”菜单。
单击“保存为”,然后在“文件名” 1Mints.txt中单击。
然后选择“另存为类型”作为“文本文档”,然后还可以。
它将在指定位置下载1mints.txt。
Jk, I am dumb.
You can Download the file by below steps:
Open the Web page from which you want to extract text.
Click the “Right Click” menu.
Click the “Save as”, then in the “Filename” 1Mints.txt comes.
Then select “Save as Type” as “Text Document” and then Okay.
It will Download 1Mints.txt at the specified location.