In this video, Mark Niemannn-Ross demonstrates working with data stored as image files. Learn how to use readJPEG and writeJPEG to import and export images as numeric arrays.
- [Instructor] R provides a lot of packages…for image manipulation, but in this video,…let's focus on just simple import and export…and some subsetting.…To work with images in this way,…you'll need to install a jpeg package.…If you're using a different image format…there are other packages for tifs, or pngs, or bmps,…and you'll need to use the correct packages…for those file formats.…Once you have installed the package go ahead and use…the library command to bring that into use.…
And then I've defined a sample jpeg vector…which includes a pathname to sample file called parrot.jpg.…When you use this be sure you've set your current…working directory to chapter four of the exercise files.…Now we're ready to import an image, and to do that…I'll use the read jpeg command.…I'll put it into an array called parrotPicArray,…and I'll use read jpeg, and I give it the name…of the jpeg I want to import.…
Running this line of code produces a new array…called parrotPicArray, and if we take a look at that…what we'll see is that it has three levels,…
- 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.