R Programming
R Programming
KEY FEATURES:
1.Open Source
2.Data visualization
3.Extensive packages
Programming Paradigm
1) Functional Programming:
● First-Class Functions: In R, functions are first-class objects, which means you can pass
them as arguments to other functions, return them as values from other functions, and
assign them to variables.
2) Vectorized Programming:
● Functions like apply(), lapply(), and sapply() are often used for vectorized
operations.
3) Object-Oriented Programming (OOP):
● S3 Classes: Simple and flexible. Objects have a class attribute that defines their type,
and methods are often generic functions that behave differently based on the class of
their arguments.
● S4 Classes: More formal and structured than S3 classes. They allow for stricter
object-oriented design.
4)Statistical Programming:
● Operators
Language ● Control Structures
Constructs ● Functions