Learn how to parse textual data from Lake Pend Oreille.
- [Instructor] In this video,…we'll look at parsing the data coming in…from Lake Pend Oreille.…I'll begin by defining a function…called transform-row.…This'll take a row of string data,…which I'll call row-str.…This function will parse a string,…and return a map in the format…that our database expects.…I'll start with a let binding,…and I'll bind the vale row data…to the result of calling str/split…on the row string we're given,…and I'll give it the regular expression…backslash, s, plus.…
This regular expression will match against…one or more white space characters.…This'll match the tab to limited format…that Lake Pend uses.…Since we're splitting on this white space,…this expression will return a vector of strings,…which each value in the string…that's separated by white space.…Next, we'll take this row data,…and we'll destructure it into each of its pieces…on the left, using a vector.…We'll bind the strings in this vector…to each of date time, air-temp, and baro,…for barometric pressure, in turn.…
The next four weather metrics…
Skill Level Intermediate
1. Problem 1: Exploring Lake Pend Oreille
2. Problem 2: Image Analysis
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Recursion and Directories
6. Problem 6: Building the Web
- 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.