Code
library(tidyverse)
Error in library(tidyverse): there is no package called 'tidyverse'
Code
::opts_chunk$set(echo = TRUE) knitr
Ken Docekal
February 23, 2023
Error in library(tidyverse): there is no package called 'tidyverse'
Error in setwd("C:/Users/User/Documents/DACSS/697/Social_Networks_Spring_2023/posts/"): cannot change working directory
Error in read_csv("_data/got/got_like_dislike.csv"): could not find function "read_csv"
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
Error in eval(expr, envir, enclos): object 'gotDislike' not found
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found
Tests below show the data is unimodal, undirected, and unweighted
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found
Error in eval(expr, envir, enclos): object 'gotDislike.ig' not found
---
title: "Week 1 Challenge"
author: "Ken Docekal"
description: "Loading Data and Creating a Network"
date: "02/23/2023"
format:
html:
toc: true
code-fold: true
code-copy: true
code-tools: true
# editor: visual
categories:
- challenge_1
---
```{r, message=FALSE}
#| label: setup
#| warning: false
library(tidyverse)
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
getwd()
```
```{r}
setwd("C:/Users/User/Documents/DACSS/697/Social_Networks_Spring_2023/posts/")
```
```{r}
gotDislike <- read_csv("_data/got/got_like_dislike.csv")
```
```{r}
library(igraph)
```
```{r}
gotDislike.ig <- graph_from_data_frame(gotDislike, directed = FALSE)
```
```{r}
plot.igraph(gotDislike.ig)
```
Tests below show the data is unimodal, undirected, and unweighted
```{r}
is_directed(gotDislike.ig)
is_weighted(gotDislike.ig)
is_bipartite(gotDislike.ig)
```