In this video, Mark Niemann-Ross demonstrates methods for reading rows and columns from Excel. Learn how to read rows as ranges.
- When you're working with excel files,…there will be times when you want…to import an entire row or entire column.…And to do that, you'll want to use the openxlsx package.…So let's see how that works.…The first thing I've done…is create a vector called spreadSheetRangeFile,…which contains the name of a file that I want to import.…Be sure to set your working directory to chapter one.…And if you haven't done this already…install the packages for openxlsx as shown in line 11.…
And then use the library command…to bring openxlsx into play.…For columns, you'll use the read.xlsx command.…It looks like this.…And then you specify the name of the excel spreadsheet…that you want to bring information in from.…In this case we're going to use spreadSheetRangeFile.…And to bring in a column,…I use cols =…and I give it a collection of values.…
In this case, I'm just going…to give it a collection of one value.…And in this case, I'm going to specify the fourth column.…Now let's take a look at what that looks like.…Here's the spreadsheet we're going to import from…
- Name the three types of big data. List three considerations used to determine the appropriate R package for Excel. Determine the best package used to import entire Excel workbooks. Explain how to import standard text files using base R and tidyverse. Define the purpose of the foreign language package for R. Recognize restrictions when working on SAS files in the foreign language package. Identify the problems involved with extracting data from a PDF in R.
Skill Level Intermediate
R Programming in Data Science: High Volume Datawith Mark Niemann-Ross1h 25m Intermediate
1. Use R with Excel
2. Importing Text Files
3. Understanding the Foreign Package
4. Use R with Popular Data Formats
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.