Tuesday 8 August 2017

Data Science tutorial Part 2 - Data Types

  1. Data Types
  1. In our project mainly we will use four datatypes
    1. Decimals values like 4.5 are called numerics.
    2. Natural numbers like 4L are called integers. Integers are also numerics.
    3. Boolean values (TRUE or FALSE or NA) are called logical.
    4. Text (or string) values are called characters.
  2. Class () function is useful to know the data type of variable.
  1. ls() function is useful to see list of variables in the workspace
  1. rm() function is useful to remove the variable from work space
  1. Coercion : If possible as.*() functions convert one datatype to other datatype
  2. Is.*() function useful to know the datatype of variable
  1. Complex data type
For more information about datatypes ,please refer http://www.r-tutor.com/r-introduction/basic-data-types

No comments:

Post a Comment