Skip to content

Instantly share code, notes, and snippets.

@christianwish
Last active August 6, 2018 15:27
Show Gist options
  • Save christianwish/a3edd11cf74a8db892b73b929fa25e0d to your computer and use it in GitHub Desktop.
Save christianwish/a3edd11cf74a8db892b73b929fa25e0d to your computer and use it in GitHub Desktop.
originDataSrc <- "./data/survey_results_public.csv"
d <- read.csv(file = originDataSrc)
not.na <- function(context) { return(!is.na(context)) }
data.filter <- not.na(d$LanguageWorkedWith) & not.na(d$Gender) & d$Gender == "Female"
females <- d[data.filter,]
allLength <- length(d[,1])
femaleLength <- length(females[,1])
"Alle:"
allLength
""
"Frauen die Technologien angegeben haben:"
femaleLength
""
femaleLength / (allLength / 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment