SlideShare a Scribd company logo
1 of 15
DataAnalysis inWF ED
Class Meeting 2, 30 August 2016
 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
dataframe = matrix
A matrix can hold only numeric data.
A dataframe can hold any kind of data.
(e.g., character data)
 Use arithmetic operators (add, subtract,
multiply, divide, square root, raise a number
to a power) – make sure you can control the
order of operation.
 Create objects (scalars, vectors, matrices)
and perform arithmetic operations with
objects (including calculating the mean
value).
DataAnalysis inWF ED
Class Meeting 2, 30 August 2016

More Related Content

Similar to Analyzing and manipulating data in R

Similar to Analyzing and manipulating data in R (20)

Bioinformatica p2-p3-introduction
Bioinformatica p2-p3-introductionBioinformatica p2-p3-introduction
Bioinformatica p2-p3-introduction
 
Bioinformatics p2-p3-perl-regexes v2014
Bioinformatics p2-p3-perl-regexes v2014Bioinformatics p2-p3-perl-regexes v2014
Bioinformatics p2-p3-perl-regexes v2014
 
Aggregate.pptx
Aggregate.pptxAggregate.pptx
Aggregate.pptx
 
Regular Expressions in Google Analytics
Regular Expressions in Google AnalyticsRegular Expressions in Google Analytics
Regular Expressions in Google Analytics
 
Data exploration in r
Data exploration in rData exploration in r
Data exploration in r
 
Lec2
Lec2Lec2
Lec2
 
1. chapter i(pasw)
1. chapter i(pasw)1. chapter i(pasw)
1. chapter i(pasw)
 
Introduction to R.pptx
Introduction to R.pptxIntroduction to R.pptx
Introduction to R.pptx
 
Ruby Programming
Ruby ProgrammingRuby Programming
Ruby Programming
 
Introduction - Using Stata
Introduction - Using StataIntroduction - Using Stata
Introduction - Using Stata
 
Research 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeXResearch 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeX
 
L5 array
L5 arrayL5 array
L5 array
 
Basics R.ppt
Basics R.pptBasics R.ppt
Basics R.ppt
 
Ggplot2 v3
Ggplot2 v3Ggplot2 v3
Ggplot2 v3
 
Exploratory data analysis using r
Exploratory data analysis using rExploratory data analysis using r
Exploratory data analysis using r
 
An Overview of Naïve Bayes Classifier
An Overview of Naïve Bayes Classifier An Overview of Naïve Bayes Classifier
An Overview of Naïve Bayes Classifier
 
Bioinformatics p2-p3-perl-regexes v2013-wim_vancriekinge
Bioinformatics p2-p3-perl-regexes v2013-wim_vancriekingeBioinformatics p2-p3-perl-regexes v2013-wim_vancriekinge
Bioinformatics p2-p3-perl-regexes v2013-wim_vancriekinge
 
Quick start learn dax basics in 30 minutes
Quick start   learn dax basics in 30 minutesQuick start   learn dax basics in 30 minutes
Quick start learn dax basics in 30 minutes
 
Basics.ppt
Basics.pptBasics.ppt
Basics.ppt
 
Introduction
IntroductionIntroduction
Introduction
 

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

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Analyzing and manipulating data in R

  • 1. DataAnalysis inWF ED Class Meeting 2, 30 August 2016
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.  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
  • 9.  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
  • 10.
  • 11.
  • 12. dataframe = matrix A matrix can hold only numeric data. A dataframe can hold any kind of data. (e.g., character data)
  • 13.
  • 14.  Use arithmetic operators (add, subtract, multiply, divide, square root, raise a number to a power) – make sure you can control the order of operation.  Create objects (scalars, vectors, matrices) and perform arithmetic operations with objects (including calculating the mean value).
  • 15. DataAnalysis inWF ED Class Meeting 2, 30 August 2016