课程: R for Data Science: Lunch Break Lessons

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

zip and tar

zip and tar

- [Instructor] Datasets are often stored as zip or tar files, and so R provides two commands to deal with zip files and R files. When you're using these, depending on the system you're working on, you need to have some zip or tar commands available to you. So you'll need to often check to see if you have 'em. To check to see if you have a zip program, use Sys.get environment and look for the string R underbar Z-I-P-C-M-D and that's all in upper case. That should return a pathname to an executable program for zip files. If you have that, you can proceed. In order to zip a file, you'll use zip. Before I go any further, make sure that you changed your current working directory to the exercise files folder. And you can do that in the lower right-hand corner Files pane under More, Set As Working Directory, and that will set your working directory to the exercise files. Now that you're there, you can use the zip command. That's Z-I-P, give it the name of a file that you want to create, in…

内容