SlideShare a Scribd company logo
1 of 33
DataAnalysis inWF ED
Class Meeting 2, 28 August 2017
 Spelling/punctuation
• Dave ≠ dave
• comma quotation – ,” –≠
quotation comma – “,
 Object names are
letters, numbers and the
dot or underline
characters and start with
a letter or the dot not
followed by a number
• Dave
• Dave.one
• Dave_one
 Spelling/punctuation
• Dave ≠ dave
• comma quotation – ,” – ≠
quotation comma – “,
 Object names are
letters, numbers and the
dot or underline
characters and start with
a letter or the dot not
followed by a number
• Dave
• Dave.one
• Dave_one
 Comments begin with
hashtag, are never
executed, but are
important
• #This is a comment
 Use “assignment”
operator <- (left arrow
and dash) not =
• As in a <- b, which means
“b replaces a”
 RScripts help
reproduction, so save
them within your project
 Numeric – Decimal numbers in R.The default
computational data type (e.g., 24.54).
 Integer – Whole numbers in R (e.g., 24).
 Character – Used to represent string of values
in R. Arithmetic operations are not
possible (e.g., “david”, “245” can’t be added).
 Factor – Small number of integers with
corresponding character values used when
factor is displayed.
 Logical – Returned based on the “truth” of a
statement (eitherTRUE or FALSE).
class (objectname)
Returns the data type of the object
If the object, dd, is numeric, then the command,
class(dd)
returns “numeric”
If the object, bb, is character, the the command
Class(bb)
returns “character”
typeof(objectname)
Returns the data type of the object
If the object, dd, is numeric, then the command,
typeof(dd)
returns “numeric”
If the object, bb, is character, the the command
typeof(bb)
returns “character”
 Object dd to integer as new object dd1.
• dd1 <- as.integer(dd)
• class(dd1) will show “integer”.
 Object dd to a character as new object dd2.
• dd2 <- as.character(dd)
• class(dd2) will show “character”.
 Object dd to numeric as new object dd2.
• dd3 <- as.character(dd)
• class(dd2) will show “numeric”.
DataAnalysis inWF ED
Class Meeting 2, 28 August 2017

More Related Content

What's hot

Elementary data structure
Elementary data structureElementary data structure
Elementary data structureBiswajit Mandal
 
Counting Sort Lowerbound
Counting Sort LowerboundCounting Sort Lowerbound
Counting Sort Lowerbounddespicable me
 
R programming groundup-basic-section-i
R programming groundup-basic-section-iR programming groundup-basic-section-i
R programming groundup-basic-section-iDr. Awase Khirni Syed
 
R-programming-training-in-mumbai
R-programming-training-in-mumbaiR-programming-training-in-mumbai
R-programming-training-in-mumbaiUnmesh Baile
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in phpKamal Acharya
 
Radix and shell sort
Radix and shell sortRadix and shell sort
Radix and shell sortAaron Joaquin
 
Flash workshop Day Three
Flash workshop Day ThreeFlash workshop Day Three
Flash workshop Day ThreeLaw Chng
 
How To Use Higher Order Functions in Scala
How To Use Higher Order Functions in ScalaHow To Use Higher Order Functions in Scala
How To Use Higher Order Functions in ScalaBoldRadius Solutions
 
Introduction to lambda calculus
Introduction to lambda calculusIntroduction to lambda calculus
Introduction to lambda calculusAfaq Siddiqui
 

What's hot (12)

Elementary data structure
Elementary data structureElementary data structure
Elementary data structure
 
Counting Sort Lowerbound
Counting Sort LowerboundCounting Sort Lowerbound
Counting Sort Lowerbound
 
R programming groundup-basic-section-i
R programming groundup-basic-section-iR programming groundup-basic-section-i
R programming groundup-basic-section-i
 
R-programming-training-in-mumbai
R-programming-training-in-mumbaiR-programming-training-in-mumbai
R-programming-training-in-mumbai
 
Working with arrays in php
Working with arrays in phpWorking with arrays in php
Working with arrays in php
 
Counting sort
Counting sortCounting sort
Counting sort
 
Radix and shell sort
Radix and shell sortRadix and shell sort
Radix and shell sort
 
Python dictionary
Python   dictionaryPython   dictionary
Python dictionary
 
