- 1、本文档共4页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Importing data Data Analysis and Statistical (导入数据数据分析和统计)
8 Importing data
Copying and pasting
One of the easiest ways to get data into Stata is often overlooked: you can copy data from most
applications that understand the concept of a table and then paste the data into the Data Editor. This
approach works for all spreadsheet applications, many database applications, some word-processing
applications, and even some webpages. Just copy the full range of data, paste it into the Data Editor,
and everything will probably work well. You can even copy a text file that has the pieces of data
separated by commas and then paste it into the Data Editor.
Suppose that your friend has a small dataset about some very old cars.
You would like to put these data into Stata. Doing so is easier than you think:
1. Clear out your current dataset by typing .
2. Copy the data from the PDF documentation the way you would copy anything from any document.
(For best results, use Adobe Reader.)
3. Open the Data Editor in edit mode.
4. Select Edit Paste Special
5. Stata sees that the column delimiters are commas and shows how the data would look.
6. Click on the OK button.
You can see that Stata has imported the data nicely.
Later in this chapter, we would like to bring these data into Stata without copying and pasting,
so we would like to save them as a text file. Go back to the main Stata window, and click on the
Do-file Editor button, , to open a new Do-file Editor window. Paste the data in the Do-file
Editor, then click on the Save button. Navigate to your working directory, and save the file as
. If you do not know what your working direct
您可能关注的文档
- HYDRAULIC CRAWLER CRANE - KOBELCO CRANES(液压履带式起重机日本神户制钢所起重机).pdf
- Hydrogen Embrittlement Heat Treat Doctor(氢脆热治疗的医生).pdf
- Hydroxyl Terminated Polybutadiene Resins and (羟基聚丁二烯树脂和终止).pdf
- Hyper-Carbide Cutting Tools - SME(Hyper-Carbide刀具中小企业).pdf
- HYTROL CONVEYOR COMPANY, INC. Model SBI (印度国家银行HYTROL输送机公司,INC .)模型).pdf
- Hydronic System Design Manual - GARN(液体循环加热的系统设计手册接着说下去!).pdf
- Hydrophilic expandable rubber section for (亲水发泡橡胶部分).pdf
- Hydrogen embrittlement in AHSS containing (唯有通过含有氢脆).pdf
- HydroTurbine Applications Product Manual(针对水轮机应用产品手册).pdf
- I SEE FIRE leadsheet - EduGroup.at(我看到火leadsheetEduGroup.at).pdf
文档评论(0)