Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
seankross committed Aug 21, 2014
0 parents commit e8cb97f
Show file tree
Hide file tree
Showing 12 changed files with 5,837 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .Rbuildignore
@@ -0,0 +1,4 @@
^.*\.Rproj$
^\.Rproj\.user$
^data-raw$
^scratch\.R$
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
.DS_Store
scratch.R
.Rproj.user
.Rhistory
.RData
15 changes: 15 additions & 0 deletions DESCRIPTION
@@ -0,0 +1,15 @@
Package: lego
Type: Package
Title: Lego set data 1970-2014
Version: 0.1
Date: 2014-08-21
Authors@R: 'Sean Kross <smk240@gmail.com> [aut,cre]'
Description: Data for every lego set produced from 1970 to 2014 including number
of pieces per set, number of minifigures per set, and region specific MSRP.
Depends:
R (>= 3.1.0)
License: CC0
LazyData: true
Suggests:
dplyr
URL: http://github.com/seankross/lego
2 changes: 2 additions & 0 deletions NAMESPACE
@@ -0,0 +1,2 @@
# Generated by roxygen2 (4.0.1): do not edit by hand

29 changes: 29 additions & 0 deletions R/legosets.R
@@ -0,0 +1,29 @@
#' Lego set data
#'
#' Data about every lego set from 1970 to 2014.
#'
#' @source \url{http://brickset.com/}, downloaded 2014-08-06
#' @format A data frame with columns:
#' \describe{
#' \item{Item_Number}{Item number for each lego set}
#' \item{Name}{Name of set}
#' \item{Year}{Year set was manufactured}
#' \item{Theme}{Theme of set}
#' \item{Subtheme}{Subtheme of set. Sets with no subtheme have an empty string
#' \code{""} for subtheme.}
#' \item{Pieces}{Number of pieces in set. Sets with \code{NA} pieces have an
#' unknown number of pieces.}
#' \item{Minifigures}{Number of minifigures in set. The vast majority of sets
#' with \code{NA} minifigures contain zero minifigures, however there
#' are a few exceptions.}
#' \item{Image_URL}{URL to an image of the set}
#' \item{GBP_MSRP}{Price of set in British Pounds (\code{NA} if price unavailable)}
#' \item{USD_MSRP}{Price of set in US Dollars (\code{NA} if price unavailable)}
#' \item{CAD_MSRP}{Price of set in Canadian Dollars (\code{NA} if price unavailable)}
#' \item{EUR_MSRP}{Price of set in Euros (\code{NA} if price unavailable)}
#' \item{Packaging}{Type of packaging for set}
#' \item{Availability}{Availability of set}
#' }
#' @examples
#' legosets
"legosets"
11 changes: 11 additions & 0 deletions README.md
@@ -0,0 +1,11 @@
# lego

This R data package contains information about every Lego set manufactured from 1970 to 2014, a total of 5710 sets. A few of the variables included for each set are:

- Item number
- Name
- Year manufactured
- Theme
- Number of pieces
- Number of minifigures included
- Price
5,711 changes: 5,711 additions & 0 deletions data-raw/legosets.csv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/.Rapp.history
@@ -0,0 +1 @@
load("/Users/sean/Developer/GitHub/lego/data/legosets.rda")
Binary file added data/legosets.rda
Binary file not shown.
17 changes: 17 additions & 0 deletions lego.Rproj
@@ -0,0 +1,17 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
2 changes: 2 additions & 0 deletions man/.Rapp.history
@@ -0,0 +1,2 @@
load("/Users/sean/Developer/GitHub/lego/data/legosets.rda")
lego
40 changes: 40 additions & 0 deletions man/legosets.Rd
@@ -0,0 +1,40 @@
% Generated by roxygen2 (4.0.1): do not edit by hand
\docType{data}
\name{legosets}
\alias{legosets}
\title{Lego set data}
\format{A data frame with columns:
\describe{
\item{Item_Number}{Item number for each lego set}
\item{Name}{Name of set}
\item{Year}{Year set was manufactured}
\item{Theme}{Theme of set}
\item{Subtheme}{Subtheme of set. Sets with no subtheme have an empty string
\code{""} for subtheme.}
\item{Pieces}{Number of pieces in set. Sets with \code{NA} pieces have an
unknown number of pieces.}
\item{Minifigures}{Number of minifigures in set. The vast majority of sets
with \code{NA} minifigures contain zero minifigures, however there
are a few exceptions.}
\item{Image_URL}{URL to an image of the set}
\item{GBP_MSRP}{Price of set in British Pounds (\code{NA} if price unavailable)}
\item{USD_MSRP}{Price of set in US Dollars (\code{NA} if price unavailable)}
\item{CAD_MSRP}{Price of set in Canadian Dollars (\code{NA} if price unavailable)}
\item{EUR_MSRP}{Price of set in Euros (\code{NA} if price unavailable)}
\item{Packaging}{Type of packaging for set}
\item{Availability}{Availability of set}
}}
\source{
\url{http://brickset.com/}, downloaded 2014-08-06
}
\usage{
legosets
}
\description{
Data about every lego set from 1970 to 2014.
}
\examples{
legosets
}
\keyword{datasets}

0 comments on commit e8cb97f

Please sign in to comment.