Publications by Rongen Zhang

Publish Document

17.01.2023

Flow control if-else for while function if-else An if statement consists of a logic condition (TRUE or FALSE) followed by one or more statements. # Template in words if(a logic condition) { Get inside the curly brackets and run this block when the condition is true } # Example x = 1 if(x == 1) { print("x equals 1") } ## [1] "x equals 1"...

3271 sym 1 tbl

Publish Document

17.01.2023

Recap The RStudio environment Basic operators Basic data types Define variables variable_name <- some_value target <- data Agenda Advanced data types Vector List Matrix Data frame R Data Types Numeric Character Logic Factor Vector: a set of values, all of the same data type List: a set of values, potentially with different data types Matri...

4540 sym

Lab - Data Import and Export

19.01.2023

Agenda Data input Data output Data summary Getting data into R Importing data into R is fairly simple. We can use built-in functions or libraries to read data from the following sources: Text file (.txt) Comma-separated values (.csv) Excel (.xlsx or .xls) Database table Common data formatting Regardless the sources, there are common character...

5040 sym R (9312 sym/29 pcs) 4 img

Document

19.01.2023

Agenda Histogram Bar plot Pie chart Scatter plot Load data We will use the same House Price dataset. You can go to Canvas - Sample Dataset Module to download the following data, or click on the following links. CSV file df<-read.table(file="/Users/sophia_zhang/Dropbox/Teaching/BI-2023-Spring/BI_2023Spring/HousePrices.csv", sep="...

1699 sym 12 img

Document

24.01.2023

Recap The RStudio environment Basic operators Basic data types Define variables variable_name <- some_value target <- data Agenda Advanced data types Vector List Matrix Data frame R Data Types Numeric Character Logic Factor Vector: a set of values, all of the same data type List: a set of values, potentially with different data types Matri...

4455 sym

Document

24.01.2023

Agenda Data input Data output Data summary Getting data into R Importing data into R is fairly simple. We can use built-in functions or libraries to read data from the following sources: Text file (.txt) Comma-separated values (.csv) Excel (.xlsx or .xls) Database table Common data formatting Regardless the sources, there are common character...

5050 sym R (9489 sym/29 pcs) 4 img

Document

25.01.2023

Agenda Introduction to ggplot2 Package (with Scatter Plot) Tree Map Box Plot Correlation Plot Introduction to ggplot Package ggplot is a powerful package for more advanced visualization. The functions in ggplot package build up a group in layer: starting with a simple graph -> adding additional elements/functions with +, one at a time. Load da...

4168 sym R (6298 sym/24 pcs) 17 img

BI-Lab01-Introduction to R and R Studio

28.12.2022

Agenda Set up R and RStudio Understand the layout and functionality of RStudio Experiment with basic R expressions and data types Introduction R is a programming environment uses a well-developed but simple programming language allows for rapid development of new tools according to user demand supports data analytics tasks Downloading and ins...

4990 sym 11 img

BI_Lab01_Intro to R

28.12.2022

Agenda Set up R and RStudio Understand the layout and functionality of RStudio Experiment with basic R expressions and data types Introduction R is a programming environment uses a well-developed but simple programming language allows for rapid development of new tools according to user demand supports data analytics tasks Downloading and ins...

4989 sym 11 img

UnstructuredDataMgmt-Summer2021

20.05.2021

CIS 4730Unstructured Data Management Lab: Intro to R Rongen Zhang Agenda Set up R and RStudio Understand the layout and functionality of RStudio Experiment with basic R expressions and data types Introduction R is a programming environment uses a well-developed but simple programming language allows for rapid development of new tools accordi...

5134 sym R (1423 sym/65 pcs) 11 img