Skip to playerSkip to main content
  • 6 days ago
Take my Full R Programming for Data Analysts Course: https://www.analystbuilder.com/courses/r-programming-for-data-analysts

Use code "R" for 25% off any purchase!

Install R and R Studio: https://posit.co/download/rstudio-desktop/
____________________________________________

RESOURCES:

💻Analyst Builder - https://www.analystbuilder.com/

📖Take my Full MySQL Course Here: https://bit.ly/3tqOipr
📖Take my Full Python Course Here: https://bit.ly/48O581R
📖Practice Technical Interview Questions: https://bit.ly/46pDqqL

Coursera Courses:
Google Data Analyst Certification: https://coursera.pxf.io/5bBd62
Data Analysis with Python - https://coursera.pxf.io/BXY3Wy
IBM Data Analysis Specialization - https://coursera.pxf.io/AoYOdR
Tableau Data Visualization - https://coursera.pxf.io/MXYqaN

Udemy Courses:
Python for Data Science - https://bit.ly/3Z4A5K6
Statistics for Data Science - https://bit.ly/37jqDbq
SQL for Data Analysts (SSMS) - https://bit.ly/3fkqEij
Tableau A-Z - http://bit.ly/385lYvN

*Please note I may earn a small commission for any purchase through these links - Thanks for supporting the channel!*
____________________________________________

BECOME A MEMBER -

Want to supp

Category

