Register Here :- SIGNUP LINK
The Git Repo for content and code for the - Data Science India - R Begginers Online Virtual Learning Session. Students / Corporate Learners who have been through earlier online sessions with me , may also benefit from this updated repository . As usual in case of any challenges reach out to me for further discussions .
Do note basis feedback from students - the content and flow of the sessions keeps changing .
Two of my Older Blogs are as below - they also have R and Python code for Beginners
R and Python another slightly dated Blog
[ Duration : @60 Minutes ]
R Code for this Module -R_Pubs , R_Code.pdf , and R_Code_2.pdf ...
- Intro to R the R Project for Statistical Analysis, Intro to R Studio , Intro to CRAN - any other introductory exchanges. Kindly note we shall us the FREE Versions Only of both R and RStudio for all our Learning sessions.
Download and Install R - Linux
Download and Install R - Windows
Download and Install R Studio - Linux
Download and Install R Studio - Windows
-
Intro to Basic Data Structures in R - Array , Matrix , DataFrame and Lists .
" A Dataset is a Rectangular Array of Data - ROWS == OBSERVATIONS or EXAMPLES and COLUMNS == VARIABLES or LABELS or ATTRIBUTES"
EMP ID == ROW or INDEX or CASE IDENTIFIER
EMP NAME == ROW or INDEX or CASE IDENTIFIER
DOJ == DATE VAR
DOE == DATE VAR
AnnualCTC == CONTINUOUS VAR
SEX [ M/F ] == CATEGORICAL or NOMINAL VAR [ Boolean 0 / 1 ]
ORDINAL == ??
INTERVAL VAR == ??
-
Intro to CSV files . Entering Data from a CSV file . Entering Data from the R Studio GUI vs. from R Script. R Code for this Module - R_Code.pdf ...
-
Basic Data Wrangling Functions :-
The R Language Prompt is :-
">"
This is the default in R Studio / R Studio Console. We mostly use the - "R Notebook" provided within R Studio.
Render - R Notebook.Rmd , files into a PDF file , with the "KNIT" command- for easy portability and publishing - code and charts.
We cant see the ">" prompt preceding our chunks in PDF files. We still use ">" prompt wihtin ReadMe.md file or other instructional files to represent begining of a Code chunk.
#
# Check Data Sets in Env .
> objects()
#
As seen below - when we use the GUI within R Studio or the Console to install a R Package from a CRAN Mirror - we will be able to see a Console output as below - yours may differ in certain aspects due to different directory structure and Operating System etc.
> install.packages(c("psych","ggplot2")) # installing multiple packages
# Sample Console Output for the - psych - package
> install.packages("psych")
Installing package into ‘/home/dhankar/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘mnormt’
trying URL 'https://cran.rstudio.com/src/contrib/mnormt_1.5-5.tar.gz'
Content type 'application/x-gzip' length 37169 bytes (36 KB)
==================================================
downloaded 36 KB
trying URL 'https://cran.rstudio.com/src/contrib/psych_1.7.5.tar.gz'
Content type 'application/x-gzip' length 3219737 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
* installing *source* package ‘mnormt’ ...
** package ‘mnormt’ successfully unpacked and MD5 sums checked
** libs
gfortran -fpic -g -O2 -fstack-protector-strong -c biv-nt.f -o biv-nt.o
gfortran -fpic -g -O2 -fstack-protector-strong -c sadmvnt.f -o sadmvnt.o
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o mnormt.so biv-nt.o sadmvnt.o -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /home/dhankar/R/x86_64-pc-linux-gnu-library/3.3/mnormt/libs
Command to Quit R Studio and save your environment variables and project history.
> q() # Quit R Studio
#
# We use R Studio GUI to not only Install Packages also LOAD already installed packages
#
library("psych", lib.loc="~/R/win-library/3.1")
#
# Misc ..HouseKeeping tasks ---
#
sink(Saved_Code_File_.txt)
#
savehistory()
#
save.image("C:/.///.//..RData)
#
getwd()
#
setwd()
#
Questions and Answers
[ Duration : @60 Minutes ]
R Code for this Module -R_Pubs , R_Code.pdf ... and... R_Code_2.pdf ...
- Using the Built in HELP Commands , learning to use Vignettes and CRAN for HELP. Accessing internal Data Sources - mtcars , iris etc .
-
The basic Arithmetic Operators , NaN , NA etc .
-
Intro to Logical Operators and Vectorized operations.
-
R Data Structures - The ATOMIC Vector . Common operations of ...
-
The FACTOR , the LISTS , operations of ...
-
The DataFRAME , common Operations of DataFRAME's - specifying individual elements etc .
-
The MATRIX and Matrices , common Operations of Matrices .
-
The ARRAY Data Structure .
9 The LISTS - the Super Data Structure - Lists of Matrices , Lists of Lists etc ..
Questions and Answers
[ Duration : @60 Minutes ]
R Code for this Module -R_Pubs , R_Code_2.pdf ...
- Intro to Data Vizualization with R.
- Scatter Plots , Correlation Matrices , the plot() function .
- Detailing the Vanila Plots - Point Shapes , Fonts , Line Colors and Reference Lines.
- Creating Multiple Plots or an ARRAY of Plots .
- Which Plot is best suited - for what kind of Data Analysis and Visualization ?
- Avoid overdoing the Visual and avoiding certain kind of Plots .
- The HISTOGRAM - hist() and truehist() etc .
- Visualize a relation between Two Variables - the qqPlot() and others .
- Boxplots and Mosaic Plots - the various options and tweaks.
- The Correlation matrices and the corrplot() function.
Questions and Answers
[ Duration : @60 Minutes ]
R Code for this Module -R_Pubs , R_Code_2.pdf ...
- Plots and Graphs - the par() function.
- Add lines , points , text , trend lines for linear regression , legends and tweak the axis axes() etc.
- Intro to ggplot2 and lattice.
- Plotting advanced data types with ggplot2 - plotting Factors , scatterplots , boxplots - the qplot() function.
[ Duration : @60 Minutes ]
R Code for this Module -R_Pubs , R_Code_2.pdf ...
[ Duration : @60 Minutes ]
R Code for this Module -R_Pubs , R_Code_2.pdf ...
-
Install Latex or TexLive for UBUNTU Check Latex install on UBUNTU -
dhankar@dhankar-VPCEB44EN:~/$ whereis latex latex: /usr/bin/latex /usr/share/man/man1/latex.1.gz
-
If youre Pushing a lot of Commits to your GitHub repo and like me dont like entering your Auth credentials again - do this ---
dhankar@dhankar-VPCEB44EN:~/Desktop/R_Own$ git config credential.helper store
Source - "https://git-scm.com/docs/git-credential-store"
-
Wiki reference -- Algebraic definition- of the Dot Product - "https://en.wikipedia.org/wiki/Dot_product"
-
Wiki reference -- Percentile Rank - "https://en.wikipedia.org/wiki/Percentile_rank"
-
Wiki reference -- Transpose of a MATRIX -- https://en.wikipedia.org/wiki/Transpose
-
Wiki reference -- Scatter plot. (2017, July 2). In Wikipedia, The Free Encyclopedia. Retrieved 11:30, July 26, 2017 , from https://en.wikipedia.org/w/index.php?title=Scatter_plot&oldid=788581167