Flash workshop Day Three
Flash workshop Day ThreeFlash workshop Day Three
Flash workshop Day Three
 
How To Use Higher Order Functions in Scala
How To Use Higher Order Functions in ScalaHow To Use Higher Order Functions in Scala
How To Use Higher Order Functions in Scala
 
Introduction to lambda calculus
Introduction to lambda calculusIntroduction to lambda calculus
Introduction to lambda calculus
 
Lect 8(pointers) Zaheer Abbas
Lect 8(pointers) Zaheer AbbasLect 8(pointers) Zaheer Abbas
Lect 8(pointers) Zaheer Abbas
 

Similar to R syntax, including procedures for communicating data

WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016
WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016
WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016Penn State University
 
WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016
WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016
WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016Penn State University
 
Python advanced 2. regular expression in python
Python advanced 2. regular expression in pythonPython advanced 2. regular expression in python
Python advanced 2. regular expression in pythonJohn(Qiang) Zhang
 
Ruby data types and objects
Ruby   data types and objectsRuby   data types and objects
Ruby data types and objectsHarkamal Singh
 
Power of functions in a typed world
Power of functions in a typed worldPower of functions in a typed world
Power of functions in a typed worldDebasish Ghosh
 
Data Analysis with R (combined slides)
Data Analysis with R (combined slides)Data Analysis with R (combined slides)
Data Analysis with R (combined slides)Guy Lebanon
 
Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)Chia-Chi Chang
 
UNIT 1 - Revision of Basics - II.pptx
UNIT 1 - Revision of Basics - II.pptxUNIT 1 - Revision of Basics - II.pptx
UNIT 1 - Revision of Basics - II.pptxNishanSidhu2
 
316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasexabhaysonone0
 
20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in R20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in RKazuki Yoshida
 
R_CheatSheet.pdf
R_CheatSheet.pdfR_CheatSheet.pdf
R_CheatSheet.pdfMariappanR3
 

Similar to R syntax, including procedures for communicating data (20)

WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016
WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016
WF ED 540, Class Meeting 2 - R Commands & Syntax, 2016
 
WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016
WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016
WF ED 540, Class Meeting 2 - Identifying & converting data types, 2016
 
Ggplot2 v3
Ggplot2 v3Ggplot2 v3
Ggplot2 v3
 
Python advanced 2. regular expression in python
Python advanced 2. regular expression in pythonPython advanced 2. regular expression in python
Python advanced 2. regular expression in python
 
Working with shapes
Working with shapesWorking with shapes
Working with shapes
 
Ruby data types and objects
Ruby   data types and objectsRuby   data types and objects
Ruby data types and objects
 
Power of functions in a typed world
Power of functions in a typed worldPower of functions in a typed world
Power of functions in a typed world
 
Data Analysis with R (combined slides)
Data Analysis with R (combined slides)Data Analysis with R (combined slides)
Data Analysis with R (combined slides)
 
R training2
R training2R training2
R training2
 
Regular Expressions
Regular ExpressionsRegular Expressions
Regular Expressions
 
Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)Learning notes of r for python programmer (Temp1)
Learning notes of r for python programmer (Temp1)
 
P3 2018 python_regexes
P3 2018 python_regexesP3 2018 python_regexes
P3 2018 python_regexes
 
UNIT 1 - Revision of Basics - II.pptx
UNIT 1 - Revision of Basics - II.pptxUNIT 1 - Revision of Basics - II.pptx
UNIT 1 - Revision of Basics - II.pptx
 
316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex316_16SCCCS4_2020052505222431.pptdatabasex
316_16SCCCS4_2020052505222431.pptdatabasex
 
L5 array
L5 arrayL5 array
L5 array
 
20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in R20130222 Data structures and manipulation in R
20130222 Data structures and manipulation in R
 
R_CheatSheet.pdf
R_CheatSheet.pdfR_CheatSheet.pdf
R_CheatSheet.pdf
 
Regular expressions
Regular expressionsRegular expressions
Regular expressions
 
Basics R.ppt
Basics R.pptBasics R.ppt
Basics R.ppt
 
Sql server lab_2
Sql server lab_2Sql server lab_2
Sql server lab_2
 

More from Penn State University

Artificial Intelligence and the Future of Work
Artificial Intelligence and the Future of WorkArtificial Intelligence and the Future of Work
Artificial Intelligence and the Future of WorkPenn State University
 
