Commands
|
Purpose
|
| help() | Obtain documentation for a given R command |
| example() | View some examples on the use of a command |
| c(), scan() | Enter data manually to a vector in R |
| seq() | Make arithmetic progression vector |
| rep() | Make vector of repeated values |
| data() | Load (often into a data.frame) built-in dataset |
| View() | View dataset in a spreadsheet-type format |
| str() | Display internal structure of an R object |
| read.csv(), read.table() | Load into a data.frame an existing data file |
| library(), require() | Make available an R add-on package |
| dim() | See dimensions (# of rows/cols) of data.frame |
| length() | Give length of a vector |
| ls() | Lists memory contents |
| rm() | Removes an item from memory |
| names() | Lists names of variables in a data.frame |
| hist() | Command for producing a histogram |
| histogram() | Lattice command for producing a histogram |
| stem() | Make a stem plot |
| table() | List all values of a variable with frequencies |
| xtabs() | Cross-tabulation tables using formulas |
| mosaicplot() | Make a mosaic plot |
| cut() | Groups values of a variable into larger bins |
| mean(), median() | Identify “center” of distribution |
| by() | apply function to a column split by factors |
| summary() | Display 5-number summary and mean |
| var(), sd() | Find variance, sd of values in vector |
| sum() | Add up all values in a vector |
| quantile() | Find the position of a quantile in a dataset |
| barplot() | Produces a bar graph |
| barchart() | Lattice command for producing bar graphs |
| boxplot() | Produces a boxplot |
| bwplot() | Lattice command for producing boxplots |
| help() | Obtain documentation for a given R command |
| example() | View some examples on the use of a command |
| c(), scan() | Enter data manually to a vector in R |
| seq() | Make arithmetic progression vector |
| rep() | Make vector of repeated values |
| data() | Load (often into a data.frame) built-in dataset |
| View() | View dataset in a spreadsheet-type format |
| str() | Display internal structure of an R object |
| read.csv(), read.table() | Load into a data.frame an existing data file |
| library(), require() | Make available an R add-on package |
| dim() | See dimensions (# of rows/cols) of data.frame |
| length() | Give length of a vector |
| ls() | Lists memory contents |
| rm() | Removes an item from memory |
| names() | Lists names of variables in a data.frame |
| hist() | Command for producing a histogram |
| histogram() | Lattice command for producing a histogram |
| stem() | Make a stem plot |
| table() | List all values of a variable with frequencies |
| xtabs() | Cross-tabulation tables using formulas |
| mosaicplot() | Make a mosaic plot |
| cut() | Groups values of a variable into larger bins |
| mean(), median() | Identify “center” of distribution |
| by() | apply function to a column split by factors |
| summary() | Display 5-number summary and mean |
| var(), sd() | Find variance, sd of values in vector |
| sum() | Add up all values in a vector |
| quantile() | Find the position of a quantile in a dataset |
| barplot() | Produces a bar graph |
| barchart() | Lattice command for producing bar graphs |
| boxplot() | Produces a boxplot |
| bwplot() | Lattice command for producing boxplots |
| plot() | Produces a scatterplot |
| xyplot() | Lattice command for producing a scatterplot |
| lm() | Determine the least-squares regression line |
| anova() | Analysis of variance (can use on results of lm()) |
| predict() | Obtain predicted values from linear model |
| nls() | estimate parameters of a nonlinear model |
| residuals() | gives (observed - predicted) for a model fit to data |
| sample() | take a sample from a vector of data |
| replicate() | repeat some process a set number of times |
| cumsum() | produce running total of values for input vector |
| ecdf() | builds empirical cumulative distribution function |
| dbinom(), etc. | tools for binomial distributions |
| dpois(), etc. | tools for Poisson distributions |
| pnorm(), etc. | tools for normal distributions |
| qt(), etc. | tools for student t distributions |
| pchisq(), etc. | tools for chi-square distributions |
| binom.test() | hypothesis test and confidence interval for 1 proportion |
| prop.test() | inference for 1 proportion using normal approx. |
| chisq.test() | carries out a chi-square test |
| fisher.test() | Fisher test for contingency table |
| t.test() | student t test for inference on population mean |
| qqnorm(), qqline() | tools for checking normality |
| addmargins() | adds marginal sums to an existing table |
| prop.table() | compute proportions from a contingency table |
| par() | query and edit graphical settings |
| power.t.test() | power calculations for 1- and 2-sample t |
| anova() | compute analysis of variance table for fitted model |
19 October 2016
List of useful R commands
12 October 2016
how to Calculate Descriptive statistics using R
##Packages used psych and Desctools
##Following commands will install the packages only if they are not already installed
if(!require(psych)){install.packages("psych")}
if(!require(DescTools)){install.packages("DescTools")}
#Load your data here
data("trees") ##loads data inbuilt in dataset package of R which includes Girth, Height and Volume for Black Cherry Trees
##structure of the data frame
str(trees)
##summary
summary(trees)
##mean
mean(trees$Height)
##median
median(trees$Height)
##mode
Mode(trees$Height)
##Standard deviation
sd(trees$Height)
##Standard error of the mean
sd(trees$Height) / sqrt(length(trees$Height))
##Five-number summary, quartiles, percentiles
summary(trees$Height)
##skewness and kurtosis
describe(trees$Height,type=3) #there are 3 options available u can see in package documentation for details
10 October 2016
Top 10 in aviation industry (Airlines, Airport and etc..)
Top ten airlines of 2016
- Emirates
- Qatar Airways
- Singapore Airlines
- Cathay Pacific
- ANA All Nippon Airways
- Etihad Airways
- Turkish Airlines
- EVA Air
- Qantas Airways
- Lufthansa
World's Most Improved Airlines
- Thai Airways
- Aer Lingus
- Vietnam Airlines
- Iberia
- Ryanair
- Hainan Airlines
- Alitalia
- Hawaiian Airlines
- Ethiopian Airlines
- China Airlines
Top 10 First Class Airline Lounges : 2016
- Cathay Pacific : Hong Kong
- Lufthansa : Frankfurt
- Qatar Airways : Doha
- Air France : Paris CDG
- Swiss : Zurich
- Emirates : Dubai
- Singapore Airlines : Singapore
- Thai Airways : Bangkok
- ANA All Nippon Airways : Tokyo Haneda
- EVA Air : Taipei
Top 10 Business Class Airline Lounges : 2016
- Qatar Airways : Doha HIA
- Turkish Airlines : Istanbul
- Cathay Pacific : Hong Kong
- Virgin Atlantic : London Heathrow
- Singapore Airlines : Singapore
- Qantas Airways : Sydney
- Etihad Airways : Abu Dhabi
- Emirates : Dubai
- Swiss : Zurich
- EVA Air : Taipei
Top 10 First Class Airline Lounge Dining Experience
- Air France : Paris CDG
- Lufthansa : Frankfurt
- Qantas Airways : Sydney
- Cathay Pacific : Hong Kong
- Qatar Airways : Doha
- Emirates : Dubai
- Singapore Airlines : Singapore
- Etihad Airways : Abu Dhabi
- British Airways : London Heathrow
- Thai Airways : Bangkok
Top 10 Business Class Airline Lounge Dining Experience
- Turkish Airlines : Istanbul
- Qatar Airways : Doha
- Austrian : Vienna
- Etihad Airways : Abu Dhabi
- Garuda Indonesia : Jakarta
- Hainan Airlines : Beijing T1
- Qantas Airways : Sydney
- ANA All Nippon Airways : Sydney
- Singapore Airlines : Singapore
- Emirates : Dubai
Cleanest Airline Cabins : 2016
- Cathay Pacific
- EVA Air
- ANA All Nippon Airways
- Japan Airlines
- Hainan Airlines
- Korean Air
- Singapore Airlines
- Asiana Airlines
- Garuda Indonesia
- Qatar Airways
Cleanest Airports : 2016
- Tokyo Haneda
- Centrair Nagoya
- Seoul Incheon
- Singapore Changi
- Tokyo Narita
- Zurich
- Kansai
- Munich
- Hong Kong
- Taiwan Taoyuan
Best Economy Class Airline Seats in 2016
- Asiana Airlines
- Japan Airlines
- Korean Air
- Singapore Airlines
- Thai Airways
- Qatar Airways
- ANA All Nippon Airways
- Etihad Airways
- Garuda Indonesia
- EVA Air
09 October 2016
World's largest passenger airplane - A380
FYI: The Boeing's 747-8 is the longest passenger aircraft in the world
Who affords it?
Components and Suppliers
- A380 components are provided by suppliers from around the world. the four largest contributors, by value, are Rolls-Royce, Safran, United Technologies and General Electric.
- The front and rear fuselage sections are shipped on one of three RORO ships from Hamburg in northern Germany to the United Kingdom.
- The wings are manufactured at Broughton in North Wales, then transported by barge to Mostyn docks for ship transport.
- The belly and tail sections are manufactured in Cádiz in southern Spain.
07 October 2016
Book of Duas (Supplications)–Free PDF
Dua No. 2 While Eating Khaak-e-Shifa
Dua No. 3 While Building New House
Dua No. 4 While Leaving House For Special Work/Object/Purpose
Dua No. 5 While salvation of worldly and spiritual tasks at the time of leaving house
Dua No. 6 At the time of wearing Jewels
Dua No. 7 Whenever one sits in gathering
Dua No. 8 While on hill or on great height
Dua No. 9 For avoiding bad omens for traveller
Dua No. 10: Before starting journey
Dua No. 11 For talisman to be keep by traveller
Dua No. 12 For a traveller’s family
Dua No. 13 When anyone loses way
Dua No. 14 At the time of visiting a dangerous place
Dua No. 15 At the time of arrival in new place
Dua No. 16 For safety from robbers
Dua No 17 Dua and prayer at the time of storm in the sea
Dua No. 18 For safety from drowning
Dua No. 19 Dua after every prayer
Dua No. 20 An excellent invocation Dua after Morning Prayer
Dua No. 21: Dua after Zohar Prayers
Dua No. 22 Dua after Asr Prayer
Dua No. 23 Dua after Maghrib Prayer
Dua No. 24 Dua after Isha Prayer
Dua No. 25 For preservation of faith
Dua No. 26 For true belief for one’s family
Dua No. 27 For offering thanks for the bounties bestowed by Allah
Dua No. 28 For limitless heavenly reward
Dua No. 29 Dua for reward of paradise
Dua No. 30 For Here After
Dua No. 31 Dua for all Night Ibadat
Dua No. 32 For Sawab of whole Night Ibadat
Dua No. 33 For seeking forgiveness of sins (Dua in Sajdah)
Dua No. 34 For great sawab and protection from major sins
Dua No. 35 For Sawab, Forgiveness, Protection from Great Sins and Sawab for reciting 12 Qurans
Dua No. 36 For protection from Hell
Dua No. 37 For safety from enemy
Dua No. 38 For protection of self and wealth
Dua No. 39 For recovery of misplaced or lost thing
Dua No. 40 For Scorpion Bite
Dua No. 41 For release from Prison
Dua No. 42: For avoiding bad thoughts and temptation
Dua No. 43 Dua for avoiding temptation & greed
Dua No. 44 Dua for avoiding bad dreams
Dua No. 45 Dua for not getting afraid in sleep
Dua No. 46 For marriage proposal
Dua No. 47 For love (Wife & Husband)
Dua No. 48 For love (Wife & Husband)
Dua No. 49 For love (Wife & Husband)
Dua No. 50 For Obedience
Dua No. 51 For getting a child
Dua No. 52 For Getting A Child
Dua No. 53 For getting a child
Dua No. 54 For easy and safe delivery of child
Dua No. 55 For avoiding early deaths of children
Dua No. 56 Dua for Aqiqa of child
Dua No. 57 At the time of Circumcision
Dua No. 58 For increase of breast milk
Dua No. 59 For wealth & prosperity
Dua No. 60 For wealth & prosperity
Dua No. 61 For increase in Sustenance
Dua No. 62 For increase of Sustenance
Dua No. 63 For Disbursement of Debts
Dua No. 64: For removal of Poverty and Worries
Dua No. 65 For removing Worries
Dua No. 66 For Warding off Calamities
Dua No. 67 Dua for safeguard from Drowning / Burning
Dua No. 68 Do after every prayer
Dua No. 69 Dua and prayers for getting a child
Dua No. 70 Dua for getting a child
Dua No. 71 Dua for getting a child
Dua No. 72 Dua for Safety of Pregnancy
Dua No. 73 Dua for safety of pregnancy and Avoiding Abortion
Dua No. 74 Dua for easy delivery of child
Dua No. 75 Dua for easy Teeming
Dua No. 76 Dua for cure of the child eating dust
Dua No. 77 Dua for excessive weeping child
Dua No. 78 Dua for increase in Sustenance
Dua No. 79 Dua for Increasing Memory
Dua No. 80 Dua for Learning Quran by Heart
Dua No. 81 Dua for Banishing the Effect of Black Magic
Dua No. 82 Dua for Protection from Satan and Enchantment
Dua No. 83 Dua for Repelling Devil and Dispelling Magic
Dua No. 84 Dua for security against Witch Craft
Dua No. 85: Dua for cure of all Diseases
Dua No. 86: Dua for all diseases and for all purposes
Dua No. 87 Dua for Cure from All Diseases
Dua No. 88 (A): Dua for Increase in Business
Dua No. 88 (B) Dua for Increase in Business
Dua No. 89 Dua to be recited at the time of going to market
Dua No. 90 Dua to be recited when one sets in his shop
Dua No. 91 Dua at the Time of Purchase
Dua No.92 Dua at the time of purchase
Dua No. 93 Dua for the safety of the store
Dua No. 94 Dua for all purposes
Dua No. 95 Dua Moosa Kazim (a.s.) Dua for all purposes
Dua No. 96: For all purposes
Dua No. 97 For saving from Squeeze of Grave
Dua No. 98 To be recited at the Time of Death
Dua No. 99 To be recited at the Time of Death
Dua No. 100: To be recited by 40 momins at death body of momin
Dua No. 101: While Entering the Graveyard
Dua No. 102 Talabil Hawaa-ej
Dua No. 103 Imam-e-Zamana (a.j.)
04 October 2016
Aadhar card is not a proof of citizenship !!!
03 October 2016
What is BNA ?
BNAs are new generation, secure ATMs that have the multi functional ability to offer deposits or dispense transactions of bundles notes up to 200 mixed notes after having counted and authenticated them in 8-10 seconds.The customer is first asked to verify the amount of deposit to ensure that it tallies and then it is credited into his/her account immediately. It completely takes away human intervention required until now and enables users to manage and control the same.
BNA are nothing but Cash deposit machines
The initial attempt at automating Deposits included certain types ATMs which allowed users to deposit cash via envelopes. The money would then be counted, verified and credited later. This never really gave customers a sense of security regarding their deposit. The potential impact of BNAs on currency circulation and customer service was seen as significant for the RBI to subsidize the cost of BNAs up to 50 per cent for urban areas (and even 75 per cent in semi urban areas).
BNA / Cash deposit machine locators for Indian banks:
Axis Bank deposit machine locator
Bank of Baroda deposit machine locator
Dena Bank deposit machine locator
Federal Bank deposit machine locator
ICICI Bank deposit machine locator
IDBI Cash deposit machine locator
Indian Bank deposit machine locator
IndusInd Bank deposit machine locator
Kotak Mahindra Bank deposit machine locator
Punjab National Bank deposit machine locator