Publications by Zane Dax
Star Trek DS9 Bechdel-Wallace Test
Bechdel-Wallace Test of Star Trek DS9 This data is testing if the episodes per season of the TV show Star Trek DS9 pass or fail the Bechdel-Wallace test. For more information check the Bechdel-test.md file. Simple criteria for the test to end in a pass is the following: Criteria : must have 2+ named women named women talk to each other topic of...
3143 sym R (1188 sym/2 pcs) 8 img
Star Trek Discovery Bechdel-Wallace Test
Star Trek Discovery Bechdel-Wallace Test This data is testing if the episodes per season of the TV show Star Trek Disovery pass or fail the Bechdel-Wallace test. For more information check the Bechdel-Wallace, and for the full list of character names and details Star Trek Discover file. Simple criteria for the test to end in a pass is the followi...
4881 sym 16 img
Using stringr for strings
Load stringr Text are strings and the R package stringr and/ stringi are libraries to help deal with string data as part of data analysis. Note:Text string color is red and is not customizable, I tried to have another color while having a dark mode. library(stringi) library(stringr) library(tidyverse) # stringr had built in data fruit = stringr:...
3455 sym R (5854 sym/101 pcs)
Functional Programming in R
Functional Programming Basics library(purrr) myFn = function(x){ if (x > 10){ stop("x is too big") } else if ( x > 5){ return (x*2) } else { y = x - 1 for (i in 1:5){ y = y*2 } } y } myFn(2) ## [1] 32 myFn(5) ## [1] 128 scope of variables v = 8 f = function(x){ y = 2 * x v = v -1 y + v } f(3) #...
1157 sym R (2777 sym/51 pcs)
JSON data in R
This is my version of the tidyr article which I felt needed further details. Rectangling JSON data Nested list data such as JSON or XML into dataframe rows and columns. To help get this JSON into dataframe use the following tidyr::unnest_longer() takes each element of a list-column and makes a new row tidyr::unnest_wider() takes each element of...
1799 sym R (8877 sym/25 pcs)
my week as RLadies Curator
My week as RLadies curator I was the curator for April 4 to April 9th, 2022. I read the RLadies guide on what to expect and what to do or not to do, and how it works but found the details I needed lacking, so I provide them for the next person. The steps post signup I have documented the steps for how to get started after you have signed up and ...
6060 sym 5 img