Skip to content

Commit

Permalink
vault backup: 2023-09-12 20:43:48
Browse files Browse the repository at this point in the history
Affected files:
content/notes/university/cs3002-lab1.md
content/notes/university/year-3.md
content/notes/university/year3/cs3001/cs3001.md
content/notes/university/year3/cs3002/cs3002-lab1.md
content/notes/university/year3/cs3002/cs3002.md
content/notes/university/year3/cs3003/cs3003.md
content/notes/university/year3/cs3072/fyp-supervisor.md
content/notes/university/year3/cs3609/cs3609.md
content/templates/template-university.md
  • Loading branch information
pietraferreira committed Sep 12, 2023
1 parent db4c745 commit 3e16170
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 39 deletions.
30 changes: 0 additions & 30 deletions content/notes/university/cs3002-lab1.md

This file was deleted.

12 changes: 11 additions & 1 deletion content/notes/university/year-3.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: "Year 3 - Modules"
cssclass: dashboard
tags:
- university
type: hub
year: '3'
---
<div style="display: flex; align-items: center;">
<div style="margin-right: 20px;">
Expand Down Expand Up @@ -45,6 +47,14 @@ if (r>0 && r<q) {
dv.paragraph(html)
```

```dataview
TABLE dateformat(file.mtime, "dd.MM.yyyy - HH:mm") AS "Last modified"
FROM ""
WHERE year = "3"
SORT file.mtime DESC
LIMIT 25
```

# CS3072 - Final Year Project
Lecturer: Fang Wang

Expand Down Expand Up @@ -85,7 +95,7 @@ Lecturer: Allan Tucker
- 💼 Lecture notes
- [[Cloud backup]]
- 🔬 Lab notes
- [Lab 1 - Introduction to R](notes/university/cs3002-lab1.md).
- [Lab 1 - Introduction to R](cs3002-lab1.md).
- 📚 Reading list
- [[Sally Smith]]
- Assessments
Expand Down
5 changes: 3 additions & 2 deletions content/notes/university/year3/cs3001/cs3001.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

---
title: "CS3001 - Advanced Topics"
tags:
- university/cs3001
- university
lecturer:
module: cs3001
created: 2023-09-12
type: hub
year: '3'
---
---
# Lecture Notes
Expand Down
63 changes: 63 additions & 0 deletions content/notes/university/year3/cs3002/cs3002-lab1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: "CS3002 - Introduction to R"
tags:
- university
module: cs3002
lecturer: 'Allan Tucker'
created: 2023-09-12
type: lab
year: '3'
---
---
The lab sheet can be found [here](assets/university/year3/R_IntroLab_v3.pdf).

## Notes
- R is **case-sensitive**, so `view` doesn't work but `View` does.
- To create scatterplots:
- Column name:
- `plot(mydata$column1, mydata$column2)`
- Column location:
- `plot(mydata[,9], mydata[,11])`
- Histogram:
- `hist(mydata$temp)`
- Line plot:
- `plot(mydata$temp, type="l")`
- Plot colours, for example X and Y according to temperature:
- `plot(mydata$X, mydata$Y, col=mydata$temp)`
- Statistics:
- Mean, median, maximum and minimum:
- `meantemp = mean(mydata$temp)`
- Write to a file:
- `write.csv(meantemp, file = "output.csv")`
- Build a linear model:
```r
plot(mydata$temp, mydata$ISI)
lmfire=line(mydata$ISI~mydata$temp)
abline(coef(lmfire))
```


## R Cheatsheets
- [Graph Parameters CheatSheet](assets/university/year3/R_Graph_Parameters_CheatSheet.pdf).
- [Base R CheatSheet](assets/university/year3/Base_R_CheatSheet.pdf).
- [Data Transformation CheatSheet](assets/university/year3/R_Data_Transformation_CheatSheet.pdf).

## Commands
```r
mydata = read.csv('/Users/pietra/projects/university/year3/cs3002/lab1/forestfires.csv', sep=',')

plot(mydata)
View(mydata)

plot(mydata$column1, mydata$column2)
plot(mydata[,9], mydata[,11])
hist(mydata$temp)
plot(mydata$temp, type="l")
plot(mydata$X, mydata$Y, col=mydata$temp)
meantemp = mean(mydata$temp)
write.csv(meantemp, file = "output.csv")

plot(mydata$temp, mydata$ISI)
lmfire=line(mydata$ISI~mydata$temp)
abline(coef(lmfire))
```
5 changes: 3 additions & 2 deletions content/notes/university/year3/cs3002/cs3002.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
title: "CS3002 - AI"
tags:
- university/cs3002
module: ai
- university
module: cs3002
lecturer:
created: 2023-09-12
type: hub
year: '3'
---
---
# Lecture Notes
Expand Down
4 changes: 3 additions & 1 deletion content/notes/university/year3/cs3003/cs3003.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
title: "CS3003 - Software Engineering"
tags:
- university/cs3003
- university
lecturer:
module: cs3003
created: 2023-09-12
type: hub
year: '3'
---
---
# Lecture Notes
Expand Down
5 changes: 3 additions & 2 deletions content/notes/university/year3/cs3072/fyp-supervisor.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
title: "CS3072 - Supervisor"
tags:
- university/cs3072
module: fyp
- university
module: cs3072
lecturer: Fang Wang
created: 2023-09-11
type: info
year: '3'
---
---
<img src="https://www.brunel.ac.uk/people/people-images/rumyana-neykova/photo.jpg?v=20181024132901" width="75">
Expand Down
4 changes: 3 additions & 1 deletion content/notes/university/year3/cs3609/cs3609.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
title: "CS3609 - Cybersecurity"
tags:
- university/cs3609
- university
lecturer:
module: 'cs3609'
created: 2023-09-12
type: hub
year: '3'
---
---
# Lecture Notes
Expand Down
1 change: 1 addition & 0 deletions content/templates/template-university.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module:
lecturer:
<% tp.file.cursor(1) %>
created: <% tp.date.now("YYYY-MM-DD") %>
year: '3'
type:
---
---

0 comments on commit 3e16170

Please sign in to comment.