Session Materials
Lesson 1
Agenda
- Speakers Introduction.
- Website and Code of Conduct Overview
- R Knowledge and Experience Assessment ~ “We will go as fast as the slowest person in the room”
- R Exploration
- How to work within a project
- Open a quarto file
- Data Import
- Types of data
- Respond our survey
How to download R and R studio (We need both)
Data Import
Click on this link and download the data: Taylor Data
Store it in your
raw_data
folder
Types of Data
Integer: Integers are whole numbers without any decimal or fractional parts. They are used to represent counts or discrete quantities. In R, integer values are represented by the integer data type.
Numeric (or Double): Numeric data, also known as double precision floating-point numbers, can store both integer and decimal values. Numeric data is commonly used for continuous measurements and calculations. In R, numeric values are represented by the numeric data type. Character: Character data, also known as string data, represents text values. Character data is used to store text or categorical information. For example, names, addresses, categories, etc.
Logical (LGL): Logical data represents binary values, typically TRUE or FALSE. Logical data is often used for conditions or Boolean operations. For example, whether an event occurred (TRUE) or not (FALSE), whether a condition is met (TRUE) or not (FALSE), etc.
Factor: Factor data is used to represent categorical variables with a fixed number of levels or categories. Factors are stored as integers, where each integer corresponds to a specific level or category. Factor data is useful for statistical analysis and plotting categorical data. For example, gender (Male, Female), education level (High School, College, University), etc.