In this video, Mark Niemann-Ross demonstrates reading an Excel range of cells into an R object. Learn how to use an existing Excel range to select data for import into R.
- [Instructor] One thing you may want to do…with an Excel workbook is import a range,…which is a collection of rows and columns.…It's a subset of a worksheet, and you can do that with R.…Let me show you how.…The fist thing I'm going to do is create a vector…that points to a file that contains a range.…I'll call it spreadSheetRangeFile.…And I've also set my working directory…to point to Chapter 01.…Now in the previous two videos, we used Rio.…
But in this case, Rio doesn't support ranges,…so we need to go to a different R package.…And for this video I've chosen to use openxlsx.…If you haven't already installed openxlsx,…use the install.packages command to do so.…Then you can use the library command,…library openxlsx, to bring that into use.…Now openxlsx supports named ranges.…And let me show you what that is.…
I'm in Excel and I'm looking at a spreadsheet called ranges.…And you can see that I've highlighted…this collection of cells.…Now these are actually a range,…and I can check to see what range they're named as…
- 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.