Monday, June 11, 2018

Day 3 - R Variables and Operators

Variable

Name Convention


  1. Valid names: letters, numbers , dots or underline characters
  2. Do not user RESERVE 
  3. Use lowercase letters
  4. Separate words using dot(.)
  5. Do not use underscores(_) or hyphens(-)



Custom Variable
Global Variable










Type of Vectorized Operation






Wednesday, June 6, 2018

R Programming Fundamental - Day 2 Help command

Help 

Today, I am learning Help() and Vignette() commands.

help(command)
?command

help(rnorm)

?rnorm

help.search("rnorm")

??rnorm



To see all available demo packages

demo(package = .packages(all.available = TRUE))



Demo in package 'graphics'

demo(package ='graphics')



demo(graphics)





Vignette

Getting package information in pdf format without internet

vignette()
vignette(package=.packages(all.available = TRUE))
vignette('parallel')
vignette('parallel', package='parallel')



Web Search

http://search.r-project.org



RSiteSearch("arithmetic mean")

To install a package

install.packages("sos")

To load that to library

library(sos)

Find function in R site

findFn("{arithmetic mean}")
findFn("{arithmetic mean}",maxPages=2)



Thank you for learning R with me.

Tuesday, June 5, 2018

R Programming Fundamental - Day 1

Learning R - Day 1


Download Rgui from https://cran.r-project.org/


Call mean function

mean (1:30)

Print Hello world

Print ('Hello World')

Assign values to a variable 





Editors for R (Small projects)

Windows : R-Gui
Mac : R.app
Linux : No specific

Other editors

Emac
Vim-R
NPPToR

IDE for R (Bigger projects)

Eclipse 
used by java developer
StatET plugin

Architect
R oriented variant of Eclipse

Revolution-R
Enterprise edition

Live-R
R in web application

RStudio * (Free)
R oriented IDE

RStudio Installation


  • go to https://www.rstudio.com
  • download Rstudio Desktop and install






RStudio Desktop Overview



To change appearance , Tools -> Global Option -> Appearance






RStudio Doc

https://support.rstudio.com/hc/en-us/categories/200035113-Documentation?version=1.1.453&mode=desktop

Packages window



# is used for Commenting
Ctl +Enter to execute R Script


Example R script



To execute , click on Run or Ctl+Enter


 Source with Echo, script ran in Console window



Credits go to https://app.pluralsight.com/library/courses/r-programming-fundamentals

How to add a Database to AlwaysOn Availability Group with four different options

To add a database to an existing AlwaysOn availability group, MS has given us four options to choose from Automatic seeding Full database an...