challenge_1
Loading Data and Creating a Network
Author

Ken Docekal

Published

February 23, 2023

Code
library(tidyverse)
Error in library(tidyverse): there is no package called 'tidyverse'
Code
knitr::opts_chunk$set(echo = TRUE)
Code
getwd()
[1] "/home/runner/work/Social_Networks_Spring_2023/Social_Networks_Spring_2023/posts"
Code
setwd("C:/Users/User/Documents/DACSS/697/Social_Networks_Spring_2023/posts/")
Error in setwd("C:/Users/User/Documents/DACSS/697/Social_Networks_Spring_2023/posts/"): cannot change working directory
Code
gotDislike <- read_csv("_data/got/got_like_dislike.csv")
Error in read_csv("_data/got/got_like_dislike.csv"): could not find function "read_csv"
Code
library(igraph)

Attaching package: 'igraph'
The following objects are masked from 'package:stats':

    decompose, spectrum
The following object is masked from 'package:base':

    union
Code
gotDislike.ig <- graph_from_data_frame(gotDislike, directed = FALSE)
Error in eval(expr, envir, enclos): object 'gotDislike' not found
Code
plot.igraph(gotDislike.ig)
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found

Tests below show the data is unimodal, undirected, and unweighted

Code
is_directed(gotDislike.ig)
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found
Code
is_weighted(gotDislike.ig)
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found
Code
is_bipartite(gotDislike.ig)
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found