Validity of conclusions, internal validity, and external validity; research d...
Validity of conclusions, internal validity, and external validity; research d...Validity of conclusions, internal validity, and external validity; research d...
Validity of conclusions, internal validity, and external validity; research d...Penn State University
 
Validity of Conclusions & Generalizations
Validity of Conclusions & GeneralizationsValidity of Conclusions & Generalizations
Validity of Conclusions & GeneralizationsPenn State University
 
Sharing Science: Tools for Improving our Research, Teaching, and Impact
Sharing Science: Tools for Improving our Research, Teaching, and ImpactSharing Science: Tools for Improving our Research, Teaching, and Impact
Sharing Science: Tools for Improving our Research, Teaching, and ImpactPenn State University
 
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the courseWF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the coursePenn State University
 
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017Penn State University
 
WF ED 540 - Class Meeting 7 - Fall Semester 2017
WF ED 540 - Class Meeting 7 - Fall Semester 2017WF ED 540 - Class Meeting 7 - Fall Semester 2017
WF ED 540 - Class Meeting 7 - Fall Semester 2017Penn State University
 
WF ED 540, Class Meeting 5, Fall Semester 2017
WF ED 540, Class Meeting 5, Fall Semester 2017WF ED 540, Class Meeting 5, Fall Semester 2017
WF ED 540, Class Meeting 5, Fall Semester 2017Penn State University
 
WF ED 540 - Class Meeting 3 - Fall Semester 2017
WF ED 540 - Class Meeting 3 - Fall Semester 2017WF ED 540 - Class Meeting 3 - Fall Semester 2017
WF ED 540 - Class Meeting 3 - Fall Semester 2017Penn State University
 
Introduction to WF ED 540, Data Analysis, Fall 2017
Introduction to WF ED 540, Data Analysis, Fall 2017Introduction to WF ED 540, Data Analysis, Fall 2017
Introduction to WF ED 540, Data Analysis, Fall 2017Penn State University
 
Bob Game - Photos for a Celebration of Life
Bob Game - Photos for a Celebration of LifeBob Game - Photos for a Celebration of Life
Bob Game - Photos for a Celebration of LifePenn State University
 
In Preparation for 5 April UCWHRE Meeting
In Preparation for 5 April UCWHRE MeetingIn Preparation for 5 April UCWHRE Meeting
In Preparation for 5 April UCWHRE MeetingPenn State University
 
Structural Model of Topics in Academy of Human Resource Development Journals,...
Structural Model of Topics in Academy of Human Resource Development Journals,...Structural Model of Topics in Academy of Human Resource Development Journals,...
Structural Model of Topics in Academy of Human Resource Development Journals,...Penn State University
 
Linking Production, Consumption, Employment, & Skills
Linking Production, Consumption, Employment,  & SkillsLinking Production, Consumption, Employment,  & Skills
Linking Production, Consumption, Employment, & SkillsPenn State University
 

More from Penn State University (20)

Artificial Intelligence and the Future of Work
Artificial Intelligence and the Future of WorkArtificial Intelligence and the Future of Work
Artificial Intelligence and the Future of Work
 
Research Design
Research DesignResearch Design
Research Design
 
Validity of conclusions, internal validity, and external validity; research d...
Validity of conclusions, internal validity, and external validity; research d...Validity of conclusions, internal validity, and external validity; research d...
Validity of conclusions, internal validity, and external validity; research d...
 
Validity of Conclusions & Generalizations
Validity of Conclusions & GeneralizationsValidity of Conclusions & Generalizations
Validity of Conclusions & Generalizations
 
Evidence
EvidenceEvidence
Evidence
 
Research Design
Research DesignResearch Design
Research Design
 
WF ED 540 Hypothesis Testing - 2018
WF ED 540 Hypothesis Testing - 2018WF ED 540 Hypothesis Testing - 2018
WF ED 540 Hypothesis Testing - 2018
 
Some Research Concepts
Some Research ConceptsSome Research Concepts
Some Research Concepts
 
Sharing Science: Tools for Improving our Research, Teaching, and Impact
Sharing Science: Tools for Improving our Research, Teaching, and ImpactSharing Science: Tools for Improving our Research, Teaching, and Impact
Sharing Science: Tools for Improving our Research, Teaching, and Impact
 
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the courseWF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
 
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
 
