This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var width = 400, | |
height = 300; | |
//padding = 1.5, // separation between same-color nodes | |
//clusterPadding = 6, // separation between different-color nodes | |
//maxRadius = 15; | |
//var n = 67, // total number of nodes | |
// m = 3; // number of distinct clusters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing Necessary Packages | |
# For Web Scraping Transcripts | |
library(rvest) | |
library(curl) | |
# For Data Frame Manipulation | |
library(dplyr) | |
library(tidyr) | |
library(stringr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Counting words per character | |
RO_full2 <- RO_full %>% | |
mutate(count = stri_count(Words, regex = "\\S+")) %>% | |
group_by(Character, Gender) %>% | |
summarise(Total_Words = sum(count)) %>% | |
filter(!(Gender == "unknown")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Character | Sex | speaking_turns | Total_Words | radius | diameter | ||
---|---|---|---|---|---|---|---|
1 | Admiral Raddus | male | 13 | 128 | 6.38307648642292 | 12.7661529728458 | |
2 | Announcer | male | 3 | 46 | 3.82651992866291 | 7.65303985732581 | |
3 | Antenna Computer | female | 3 | 19 | 2.45924537968297 | 4.91849075936593 | |
4 | Bail Organa | male | 5 | 83 | 5.14001172695692 | 10.2800234539138 | |
5 | Baze Malbus | male | 32 | 168 | 7.31273279143145 | 14.6254655828629 | |
6 | Blue Squadron 1 | male | 2 | 5 | 1.26156626101008 | 2.52313252202016 | |
7 | Blue Squadron 2 | male | 1 | 3 | 0.97720502380584 | 1.95441004761168 | |
8 | Blue Squadron 3 | male | 1 | 4 | 1.12837916709551 | 2.25675833419103 | |
9 | Blue Squadron 4 | male | 1 | 6 | 1.38197659788534 | 2.76395319577068 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Month | Sales | |
---|---|---|
Jan | 87 | |
Feb | 3 | |
Mar | 89 | |
Apr | 56 | |
May | 1 | |
Jun | 17 | |
Jul | 59 | |
Aug | 43 | |
Sep | 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Month | Sales | Fruit | |
---|---|---|---|
Jan | 87 | strawberry | |
Feb | 3 | strawberry | |
Mar | 89 | strawberry | |
Apr | 56 | strawberry | |
May | 1 | strawberry | |
Jun | 17 | strawberry | |
Jul | 59 | strawberry | |
Aug | 43 | strawberry | |
Sep | 16 | strawberry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Month | Sales | Fruit | Year | |
---|---|---|---|---|
Jan | 87 | strawberry | 2016 | |
Feb | 3 | strawberry | 2016 | |
Mar | 89 | strawberry | 2016 | |
Apr | 56 | strawberry | 2016 | |
May | 1 | strawberry | 2016 | |
Jun | 17 | strawberry | 2016 | |
Jul | 59 | strawberry | 2016 | |
Aug | 43 | strawberry | 2016 | |
Sep | 16 | strawberry | 2016 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jan | 87 | strawberry | 2016 | |
---|---|---|---|---|
Feb | 3 | strawberry | 2016 | |
Mar | 89 | strawberry | 2016 | |
Apr | 56 | strawberry | 2016 | |
May | 1 | strawberry | 2016 | |
Jun | 17 | strawberry | 2016 | |
Jul | 59 | strawberry | 2016 | |
Aug | 43 | strawberry | 2016 | |
Sep | 16 | strawberry | 2016 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.axis text { | |
font: 10px sans-serif; | |
} | |
.axis line, | |
.axis path { | |
fill: none; | |
stroke: #000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jan | 87 | strawberry | |
---|---|---|---|
Feb | 3 | strawberry | |
Mar | 89 | strawberry | |
Apr | 56 | strawberry | |
May | 1 | strawberry | |
Jun | 17 | strawberry | |
Jul | 59 | strawberry | |
Aug | 43 | strawberry | |
Sep | 16 | strawberry |
OlderNewer