- Hands-On Exploratory Data Analysis with R
- Radhika Datar Harish Garg
- 81字
- 2021-06-24 14:10:40
read_fwf method
The read_fwf method is used to read data from fixed width files, where every field is in the same place in every line. The default usage will be to read the data in text format in the R workspace. The code for this is shown as follows:
read_fwf("data.txt")
Here, readr will try to guess the column widths. However, to avoid errors, you could also specify column widths explicitly as follows:
read_fwf(data.txt, fwf_widths(c(10, 20, 18), c("ID", "Revenue", "Region")))
推薦閱讀
- Managing Mission:Critical Domains and DNS
- Excel 2007函數與公式自學寶典
- 樂高機器人EV3設計指南:創造者的搭建邏輯
- 控制與決策系統仿真
- WOW!Illustrator CS6完全自學寶典
- Effective DevOps with AWS
- Hands-On Cybersecurity with Blockchain
- Supervised Machine Learning with Python
- 現代傳感技術
- 人工智能實踐錄
- MATLAB/Simulink權威指南:開發環境、程序設計、系統仿真與案例實戰
- SMS 2003部署與操作深入指南
- 電腦上網入門
- Xilinx FPGA高級設計及應用
- FreeCAD [How-to]