• Stars
    star
    131
  • Rank 274,870 (Top 6 %)
  • Language
    R
  • Created about 10 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ˜ƒ R data package featuring every Lego set from 1970 to 2015

lego

This R data package contains information about every Lego set manufactured from 1970 to 2015, a total of 6172 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

To install:

library(devtools)
install_github("seankross/lego")

Play well:

library(dplyr)

avg_price_per_year <- legosets %>%
  filter(!is.na(USD_MSRP)) %>%
  group_by(Year) %>%
  do(data.frame(Price = mean(.$USD_MSRP)))

med_price_per_year <- legosets %>%
  filter(!is.na(USD_MSRP)) %>%
  group_by(Year) %>%
  do(data.frame(Price = median(.$USD_MSRP)))

plot(avg_price_per_year, type = "l", col = "blue", 
     main = "Lego set prices over time", ylim = c(0, max(avg_price_per_year$Price)))
points(med_price_per_year, type = "l", col = "red")
legend("topleft", inset=c(0.2,0), legend=c("Average","Median"), lty=c(1,1), col=c("blue", "red"))

More Repositories

1

the-unix-workbench

๐Ÿก A Book for Anyone to Get Started with Unix
CSS
1,218
star
2

postcards

๐Ÿ’Œ Create simple, beautiful personal websites and landing pages using only R Markdown.
HTML
509
star
3

bookdown-start

๐Ÿ“– A Starter Kit for Bookdown
TeX
72
star
4

p5

๐ŸŽจ Draw with Data
R
50
star
5

twilio

โ˜Ž๏ธ An interface to the Twilio API for R
R
44
star
6

slides

HTML
32
star
7

jhudash

๐Ÿ“Š A repository for the Data Science Hackathon
20
star
8

mario

๐Ÿ„ But our princess is in another castle!
R
19
star
9

minimap

๐ŸŒŽ Create Tile Grid Maps
R
18
star
10

tidydatatutor

R
16
star
11

datamations

16
star
12

seankross.github.io

My Blog
HTML
12
star
13

bracketology

๐Ÿ€ R data package featuring 2.8 million brackets from the 2015 NCAA Men's Basketball Tournament
R
7
star
14

guides

๐Ÿ›ค The Leek Group Guide to Leek Group Guides
7
star
15

Google_Forms_Course

A swirl course that demonstrates how to use swirl with Google Forms
R
7
star
16

ari-on-docker

Get started using ari quickly with this docker container
Dockerfile
6
star
17

usbudget

๐Ÿ‡บ๐Ÿ‡ธ R data package featuring United States federal budget data
R
5
star
18

neocities

๐Ÿ˜บ An R Package for the Neocities API
R
5
star
19

developing-data-products

R
4
star
20

chi-2019-template

๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ CHI 2019 Paper Template
TeX
3
star
21

teaching-shiny

HTML
3
star
22

rbootcamp

๐Ÿ‘ข Code and Content for the Winter R Bootcamp
HTML
2
star
23

syrianarchive

๐ŸŒ™ Data from the Syrian Civil War
R
2
star
24

musa620

HTML
2
star
25

nosh

๐Ÿฑ Opinionated Notion API Access
R
2
star
26

posit-2023

HTML
1
star
27

sixtyfour

๐Ÿšš CEO, entrepreneur
R
1
star
28

Baltimore_Crime_Browser

๐Ÿš” You gotta keep the devil way down in the hole
R
1
star
29

runconf17-app

R
1
star
30

teams

HTML
1
star
31

Test_Course

A swirl course for testing swirl features
HTML
1
star
32

simple-text

R
1
star
33

resume

LaTeX source for my personal resume.
TeX
1
star
34

maror

An Open Source Statistical Finance Platform
1
star
35

python-is-better

1
star
36

flex

Consensus sequence pipeline using multiple sequence alignment tools
Python
1
star
37

netillustrator

R
1
star
38

fuji

R
1
star
39

visual-terminal

HTML
1
star
40

data-interaction-talk

HTML
1
star
41

data-viz-cogs-121

HTML
1
star
42

vlhcc-2019-talk

1
star
43

scarlet_tape

A Google ChroโŒe Extension for โŒichigan Hate Week
JavaScript
1
star
44

deadlines

๐Ÿ“† Important Deadlines
1
star
45

tidyblog

HTML
1
star