This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
#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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
#title: "GSS Descriptives 2 Spence" | |
#output: pdf_document | |
--- | |
```{r, echo=FALSE, message=FALSE} | |
# Load your libraries here | |
library(aws.s3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a <- "Hello" | |
b <- "World," | |
c <- "my name is Dwight." | |
paste(a, b, c, sep = " ") |