-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCurtisKephartAssignment2Creator.R
39 lines (29 loc) · 1.07 KB
/
CurtisKephartAssignment2Creator.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#' ---
# title: Assignment 2 example script.
# author: "Curtis Kephart"
# date: "Winter 2016"
# assignment: https://github.com/EconomiCurtis/econ294_2015/blob/master/Assignments/Econ_294_Assignment_2.pdf
# ---
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Question 0
CurtisKephartAssignment2 <- list(
firstName = "Curtis",
lastName = "Kephart",
email = "[email protected]",
studentID = 0142214
)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Question 1
#
require(RCurl) ; #install.packages("RCurl")
diamondsURL <- getURL("https://raw.githubusercontent.com/EconomiCurtis/econ294_2015/master/data/diamonds.CSV")
diamonds <- read.csv(
text = diamondsURL
)
rm(diamondsURL)
CurtisKephartAssignment2$s1a <- nrow(diamonds)
CurtisKephartAssignment2$s1b <- ncol(diamonds)
CurtisKephartAssignment2$s1c <- names(diamonds)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# save(CurtisKephartAssignment2,
# file = "Assignments/CurtisKephartAssignment2.RData")