alpinellka.blogg.se

Python in rstudio example
Python in rstudio example










python in rstudio example python in rstudio example

I'm going to click on "Appearance", and I'd like to have my editor font size a little bit bigger. I also can go to tools and global options and change the appearance. I'm going to set the working directory so that when I want to pull in a file, it'll go to wherever that working directory is, and that saves me some time in navigation. For example, I have a folder for the initial package installation. One of the things I like to do when I start a new session is to set my working directory to wherever my source file might be. You can run it from a certain line to the very end. You can select from beginning to a particular line. If you don't want to hit the run button, you can hit "Control and Enter" as a shortcut, you can run regions of code. Some that are helpful are running selected lines.

python in rstudio example

There's quite a few things that we can do in here. Here's some code for that, or looking at general functions, I can move around that way in the code that I've developed for you to use, you'll have those different sections. Let's say we want to look at how we might load multiple packages at once. If we want to skip to different sections, you can go to the code menu and then click on "Jump to". I've installed sections in these different areas. Now, you'll notice I have a script here and that some of these scripts start with a pound in front of it, which means it's not code, it's just text that we can refer to. Let's take a look at some of the options up at the top. If you ever want to clear the console area, you can use Control L or Command L to clear this area. Let's do a few more things to get more comfortable working in RStudio.












Python in rstudio example