 Hi everyone today. I'm going to show you the next step It's really almost the first step in starting on your semester project The two things that I've done before or show you how to do the bonus problem set Which included showing you how to open up one of these QMD files and then having how to render that into an HTML file That you can show people and the other thing I did before that was to create this Demonstration semester project in github and then bring it into our studio from github And so there are videos that show you how to do that if you haven't done those two things do them first So the next thing I want to do is actually get my data So you're probably going to end up getting it from a website If you use one of these three demonstration mini data sets that I put on canvas you'll get them from canvas And you'll get them by just downloading them the normal thing that you would do to download anything else You're going to download them to somewhere on your computer And once they're downloaded to your computer wherever you put them You're going to you know, that's that's going to be good. It's going to be on your computer Hopefully you're going to download it straight to your project directory or folder But if you don't if it goes to your download folder, that's fine You have to go get it and bring it in here And that's what I have to do the data is actually already on my computer in another folder So I'm going to go get it And I have it fairly organized So I can find it quickly if you have more trouble finding the file Well that may slow you down a little but the principle is still the same you go out to wherever it is on your computer In my case, I know that I created it I actually created it in that class in our class Project I created the data for projects for a demonstration and then the ones I put on canvas And so this is the demonstration data Please do not use it yourself Because the whole point is for you to use at least slightly different data than what I'm demonstrating to at least Change variable names if nothing else So anyway in order to copy it I'm going to use the control C keyboard command, which you can't see me doing But I just highlighted the data and hit control on the keyboard hold it down and then hit C that copies it So now I'm going to come back out to our studio projects This is just it's going to be different on your computer But this is where I have all my our studio projects and the demonstration semester project is the one I want to go to If you look at all of these file names here and this folder, and then you come back over to our studio You're going to see that they look very similar. That's because this is just a picture of This this folder So the next thing I need to do is actually paste That data into this folder and so I'm hitting control V on my keyboard and just hit control and hold down V On a Macintosh you will hold down command and hit V So it's slightly different. It's command instead of control But see that popped up there and if I come back over to our studio it popped up here, too I'm going to add a step that's optional for you, but I want to do it I'm going to create a data folder or directory for this to go in and so I just hit new folder and type data and In order to get it there. So you see it popped up. I'm going to I want to move the demonstration data to it So I checked the check part box and then move And it pops up with this and there's that data folder. I selected and hit open That data disappeared from there. It's now there I'm going to hit the little two dots and come back up. So I'm still in my main directory Just so you can see it Now my next thing I want to do is actually create the file I'm going to work in and so this is similar to what I did with the bonus problem set demonstration I come up to the file menu. I select new file and I'm going to go Quarto document Because this is the same thing I did there. I'm going to go through it a little quicker. I'm just going to put in title I'm going to put semester project demo and then in the name. I'm going to put my name I'm going to leave it selected HTML Because I can change that later. That's where I'm going to leave it for now. I want this not checked So if it's checked uncheck it I want it like this because I don't want the visual markdown editor. I want to use the source editor So so leave that unchecked. Don't mess with anything else You want the engine to say knitter which it should already say and you hit control and bam There's that thing and it filled in the title and author This is all instructions from our studio on how to use these Quarto things I don't want it. You may want to keep it just for reference, but I'm going to get rid of it for now and then the first thing I want to do is I want to create a Space to work in and I'm going to label it as loading my data And all this is is it going to actually print out a heading on the document and the heading It's a heading because I put two two hashtags in a space Which means it's a second level heading And then loading my data so it'll print loading my data and bold sort of big bold type And then under it. I'm going to put this is where This is where I load my data and look at the first six lines because those are the things that we're going to do today And all that's going to happen is that's going to print out as Type text so now I need a code chunk to actually do some r coding and that's what it's called It's a code chunk. It just means it's a place where I put code They called it chunk that doesn't really it's actually a fairly new term. So don't Get excited about it. It's just where you put the code and In order to create the code chunk on a Windows computer, I'm going to press control alt I which means I press control keep holding it down press alt keep holding it down and then hit I On a Mac you do the same thing, but instead of control alt its command option And so all the code that I want r to run has to be inside one of these things That's got the three apostrophes and are in the squirrely brackets and then three more backwards apostrophes You can type it yourself Those are the backwards apostrophes that are to the left of the one on your keyboard So the first thing I want to do is I'm loading that here library that I told you about in the intro to our Session If you don't use the data directory if you leave your data out here, you don't have to do that part But that's the best way to do it for for the purposes of this workflow that we're using So I'm doing that the next thing I want to do is I want to create an object That's going to hold my data and I'm going to give it the really creative name my data So I create the object my data by typing my data I'm going to assign what goes into it using that assignment operator the less than sign and hyphen and then I need to actually assign it I'm going to use the read CSV function, which is a function from our that reads CSV files, so it's nicely named read CSV Then I have to use that here function because that's just helping me tell where to find it And I want it to go to the data directory Down here, so I put data and quotation marks inside those parentheses And then I go and I have to type the name of the file and the name of the file is demonstration underscore data dot CSV so demonstration data dot CSV I Still want to do one more thing, which is look at those first six lines so I'm going to use that head command that I showed you in class and head my data that should show the first six lines of the The data frame that's going to be created so I'm going to Run and I'm going to run the current chunk and if all works properly Yeah, so all did work properly. It loaded it. It created up here in my data 179 observations of 16 variables and then it brought up the first the head command brought up the first six lines And it shows all of this I can go through it using the arrows The last two things I want to show you before we finish first of all, I need to I need to save this file It's still just an untitled file. So I want to save it. So I'm going to click I can do it a couple of ways. I can click the little disk I can come to the file menu and call and go save as I'll do that And I want to call it my semester project Demo, so it's my semester project demo Out here in the main directory there. It is now my semester project demo dot QMD Which just means the dot QMD just means it's a corto document It's corto marked down document, which is what the M stands for so now I want to render it I want to just make sure everything's going to look nice the way I expect it to when I render it And so I'm going to click render And if you're on a Windows computer, it'll come up in the viewer if you're on a Mac It may come up in a web browser window. That's fine But it came up and it has semester project demo Which is the title from up here and then here's my heading loading my data and then this is the type line This is where I might load my data and look at the first six lines and then this is the code stuff So here's the actual code and then here is the result. So this is the result of that head command That looks like this on the screen. It looks like this over here It has all of those variable names and it gives the first six rows So that's it at this point. I'm done I can close down or not close down, but but I've done this much In the next installment, we're going to look at the data a little bit more. We're going to get summary Statistics and then after that we'll go on and get some other statistics that we've already covered in class But I'll show you the code to actually put them in your project and within about a week We will be caught up to where you'll have everything up through the standard Deviation already in there and then we'll start adding some graphs and make this thing look a little bit nicer than just this garbage Okay, thanks