WF ED 540 - Class Meeting 7 - Fall Semester 2017
WF ED 540 - Class Meeting 7 - Fall Semester 2017WF ED 540 - Class Meeting 7 - Fall Semester 2017
WF ED 540 - Class Meeting 7 - Fall Semester 2017
 
WF ED 540, Class Meeting 5, Fall Semester 2017
WF ED 540, Class Meeting 5, Fall Semester 2017WF ED 540, Class Meeting 5, Fall Semester 2017
WF ED 540, Class Meeting 5, Fall Semester 2017
 
WF ED 540, Data Analysis, Fall 2017
WF ED 540, Data Analysis, Fall 2017WF ED 540, Data Analysis, Fall 2017
WF ED 540, Data Analysis, Fall 2017
 
WF ED 540 - Class Meeting 3 - Fall Semester 2017
WF ED 540 - Class Meeting 3 - Fall Semester 2017WF ED 540 - Class Meeting 3 - Fall Semester 2017
WF ED 540 - Class Meeting 3 - Fall Semester 2017
 
Introduction to WF ED 540, Data Analysis, Fall 2017
Introduction to WF ED 540, Data Analysis, Fall 2017Introduction to WF ED 540, Data Analysis, Fall 2017
Introduction to WF ED 540, Data Analysis, Fall 2017
 
Bob Game - Photos for a Celebration of Life
Bob Game - Photos for a Celebration of LifeBob Game - Photos for a Celebration of Life
Bob Game - Photos for a Celebration of Life
 
In Preparation for 5 April UCWHRE Meeting
In Preparation for 5 April UCWHRE MeetingIn Preparation for 5 April UCWHRE Meeting
In Preparation for 5 April UCWHRE Meeting
 
Structural Model of Topics in Academy of Human Resource Development Journals,...
Structural Model of Topics in Academy of Human Resource Development Journals,...Structural Model of Topics in Academy of Human Resource Development Journals,...
Structural Model of Topics in Academy of Human Resource Development Journals,...
 
Linking Production, Consumption, Employment, & Skills
Linking Production, Consumption, Employment,  & SkillsLinking Production, Consumption, Employment,  & Skills
Linking Production, Consumption, Employment, & Skills
 

Recently uploaded

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

R syntax, including procedures for communicating data

  • 1. DataAnalysis inWF ED Class Meeting 2, 28 August 2017
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.  Spelling/punctuation • Dave ≠ dave • comma quotation – ,” –≠ quotation comma – “,  Object names are letters, numbers and the dot or underline characters and start with a letter or the dot not followed by a number • Dave • Dave.one • Dave_one
  • 15.  Spelling/punctuation • Dave ≠ dave • comma quotation – ,” – ≠ quotation comma – “,  Object names are letters, numbers and the dot or underline characters and start with a letter or the dot not followed by a number • Dave • Dave.one • Dave_one  Comments begin with hashtag, are never executed, but are important • #This is a comment  Use “assignment” operator <- (left arrow and dash) not = • As in a <- b, which means “b replaces a”  RScripts help reproduction, so save them within your project
  • 16.
  • 17.
  • 18.  Numeric – Decimal numbers in R.The default computational data type (e.g., 24.54).  Integer – Whole numbers in R (e.g., 24).  Character – Used to represent string of values in R. Arithmetic operations are not possible (e.g., “david”, “245” can’t be added).
  • 19.  Factor – Small number of integers with corresponding character values used when factor is displayed.  Logical – Returned based on the “truth” of a statement (eitherTRUE or FALSE).
  • 20. class (objectname) Returns the data type of the object If the object, dd, is numeric, then the command, class(dd) returns “numeric” If the object, bb, is character, the the command Class(bb) returns “character”
  • 21. typeof(objectname) Returns the data type of the object If the object, dd, is numeric, then the command, typeof(dd) returns “numeric” If the object, bb, is character, the the command typeof(bb) returns “character”
  • 22.  Object dd to integer as new object dd1. • dd1 <- as.integer(dd) • class(dd1) will show “integer”.  Object dd to a character as new object dd2. • dd2 <- as.character(dd) • class(dd2) will show “character”.  Object dd to numeric as new object dd2. • dd3 <- as.character(dd) • class(dd2) will show “numeric”.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33. DataAnalysis inWF ED Class Meeting 2, 28 August 2017