Posts

Showing posts from June, 2021

Objects & Data Types In R

Image
  Objects & Data Types In R #What are Objects in R?# There are several basic R objects and data types that we encounter frequently in our R programming. objects can be listed as: Numeric Integer Logical Complex Character   Data types can be Listed as: Vectors Lists  Matrices Data Frames  Factors    # Objects # Numeric Decimal values are called as numeric. If we assign decimal value to a variable , it will be of type Numeric . Even if we assign integer to a variable it will treat as numeric . ex. 3x = numeric Intege r In order to declare as integer , we invoke ' as.integer ' Numeric value can be invoked as integer . Logical A Logical value is often created via  Comparison between variables . ex.) x>y ans: True or False (It will use when we use the control structure.) standard logical operations are "&" (and), "|" (or), "!" (negation ) Complex A complex value is defined via pure imaginary value i. ex. 3 + 4i is complex Character A char...

Introduction to R programming

Image
  #Introduction to  R programming# In a field of data science to pursue your career you need to have some knowledge about R programming. R is a very easy language compare to other programming languages and scripting languages. BASICS OF R PROGRAMMING In this chapter we are going to learn three topics. HISTORY OF R HOW TO INSTALL R? THE R ENVIRONMENT # HISTORY OF R # R is implementation of S programming language . S is also a Statistical Programming language , Developed by John Chambers, Rick Becker and Allen Wilkes  of Bell laboratories. R was created by Ross Ihaka and Robert Gentleman at University of Auckland,  New Zealand . Currently R is developed by " R development Team ". # Installing R # All the details of R will be available from CRAN(Comprehensive R Archive Network) on this url: https://cran.r-project.org Go through the link and you will see the home page of CRAN and you can easily download it. This page will be open on CRAN, now you have to select yo...