Skip to content

Instantly share code, notes, and snippets.

@dwightrdavis
dwightrdavis / lab4_gss.Rmd
Created June 28, 2017 18:59
Lab 4 GSS project
---
#title: "soc345_lab4"
#author: "dwight davis"
#date: "6/27/2017"
---
## R Markdown
##Note that the `echo = FALSE` parameter can be added to the code chunk to prevent printing of the R code that generated the plot/result.
---
output:
pdf_document: default
html_document: default
---
Soc 345 Lab 3: R commands we need to know: creating and labeling variables and values
Let's revisit the variables we created and the crosstabs (two-way tables) we did in Lab 2. In that lab we created two new variables out of existing variables in the General Social Survey(GSS) dataset. Let's create those variables again here and then label the values in each variable so they are easier to read when we make a crosstab with them.
First load the packages into active memory
@dwightrdavis
dwightrdavis / soc345_lab2.rmd
Last active June 12, 2017 21:58 — forked from elinw/examplegss.rmd
Descriptive examples using GSS, use for lab 2, soc 345
---
#title: "GSS Descriptives 2 Spence"
#output: pdf_document
---
```{r, echo=FALSE, message=FALSE}
# Load your libraries here
library(aws.s3)
---
title: 'Samples of a tiny population'
author: ''
output:
pdf_document: default
html_document: default
---
This template is going to explore sampling distributions.
Make sure you write down the definitions of all highlighted terms.
---
title: "Introduction to R"
output: html_document
Davis Sociology 345, Lab 1
---
In this lab, we'll cover the basic functions of R to introduce you to how this program works.
@dwightrdavis
dwightrdavis / HelloWoRld.R
Last active June 5, 2017 22:41 — forked from elinw/HelloWoRld.R
drd345_examplecode
a <- "Hello"
b <- "World,"
c <- "my name is Dwight."
paste(a, b, c, sep = " ")