📚
Learning
Transcript
00:00What's going on, everybody?
00:01Welcome back to another video.
00:02Today, we're gonna be setting up
00:03and installing R in RStudio.
00:11Now, this is our very first lesson in this series,
00:14so we're just gonna be installing
00:15and getting R in RStudio set up.
00:17In future lessons, we're gonna be diving
00:18into the basics of R.
00:19We'll be grouping, aggregating, visualizing, cleaning,
00:22and a ton of other things,
00:23using a lot of different packages
00:24that are very popular within R.
00:26By the end of this series,
00:27you should feel very comfortable using R and RStudio.
00:30If you haven't checked it out already,
00:31I have a full course called R for Data Analysis
00:34over on analystbuilder.com.
00:35I will leave a link in the description
00:37as well as a coupon code
00:38if you wanna take that full course.
00:39It covers more topics,
00:40has practice problems throughout the course,
00:42as well as goes more in depth
00:43and has more difficult projects.
00:45With all that being said,
00:46I'm super excited to get started on this series with you.
00:48Let's ship on my screen and get started.
00:50All right, so let's get started in downloading RStudio.
00:53Now, RStudio is created by a company called Posit.
00:57Now, R is the programming language,
00:59but RStudio is the interface
01:02in which so many people interact with R.
01:05And so we're gonna be using RStudio
01:07throughout this entire series.
01:09What we need to do is first install R,
01:11and then next we need to install RStudio.
01:14R is gonna be installed almost the exact same way
01:16on every system.
01:17And then for installing RStudio,
01:19it's gonna auto-populate this for Windows,
01:21because it recognizes Windows as my machine.
01:23But if it doesn't, if it gets the wrong one,
01:26you go down here for Linux, Mac, Windows,
01:29whichever one that you want.
01:31So let's get started by installing R on our machine.
01:34I went ahead and deleted R and RStudio from my computer.
01:37So I'm starting fresh, just like you.
01:40We're gonna come right here.
01:41I'm gonna do download R for Windows,
01:43but if you have a different type of machine,
01:44be sure to get the correct one.
01:46I'm gonna download R for Windows,
01:48and then I'm gonna come up here and say,
01:49install R for the first time.
01:51And then we're gonna get this package right here.
01:53So let's go ahead and click on this.
01:54And I'm gonna go ahead and download it.
01:57Now that it's done downloading,
01:58I'm gonna go ahead and open that .exe file.
02:00You may not be able to see it,
02:01but it just says, are you sure you want to download this?
02:04And I'm gonna say yes.
02:05Now we need to set up our language.
02:07I'm gonna choose English,
02:08but go ahead and choose the correct language for you.
02:10I'm gonna click OK.
02:12We're gonna click Next.
02:13And now we're just saying
02:15where it's actually gonna be placed.
02:16So I, by default,
02:17it gets placed in my C drive under program files.
02:20That is where I want it.
02:21So I'm gonna go ahead and click Next.
02:22You can select your components.
02:23We want all of them just by default.
02:26And then it asks if you want to have this,
02:28you know, boot up on startup.
02:29I'm gonna say no,
02:30because I don't need it all the time
02:32when I'm, you know, restarting my computer.
02:33And then you can name this as well.
02:35I'm just gonna keep it as R.
02:37Again, I don't really need a desktop shortcut
02:39or a quick launch shortcut.
02:41So I'm just gonna get rid of that.
02:43And now it's going to install on our computer.
02:46And that took about 30 seconds.
02:48And we now have R on our computer,
02:50which means we can come back here
02:52and we can install RStudio desktop for Windows.
02:56Again, make sure you have the right one
02:57for your operating system.
02:58I'm gonna go ahead and click on this.
03:00And we are going to save this.
03:02Now that it's done downloading,
03:03let's go ahead and open it up.
03:05Now we're going to set up and install our RStudio.
03:08Let's go ahead and click Next.
03:10We're just selecting our location.
03:12Make sure you have enough space required.
03:14It's very small, but that's happened to me in the past
03:16where I have no storage.
03:18And then it doesn't really work.
03:19So let's go ahead and install this.
03:21It's gonna install.
03:22Again, this should only take about a minute or so.
03:24Now that RStudio is completely set up,
03:27let's go ahead and click Finish.
03:29And now we're gonna go look for it.
03:31So we're gonna come right over here.
03:32We're gonna say RStudio.
03:34And we're gonna open up RStudio.
03:36It says we need to choose our R installation
03:38because RStudio requires an existing installation of R.
03:41We're gonna go ahead and choose the default one.
03:44We're gonna click OK.
03:45And now RStudio from Posit is popping up for us.
03:49And just like that, we are in RStudio.
03:52And now we have our user interface
03:54that we can take a look at.
03:56So really quickly, let's take a look at what we have here.
03:59Right over here, we have our console,
04:01our terminal, our background jobs.
04:03But this is our console.
04:05If you are looking for where you can write code,
04:08it's gonna be right here.
04:09We just need to click on this R script.
04:11And it pulls up our coding workspace right up here.
04:14Now this is where we can start typing.
04:17We can bring things in,
04:19like reading in a library or a package.
04:21And we can write all of our code in here.
04:23Down here is our console.
04:25So when we execute code,
04:26this will be where we get error messages
04:28or we can see the output of our code.
04:30On this right-hand side, we have our environment.
04:33Now this is where if we pull in some type of data frame
04:35or if we create variables or lots of other things
04:38that we're gonna be doing throughout this series,
04:40they will show up right over here.
04:42And lastly, in this section on the bottom,
04:44you can actually come in here
04:46and we can select a file path to give it.
04:49So let's come in here.
04:50Let's go to our YouTube.
04:52And this is gonna be our R series.
04:54So I'm gonna open up our R series.
04:56We don't have any files in here just yet,
04:58but I'll have access to our files
05:00where we can pull them in or read them in.
05:03And it's really great that RStudio has this
05:05because you use a lot of files
05:06when you're working within RStudio.
05:08This is absolutely something we will use quite a bit.
05:10We, if we come right over here, actually,
05:11we can do control S and we can save this.
05:14Let's go down to our YouTube.
05:17And I'm gonna go to this R series.
05:19And I'm just gonna save this as first file.
05:22And if I save it, you'll see it saves as first file dot R.
05:25Now that's actually not a good naming convention.
05:27I should use an underscore there,
05:28but these are all things that we will get to within this series.
05:32Now that we have everything set up,
05:34we can keep going in this series moving forward.
05:37We're gonna learn a ton of different things.
05:40But with that being said, I hope that this is helpful.
05:41I hope you were able to get everything set up.
05:43And I will see you in the next lesson.
Comments

Recommended

  1. RareGear
    2 months ago