Introduction to the layout of R Studio
Jessie Morrill
Author
10/08/2024
Added
13
Plays
Description
A tutorial video for navigating the R Studio interface.
Searchable Transcript
Toggle between list and paragraph view.
- [00:00:00.000]Okay, so in this video, I want to just give a quick tutorial over the layout of RStudio
- [00:00:12.920]as you begin to get familiar with how to use the program.
- [00:00:18.060]Okay, in this video, I want to give a quick overview of the layout of RStudio so that
- [00:00:25.120]you can become familiar with where to look for things as you get started using this program.
- [00:00:31.960]So the first area that I want to describe is going to be the found in the upper left
- [00:00:37.900]hand corner of your screen, we're going to call this the script or editor pane.
- [00:00:42.880]And so the purpose of this area is going to be for writing and editing scripts, making
- [00:00:47.760]notes, running different lines of code, making comments on on the code that you have.
- [00:00:54.920]Okay.
- [00:00:54.920]Our comments about your data can all be done here.
- [00:00:58.560]And the script is something that you can save and share with your colleagues that they'll
- [00:01:02.980]be able to open on their own computers to be able to run and repeat exactly what you
- [00:01:09.020]did on your computer on their own computers.
- [00:01:12.120]So this is kind of like a Word document, if you will, within RStudio.
- [00:01:17.960]The other area I want to show is going to be the bottom left hand quadrant, which is
- [00:01:21.720]the console.
- [00:01:23.460]So
- [00:01:24.880]you can execute R commands directly in the console, but the console also shows you the
- [00:01:31.040]results for different lines of code that you may run up in the script.
- [00:01:36.220]So if I go back up to the script, and I use this
- [00:01:41.960]just as a calculator where I run a line of code that's one plus one, what's going to show up in
- [00:01:48.120]the console is the answer to that that particular equation that we put into R. So it gives us the
- [00:01:55.710]answer is two. Now I want to do another thing really quickly where I want to set this equation
- [00:02:03.310]equal to the name math because I want to create this as an object. I'm going to run that line of
- [00:02:09.550]code. So now you can see that what we've done is we've run the line of code math equals one plus
- [00:02:15.810]one. Now if we go to the upper right hand quadrant we're going to call this our environment. What you
- [00:02:22.610]can see in the environment is where different data is loaded but you can also see the value
- [00:02:29.590]for the object that we just ran. So the object we ran was math and the value associated with math
- [00:02:36.470]is equal to two. So if you load in data into R this would also be where you'd be able to see
- [00:02:43.910]all of those different things. If you
- [00:02:45.670]create graphs you'll be able to see the graphs that you create in R but they'll all be listed
- [00:02:53.350]as objects with values associated with them. So that brings me to my next point that I want to
- [00:03:00.630]bring up and that's the bottom right hand corner of the RStudio screen. And so this area is going
- [00:03:08.170]to be useful for being able to see all of the files that are in your working directory. It's
- [00:03:15.530]going to be useful for being able to see all of the files that are in your working directory.
- [00:03:18.890]You're also able to see the different packages that are installed and loaded onto your computer.
- [00:03:25.850]There's also a help tab and then there's a viewer content or viewer tab as well.
- [00:03:32.550]So I hope this helps as you begin to learn to navigate R.
The screen size you are trying to search captions on is too small!
You can always jump over to MediaHub and check it out there.
Log in to post comments
Embed
Copy the following code into your page
HTML
<div style="padding-top: 56.25%; overflow: hidden; position:relative; -webkit-box-flex: 1; flex-grow: 1;"> <iframe style="bottom: 0; left: 0; position: absolute; right: 0; top: 0; border: 0; height: 100%; width: 100%;" src="https://mediahub.unl.edu/media/23217?format=iframe&autoplay=0" title="Video Player: Introduction to the layout of R Studio" allowfullscreen ></iframe> </div>
Comments
0 Comments