-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR Console.txt
382 lines (311 loc) · 10.8 KB
/
R Console.txt
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
R version 3.1.0 (2014-04-10) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin10.8.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[R.app GUI 1.63 (6734) x86_64-apple-darwin10.8.0]
[Workspace restored from /Volumes/amy/Users/kevinowens/.RData]
[History restored from /Volumes/amy/Users/kevinowens/.Rhistory]
Warning: dependency ‘BiocInstaller’ is not available
also installing the dependencies ‘stringr’, ‘brew’, ‘formatR’, ‘highr’, ‘markdown’, ‘httr’, ‘memoise’, ‘whisker’, ‘evaluate’, ‘digest’, ‘testthat’, ‘roxygen2’, ‘knitr’, ‘rstudioapi’
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/stringr_0.6.2.tgz'
Content type 'application/x-gzip' length 71095 bytes (69 Kb)
opened URL
==================================================
downloaded 69 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/brew_1.0-6.tgz'
Content type 'application/x-gzip' length 97854 bytes (95 Kb)
opened URL
==================================================
downloaded 95 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/formatR_0.10.tgz'
Content type 'application/x-gzip' length 42970 bytes (41 Kb)
opened URL
==================================================
downloaded 41 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/highr_0.3.tgz'
Content type 'application/x-gzip' length 25895 bytes (25 Kb)
opened URL
==================================================
downloaded 25 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/markdown_0.6.5.tgz'
Content type 'application/x-gzip' length 143067 bytes (139 Kb)
opened URL
==================================================
downloaded 139 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/httr_0.3.tgz'
Content type 'application/x-gzip' length 325741 bytes (318 Kb)
opened URL
==================================================
downloaded 318 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/memoise_0.2.1.tgz'
Content type 'application/x-gzip' length 14111 bytes (13 Kb)
opened URL
==================================================
downloaded 13 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/whisker_0.3-2.tgz'
Content type 'application/x-gzip' length 47145 bytes (46 Kb)
opened URL
==================================================
downloaded 46 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/evaluate_0.5.3.tgz'
Content type 'application/x-gzip' length 36190 bytes (35 Kb)
opened URL
==================================================
downloaded 35 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/digest_0.6.4.tgz'
Content type 'application/x-gzip' length 103487 bytes (101 Kb)
opened URL
==================================================
downloaded 101 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/testthat_0.8.1.tgz'
Content type 'application/x-gzip' length 220188 bytes (215 Kb)
opened URL
==================================================
downloaded 215 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/roxygen2_3.1.0.tgz'
Content type 'application/x-gzip' length 368874 bytes (360 Kb)
opened URL
==================================================
downloaded 360 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/knitr_1.5.tgz'
Content type 'application/x-gzip' length 861792 bytes (841 Kb)
opened URL
==================================================
downloaded 841 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/rstudioapi_0.1.tgz'
Content type 'application/x-gzip' length 13345 bytes (13 Kb)
opened URL
==================================================
downloaded 13 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/devtools_1.5.tgz'
Content type 'application/x-gzip' length 242241 bytes (236 Kb)
opened URL
==================================================
downloaded 236 Kb
The downloaded binary packages are in
/var/folders/k6/f22b2rf90hjg01r_hr0n3yqw0000gn/T//Rtmp35iNs7/downloaded_packages
Error: '.find.package' is defunct.
Use 'find.package' instead.
See help("Defunct")
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/BH_1.54.0-2.tgz'
Content type 'application/x-gzip' length 6063916 bytes (5.8 Mb)
opened URL
==================================================
downloaded 5.8 Mb
The downloaded binary packages are in
/var/folders/k6/f22b2rf90hjg01r_hr0n3yqw0000gn/T//Rtmp35iNs7/downloaded_packages
Warning: dependencies ‘graph’, ‘Rgraphviz’ are not available
also installing the dependencies ‘dichromat’, ‘munsell’, ‘labeling’, ‘gtable’, ‘reshape2’, ‘scales’, ‘proto’, ‘ggplot2’, ‘RColorBrewer’, ‘reshape’, ‘plyr’
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/dichromat_2.0-0.tgz'
Content type 'application/x-gzip' length 145112 bytes (141 Kb)
opened URL
==================================================
downloaded 141 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/munsell_0.4.2.tgz'
Content type 'application/x-gzip' length 124700 bytes (121 Kb)
opened URL
==================================================
downloaded 121 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/labeling_0.2.tgz'
Content type 'application/x-gzip' length 38219 bytes (37 Kb)
opened URL
==================================================
downloaded 37 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/gtable_0.1.2.tgz'
Content type 'application/x-gzip' length 61078 bytes (59 Kb)
opened URL
==================================================
downloaded 59 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/reshape2_1.4.tgz'
Content type 'application/x-gzip' length 178438 bytes (174 Kb)
opened URL
==================================================
downloaded 174 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/scales_0.2.4.tgz'
Content type 'application/x-gzip' length 150093 bytes (146 Kb)
opened URL
==================================================
downloaded 146 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/proto_0.3-10.tgz'
Content type 'application/x-gzip' length 454741 bytes (444 Kb)
opened URL
==================================================
downloaded 444 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/ggplot2_0.9.3.1.tgz'
Content type 'application/x-gzip' length 2649787 bytes (2.5 Mb)
opened URL
==================================================
downloaded 2.5 Mb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/RColorBrewer_1.0-5.tgz'
Content type 'application/x-gzip' length 22751 bytes (22 Kb)
opened URL
==================================================
downloaded 22 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/reshape_0.8.5.tgz'
Content type 'application/x-gzip' length 125088 bytes (122 Kb)
opened URL
==================================================
downloaded 122 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/plyr_1.8.1.tgz'
Content type 'application/x-gzip' length 837044 bytes (817 Kb)
opened URL
==================================================
downloaded 817 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/profileR_0.2-1.tgz'
Content type 'application/x-gzip' length 61686 bytes (60 Kb)
opened URL
==================================================
downloaded 60 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/profr_0.3.1.tgz'
Content type 'application/x-gzip' length 23366 bytes (22 Kb)
opened URL
==================================================
downloaded 22 Kb
trying URL 'http://streaming.stat.iastate.edu/CRAN/bin/macosx/contrib/3.1/proftools_0.1-0.tgz'
Content type 'application/x-gzip' length 70705 bytes (69 Kb)
opened URL
==================================================
downloaded 69 Kb
The downloaded binary packages are in
/var/folders/k6/f22b2rf90hjg01r_hr0n3yqw0000gn/T//Rtmp35iNs7/downloaded_packages
> z <- list(matrix(1:10, nrow=2), matrix(11:20, nrow=2))
> lapply(z, "[", 1, )
[[1]]
[1] 1 3 5 7 9
[[2]]
[1] 11 13 15 17 19
> lapply(z, "[", , 3)
[[1]]
[1] 5 6
[[2]]
[1] 15 16
> z[1]
[[1]]
[,1] [,2] [,3] [,4] [,5]
[1,] 1 3 5 7 9
[2,] 2 4 6 8 10
> z[2]
[[1]]
[,1] [,2] [,3] [,4] [,5]
[1,] 11 13 15 17 19
[2,] 12 14 16 18 20
> z <- list(a=matrix(1:10, nrow=2), b=matrix(11:20, nrow=2))
> lapply(z, "[", 1, )
$a
[1] 1 3 5 7 9
$b
[1] 11 13 15 17 19
> z <- list(a=data.frame(1:10, nrow=2), b=data.frame(11:20, nrow=2))
> z
$a
X1.10 nrow
1 1 2
2 2 2
3 3 2
4 4 2
5 5 2
6 6 2
7 7 2
8 8 2
9 9 2
10 10 2
$b
X11.20 nrow
1 11 2
2 12 2
3 13 2
4 14 2
5 15 2
6 16 2
7 17 2
8 18 2
9 19 2
10 20 2
> z <- list(a=matrix(1:10, nrow=2), b=matrix(11:20, nrow=2))
> lapply(z, "$", 1, )
Error in FUN(X[[1L]], ...) : $ operator is invalid for atomic vectors
> lapply(z, "$", "a", )
Error in FUN(X[[1L]], ...) : $ operator is invalid for atomic vectors
> lapply(z, "$", "a")
Error in FUN(X[[1L]], ...) : $ operator is invalid for atomic vectors
> z$a
[,1] [,2] [,3] [,4] [,5]
[1,] 1 3 5 7 9
[2,] 2 4 6 8 10
> as.data.frame(z$a)
V1 V2 V3 V4 V5
1 1 3 5 7 9
2 2 4 6 8 10
> z$a <- as.data.frame(z$a)
> z$b <- as.data.frame(z$b)
> z
$a
V1 V2 V3 V4 V5
1 1 3 5 7 9
2 2 4 6 8 10
$b
V1 V2 V3 V4 V5
1 11 13 15 17 19
2 12 14 16 18 20
> lapply(z, "$", V1)
$a
NULL
$b
NULL
> lapply(z, "$", "V1")
$a
NULL
$b
NULL
> lapply(z, "$")
$a
NULL
$b
NULL
> z
$a
V1 V2 V3 V4 V5
1 1 3 5 7 9
2 2 4 6 8 10
$b
V1 V2 V3 V4 V5
1 11 13 15 17 19
2 12 14 16 18 20
> lapply(z, "$",1)
$a
NULL
$b
NULL
> lapply(z, "$","1")
$a
NULL
$b
NULL
> lapply(z, "[",V2)
Error in `[.data.frame`(X[[1L]], ...) : object 'V2' not found
> lapply(z, "[","V2")
$a
V2
1 3
2 4
$b
V2
1 13
2 14
> lapply(z, "[",1,)
$a
V1 V2 V3 V4 V5
1 1 3 5 7 9
$b
V1 V2 V3 V4 V5
1 11 13 15 17 19
>