From the course: Algorithmic Trading and Finance Models with Python, R, and Stata Essential Training (2019)
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Importing data with R
From the course: Algorithmic Trading and Finance Models with Python, R, and Stata Essential Training (2019)
Importing data with R
- [Instructor] RStudio has a variety of different tools and features that make it easy and kind of nice to use and to code in. So, while we were previously typing directly into the console, you can actually go through and create new notebooks that'll let you go and code directly into those. So, if you go File, New File, you can then add in an R Notebook or a Markdown, and it'll look just like this one. And as it notes for you, essentially what this does is it gives you, kind of, an isolated sandbox where you can go through and put in code, and then run pieces of that code. So, let's just take a look. For example, they've got this sample code already here for us, and we've got a built-in dataset in R called Cars. So now, if we wanted to go ahead and run this particular code and plot Cars, let's see what this does. So I'm going to put my cursor here between the P and the L. Hold down the Control and Enter key and the Shift key, all at once. And voila, it plots the distribution of Cars…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.