Posts

Variables in R Programming

Image
Definition: Temporary Storage Space where you can keep changing values  Rules: Letters, number, underline & Dots combination allowed. The variable name starts with a letter or the dot not followed by a number. Example: x1.-> Valid x_2%-> Invalid, it has % symbol 2_x-> Invalid, Starts with number .x_1-->Valid, Can start with a dot(.) but the dot(.)should not be followed by a number .2x--> Invalid, after dot number should not come _x_1--> Starts with _ which is not valid Output in R Console: x1.<-1  x_2%<-2 Error: unexpected input in "x_2%<-2" 2_x<-3 Error: unexpected input in "2_" .x_1<-4 .2x<-5 Error: unexpected symbol in ".2x" _x_1<-6 Error: unexpected input in "_"

R and R Studio Installation for Windows

Image
R Installer Download & Installation:  1. Download the R Installer Setup from the URL https://cran.r-project.org/. Click on “Download R for Windows” as shown in the below image 2. After clicking, the page will be redirected to the below screen. Click on “Install R for the first time” as highlighted below 3. After Clicking “Install R for the First Time”, again page will be redirected to the screen below. 4. Save the Application in the Desired Location. Run the Setup and Install R Studio Download & Installation 1. Download RStudio: https://www.rstudio.com/products/rstudio/download/ 2. Save the Application in the Desired Location. Run the Setup and Install NOTE: First install R and then R Studio to be installed. 3. Open R Studio as shown below: Execute Syntax in the Code Window to check whether the installation is successful A<-10 Print(A) NOTE: Ctrl+ Enter --> To Execute Code Basic Walkthrough on R Studio Code Editor-It allows you to write and execute the Code ...