Recommended
PPTX
Introduction To Programming In R for data analyst
PPTX
Programming_Input_Output[1] computer .pptx
PPTX
basic commands of R programming for code
PDF
Input and output in c language c programming
PPTX
data analysis using R programming language
PPTX
R You Ready? An I/O Psychologist's Guide to R and Rstudio: Part 1
PPTX
Moving from Data Scientist To Data Analyst .pptx
PPTX
POWER POINT FILE INPUT AND OUTPUT PRESENTATION.pptx
PPTX
Data Handling in R language basic concepts.pptx
PPTX
Unit I - 1R introduction to R program.pptx
PPTX
Building Simple C Program
PPTX
CT - Input and Output Statements in C.pptx
PDF
R Programming: Importing Data In R
PDF
Data analystics with R module 3 cseds vtu
PPT
PPTX
Workshop presentation hands on r programming
PPTX
r language ...basic introduction Unit 2.pptx
PPTX
Introduction to R _IMPORTANT FOR DATA ANALYTICS
PDF
Quantitative Data Analysis using R
PPT
R Text-Based Data I/O and Data Frame Access and Manupulation
PPTX
program to create bell curve of a random normal distribution
PPT
How to obtain and install R.ppt
PPT
Basics.pptNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
PPT
PPT
Introduction to R for Data Science Technology
PPTX
PDF
R Programming: Export/Output Data In R
PPTX
PPTX
Drug Distribution in Pharmacology: Mechanisms, Barriers, Factors & Volume of ...
PPTX
"Aristotle : Father Of Western Philosophy"
More Related Content
PPTX
Introduction To Programming In R for data analyst
PPTX
Programming_Input_Output[1] computer .pptx
PPTX
basic commands of R programming for code
PDF
Input and output in c language c programming
PPTX
data analysis using R programming language
PPTX
R You Ready? An I/O Psychologist's Guide to R and Rstudio: Part 1
PPTX
Moving from Data Scientist To Data Analyst .pptx
PPTX
POWER POINT FILE INPUT AND OUTPUT PRESENTATION.pptx
Similar to Input_and_Output_in_R_Programming_Normal.pptx
PPTX
Data Handling in R language basic concepts.pptx
PPTX
Unit I - 1R introduction to R program.pptx
PPTX
Building Simple C Program
PPTX
CT - Input and Output Statements in C.pptx
PDF
R Programming: Importing Data In R
PDF
Data analystics with R module 3 cseds vtu
PPT
PPTX
Workshop presentation hands on r programming
PPTX
r language ...basic introduction Unit 2.pptx
PPTX
Introduction to R _IMPORTANT FOR DATA ANALYTICS
PDF
Quantitative Data Analysis using R
PPT
R Text-Based Data I/O and Data Frame Access and Manupulation
PPTX
program to create bell curve of a random normal distribution
PPT
How to obtain and install R.ppt
PPT
Basics.pptNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
PPT
PPT
Introduction to R for Data Science Technology
PPTX
PDF
R Programming: Export/Output Data In R
PPTX
Recently uploaded
PPTX
Drug Distribution in Pharmacology: Mechanisms, Barriers, Factors & Volume of ...
PPTX
"Aristotle : Father Of Western Philosophy"
PPTX
28 January 2026 Rebecca Frankum Are high-stakes exams and assessments still r...
PDF
Lamarckism: Theory of Evolution, Principles, Examples, Objections and Neo-Lam...
PPTX
Central Line Associated Bloodstream Infection
PPTX
MENTAL STATUS EXAMINATION Part-1.Shilpa hotakar.pptx
PPTX
Grade 9 and 10 learner Fuse and Switch.pptx
PPTX
Appreciations - Jan 26 01.pptxkkkmmkmkmkmkm
PPTX
Definition of communication skills and it's process.
PPTX
Day 2 ppt english.powerpoint presentation ppt
PDF
Information about Presentation strategies
PPTX
Unit 3- Culture.pptx....................
PDF
U.S. Departments of Education and Treasury fact sheet
PDF
Fast Followers Project, Embedding Net Zero into Wakefield Metropolitan Distri...
PPTX
" Jaya : Silence as Resistance " - That long silence
PDF
NCA New Family Orientation 2026 Dosemagen.pdf
PPTX
TLE 8 W1 Q4 D2.pptx COMMON FLOOR PLAN SYMBOLS PLUMBING SYMBOLS
PPTX
Exploring Higher education and its pathways
PDF
Oscillations /Revision notes prepared by K sandeep swamy (Msc,BEd)/For online...
PPTX
Poster Based Ethical Reflection - Dharma and Values Poster.pptx
Input_and_Output_in_R_Programming_Normal.pptx 1. Input and Output in R
Programming
• Understanding how R interacts with users and
files for input and output operations.
2. Introduction
• Input and Output (I/O) are essential for
interacting with the user and external data
sources.
• • Input: To read data from the user or files.
• • Output: To display or save data.
3. Types of Input and Output
• Input:
• • Keyboard input
• • File input
• • Data frame import
• Output:
• • Console output
• • File output
• • Plot output
4. Keyboard Input Functions
• • readline(): Reads a line from the keyboard
• Example:
• name <- readline(prompt='Enter your name: ')
• print(paste('Hello', name))
• • scan(): Reads multiple numeric or character
inputs
• nums <- scan()
• print(nums)
5. Reading Data from Files
• • read.table():
• data <- read.table('data.txt', header=TRUE)
• • read.csv():
• csv_data <- read.csv('file.csv')
• • read_excel() (readxl library):
• library(readxl)
• excel_data <- read_excel('data.xlsx')
6. Writing Data to Files
• • write.table():
• write.table(data, 'output.txt', sep='t')
• • write.csv():
• write.csv(data, 'output.csv',
row.names=FALSE)
7. Output Display Functions
• • print(): Basic output
• print('Hello World')
• • cat(): Concatenate and print
• cat('The sum is:', 5 + 3, 'n')
• • message() and warning(): Display system
messages
8. File Handling Example
• data <- read.csv('input.csv')
• summary(data)
• write.csv(summary(data),
'summary_output.csv')
9. 10. Summary
• • readline() and scan() for user input
• • read.csv(), read.table() for file input
• • print() and cat() for output
• • write.csv(), write.table() for saving data
• • Graphs saved using png() or pdf()
11. References
• • R Documentation: https://www.r-project.org
• • TutorialsPoint: R Input and Output
• • GeeksforGeeks: R Input/Output