Posts

Statistical Methods Lab ( R Language) PCCBL308 Semester 3 KTU BTech CB and CU 2024 Scheme - Dr Binu V P

  About Me Statistical Methods Lab ( R Language) PCCBL308 Course Details and Syllabus Introduction to R Download R Download R Studio Experiments Familiarization of R environment and R Studio. Installing and using packages. Practice basic R input/output commands and create simple R programs using variables/mathematical operations. R Variables Basic Data Types in R Basic Input and Output Functions in R Keywords in R Operators in R Sample Programs Basic Programs to Try - Assignment-1         3.Learn Control Statements Decision-Making Statements in R ( if , if else, switch) Iterative  statements ( for , while , repeat ) Sample Programs using Control Statements Programs to Try using control satements - Assignment-2            4.Write R programs using functions ( Functions, Recursive Functions) Functions  in R Programs to Try using functions- Assignment-3              5.Learn to ...

Introduction to R Programming Environment and RStudio

Image
  Experiment No. 1:  Introduction to R Programming Environment and RStudio Aim To familiarize students with the R programming environment, install and configure RStudio, install R packages, and execute basic R commands. Learning Objectives After completing this experiment, students will be able to: Install and configure R and RStudio. Understand the RStudio interface. Execute basic R commands. Create and run R scripts. Install and load R packages. Access package documentation and help resources. Manage the R workspace and working directory. Software Requirements Operating System: Windows/Linux/macOS R (latest stable version) RStudio Desktop Theory What is R? R is an open-source programming language and software environment widely used for: Statistical computing Data analysis Machine learning Data visualization Scientific research What is RStudio? RStudio is an Integrated Development Environment (IDE) for R that provides: Script editor Console Environment viewer Package manager...

Introduction to R

Image
  Introduction to R Programming Language Overview R is a powerful, open-source programming language and software environment designed primarily for statistical computing , data analysis , and graphical visualization . It was developed by Ross Ihaka and Robert Gentleman at the University of Auckland and is currently maintained by the R Foundation for Statistical Computing . R provides a rich collection of statistical and graphical techniques and has become one of the most widely used languages in Data Science , Machine Learning , Artificial Intelligence , Business Analytics , and Scientific Research . Unlike traditional programming languages, R is specifically designed to handle data efficiently and to generate high-quality graphical outputs. It is commonly used through RStudio , an Integrated Development Environment (IDE) that simplifies writing, executing, and managing R programs. Key Features of R 📌 Open Source and Free R is freely available under the GNU General Public Licen...

Basic Data Types in R and Type Conversion

  Basic Data Types in R and Type Conversion Introduction Data types specify the kind of values that can be stored and manipulated in a program. Since R is a dynamically typed language, variables do not need explicit declarations; the type is determined automatically based on the assigned value. Understanding data types and type conversion is essential because different operations require different types of data. R provides several built-in functions to identify and convert data types. Basic Data Types in R The fundamental (atomic) data types in R are: Numeric Integer Character Logical Complex Raw 1. Numeric Data Type Numeric values represent decimal numbers (double precision). Example x <- 25.6 y <- 100 print(x) print(y) Output [1] 25.6 [1] 100 Characteristics Used for real numbers. Default type for numbers in R. Supports arithmetic operations. 2. Integer Data Type Integers are whole numbers. An integer is created by appending L to the ...