Skip to content

Commit

Permalink
ica7
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsocko committed Jul 19, 2024
1 parent cd6b508 commit 9a101f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/boxoffice.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rank,title,title_short,amount,amount_text1,Star Wars: The Last Jedi,Star Wars,71565498,$71 2,Jumanji: Welcome to the Jungle,Jumanji,36169328,$36 3,Pitch Perfect 3,Pitch Perfect 3,19928525,$19 4,The Greatest Showman,Greatest Showman,8805843,$8 5,Ferdinand,Ferdinand,7316746,$7
Expand Down
7 changes: 7 additions & 0 deletions week02/ica7.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
library(rstudioapi)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))

boxoffice <- read.csv("../data/boxoffice.csv")
head(boxoffice)
swAmt <- boxoffice[boxoffice$title == 'Star Wars: The Last Jedi', 'amount']
swAmt

0 comments on commit 9a101f9

Please sign in to comment.