1.Programming with R & Python - Segment 1 [Week 1 & 2- Introduction to R] Flashcards
What is TIOBE ?
Programming language popularity index
What is data Wrangling ?
Data Wrangling is a process of Transforming raw data into a usable format that is used to transform visualise and analyze .
Data Wrangling package in R language
TidyVerse Meta Libray
WhatTidyVerse Package do?
TidyVerse is an Meta library . It has many packages intended for Data Science Applications , like packages for Data Wrangling, Visualisation and more .
How to know the popularity of programming language?
We have to watch programming language popularity index TIOBE ?
What are the common features of R language
- It can handle any size of data
- Fast operators on arrays
- Efficient tool for data a wrangling . TidyVerse
- High quality graphics output capability
Which package is used for high-quality graphics in R ?
ggplot2
When was R Language Developed ?
1993
From which Language R is Derived ?
R is derived from S Language.
R is an advanced version of S Language
What is S Language ?
R is an High Level Programming Language , desighned for Statistical Computation ,S stands for Statistics ,The goal of S Language is to give user an interactive experience of statistical Computation
Source Code of R is written in which language ?
Source code of R is written in C & Fortran , so that it can run on any Platform
When & where S Language was Developed ?
S Language was developed 1976 by Bell Labs .
(Formerly AT & T) & now Lucent Technologies
What is the full form of .ipynb
Interactive Python notebook extension
Who Controll the Design & Evolution of R Language
R is an Open-Source Language, and the Design & Evolution of R Language is controlled by R Core Group & R Foundation
R Source code is written in which Language ?
C & Fortran
How to install R Programming Suite in desktop ?
Download RStudio Desktop from Rstudio.com
& R interpretor from cran.r-project.org & R-project.org.
First install R-Interpretor and then Rstudio IDE
How to Set Working Directory in R IDE ?
Goto Sessions / Set Directory
How to set default working Directory in R IDE ?
Goto Tools/Global options
What are the Drawbacks of Google Colabs
You have to install packages every time when you run colab.
Uploaded DataFrame is not available in next time when you start colab
Collab does not support direct support to R Language
What languages programming can be done in colab
Python , Julia, R
How to install packages in Google Colab and R notebook ?
install.packages(“packageName”)
How to install packages in R IDE console?
install.packages(“package name”)
How to search for a package in R ?
require(“packageName”)
How to include installed package in R program ?
library(“PackageName”)
How to Check R Version ?
R.version
How to clear console in RStudio
ctrl + L
How to know the current working Directory from Console?
getwd() Function
How Many Basic Datatypes are in R ?
Total Five Data Types :
1.Char
2.Integer
3.Numeric(Real or Float)
4.Logical
5.Complex
How Many Types of Data Structures are in R Language ?
- Atomic Vector
- List
- Matrix
- Data Frame
- Factor
How to create an integer only Variable ?
We have to use
L option after value
my_integer = 48L
L indicates its an integer value
How to Create Logic Variable
my_logic = TRUE
Ways to create an vector in R ?
We have three ways :
myvect1 = c(1L, 2L, 3L)
myvect2=1:10
myvect3=seq(from=1, to=10, by=2)
What is atomic Vector ?
Atomic vector is an Homogenous data structure , it is used to create Single Dimension Arrays of same types
What are the two functions to create a vector ?
c(10L, 20L,45L)
seq(from=1, to=10, by=1)
Which function is used to create a vector of all value types
c() function
How to know the number of elements in a vector
We have to use length function.
length(vector)
How to know the object type in a vector ?
We have to use class function.
typeof(vector)
How to know the type of data structure used ?
class(objectType)
What is the difference between class and typeof function in R?
The class function gives the data structure , while typeof method gives what type of data value in the object.
example -
mylst=list(c(1,2,3))
class(mylist) it gives , it is an object of class list
typeof(mylist) - it gives what type of value it contains, int char etc.
How to know the structure of vector ?
str(vector)
How to know the all null values in a vector
is.na(vector)
How to know whether a vector has the NA values or not
anyNA(vector)