We can use search to search help from this tab or we can use ?function name or help (function name) from the console.
Help tab is the help windows to view help for an R function.
However, another way to manage R packages is to run function install.packages("package name") in R console or from R script to install a new package and use function library(package name) to load a package. Also we can install a new package from this tab. We can load a package by checking their box. Packages shows a list of all the R packages installed in the computer. By clicking on the export we can save our plots as jpeg or PDF. From files tab we can navigate a directory and set it as working directory. We can always customize R panels and include tabs that we need.įiles tab is to view and manage directory and files in the hard drive of the computer. The other panel includes files, Plots, packages, and help. History simply shows all commands that we already run and evaluated in the R console. Environment tab shows R data objects we define in the current R session for example, vector, matrix, and dataframe. One panel usually includes Environment and history. There are two other panels with some tabs on each. We can also type a command in the console and click Enter to run it directly from the R consol. Ĭonsole is linked to R script and every time we run a command from R Script it evaluated in the R console and outputs and results (if any) appears in the consol.To run a command or a set of commands from the R Script, select them first and hold Ctrl + Enter. You can save R script file to keep R codes that you have written.
The first time you open RStudio the source code panel is hidden and will appear after we open a new or existed R script. Source code editor or R Script: to type, edit and manage R commands. RStudio is an integrated development environment (IDE) to make R easier to use.
In a study on schools in California students academic performance for each school may be related to the poverty level of students in the school or number of student enrolled in the school or percentage of teachers with full credential in the school or number of students in the class. The number of votes for a presidential candidate for each city may be related to candidates gender, city average income, and the state.
The amount of time until a headache is gone, when taking a pain killer, may be related to the dosage, age, and gender. Regression Analysis is a statistical modeling tool that is used to explain a response (criterion or dependent) variable as a function of one or more predictor (independent) variables.Įmployee efficiency may be related to years of training, educational background, and age of the employee.