-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTest_Jupyter
128 lines (128 loc) · 3.22 KB
/
Test_Jupyter
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# R and Mapping\n",
"\n",
"This workshop is meant for those who have worked with R and GIS products. Prerequisites for this workshop include [Intro to R: Data Transformations, Analysis, and Data Structures and Introduction to ArcGIS](http://library.duke.edu/data/news).\n",
"\n",
"Duke University users can [download the data](https://duke.box.com/v/LearnR) and the scripts used in this workshop. \n",
"\n",
"# Why Use R for GIS? \n",
"\n",
"R can be very useful for GIS users. Some reasons include:\n",
"\n",
"1. Switch between spatial analysis and statistical analysis quickly and easily\n",
"2. Reproducible and sharable\n",
"3. Faster analysis \n",
"4. More control on visualization and web interface (both good and bad)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Library Packages\n",
"\n",
"R has many libraries available. \n",
"\n",
"## Exercise 1\n",
"Create a R project and import data from Duke Box into the project."
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false
},
"outputs": [
{
"ename": "ERROR",
"evalue": "Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n",
"output_type": "error",
"traceback": [
"Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n"
]
},
{
"ename": "ERROR",
"evalue": "Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n",
"output_type": "error",
"traceback": [
"Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n"
]
},
{
"ename": "ERROR",
"evalue": "Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n",
"output_type": "error",
"traceback": [
"Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n"
]
},
{
"ename": "ERROR",
"evalue": "Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n",
"output_type": "error",
"traceback": [
"Error in contrib.url(repos, type): trying to use CRAN without setting a mirror\n"
]
}
],
"source": [
"install.packages(\"rgdal\")\n",
"install.packages(\"leaflet\")\n",
"install.packages(\"ggmap\")\n",
"install.packages(\"sp\")\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"1. Connect to library"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# type your answer\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "R",
"language": "R",
"name": "ir"
},
"language_info": {
"codemirror_mode": "r",
"file_extension": ".r",
"mimetype": "text/x-r-source",
"name": "R",
"pygments_lexer": "r",
"version": "3.2.2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}