Skip to content

Commit

Permalink
Merge pull request #2 from nevrome/master
Browse files Browse the repository at this point in the history
LRBfact
  • Loading branch information
benmarwick authored Jun 20, 2017
2 parents 738be29 + e67d833 commit 9ed6640
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.Rhistory
.RData
packrat/lib*/
.Rproj.user
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Suggests:
dplyr
URL: http://github.com/benmarwick/binford
LazyData: TRUE
RoxygenNote: 5.0.1
RoxygenNote: 6.0.1
12 changes: 12 additions & 0 deletions R/LRBfact.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#' Binford's data - labeled version
#'
#' Datasets used to calculate Binford's environmental and hunter-gatherer frames of reference variables used in Binford (2001). LRBfact is equal to LRB except code values are represented by their label, rather than the code.
#'
#' Binford, Lewis R. 2001. Constructing Frames of Reference: An Analytical Method for Archaeological Theory Building Using Ethnographic and Environmental Data Sets University of California Press, Berkeley
#'
#' The key to the variables in this object is in LBRkey
#'
#' Downloaded from the source url on 31 Jul 2016
#'
#' @source \url{http://ajohnson.sites.truman.edu/data-and-program/}
"LRBfact"
7 changes: 4 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ This package contains datasets used in:

> Binford, Lewis R. 2001. _Constructing Frames of Reference: An Analytical Method for Archaeological Theory Building Using Ethnographic and Environmental Data Sets_ University of California Press, Berkeley.
This package contains two datasets:
This package contains three datasets:

- `LRB`: environmental and hunter-gatherer data used in Binford's book
- `LRBkey`: key to the LRB data frame
- `LRB`: environmental and hunter-gatherer data used in Binford's book
- `LRBfact`: equal to LRB except code values are represented by their label, rather than the code
- `LRBkey`: key to the LRB data frame

The data were obtained from Amber Johnson's website on 31 Jul 2016: http://ajohnson.sites.truman.edu/data-and-program/

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ This package contains datasets used in:

> Binford, Lewis R. 2001. *Constructing Frames of Reference: An Analytical Method for Archaeological Theory Building Using Ethnographic and Environmental Data Sets* University of California Press, Berkeley.
This package contains two datasets:
This package contains three datasets:

- `LRB`: environmental and hunter-gatherer data used in Binford's book
- `LRBfact`: equal to LRB except code values are represented by their label, rather than the code
- `LRBkey`: key to the LRB data frame

The data were obtained from Amber Johnson's website on 31 Jul 2016: <http://ajohnson.sites.truman.edu/data-and-program/>
7 changes: 7 additions & 0 deletions data-raw/LRBfact.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
library(dplyr)

LRBfact <- read.csv("data-raw/LRBfact.csv", stringsAsFactors = FALSE)

LRBfact <- LRBfact %>% tbl_df()

save(LRBfact, file = "data/LRBfact.rdata")
Binary file modified data/LRB.rdata
Binary file not shown.
Binary file added data/LRBfact.rdata
Binary file not shown.
1 change: 0 additions & 1 deletion man/LRB.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions man/LRBfact.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/LRBkey.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ed6640

Please sign in to comment.