bgmfiles.

Usage

bgmfiles(pattern = NULL)

Arguments

pattern
optional pattern string to filter files returned, see list.files for details

Value

character vector of file paths

Description

Raw data files are maintained here: https://github.com/AustralianAntarcticDivision/box-geometry-models.git

Return the full paths to all files in the extdata/bgm/ folder of this package.

Details

This package contains a simple workflow to update from that source repo and install the raw files into extdata/ of the installed package.

Examples

## obtain all example files installed bfiles <- bgmfiles() print(basename(bfiles))
[1] "AEEC_poly_projETRS89_LAEA_snapped0p002.bgm" "ams71.bgm" [3] "antarctica_28.bgm" "antarctica_99.bgm" [5] "CalCurrentV3_utm.bgm" "Final_CAM_Boxes_8.bgm" [7] "GOM_BGM.bgm" "Guam_utm1.bgm" [9] "JFRE_ll.bgm" "JFRE_xy.bgm" [11] "NGOM.bgm" "Nordic02.bgm" [13] "VMPA_setas.bgm"
## filter based on an input pattern afiles <- bgmfiles(pattern = "^antarc") print(basename(afiles))
[1] "antarctica_28.bgm" "antarctica_99.bgm"
## read all the text from all files and table raw characters ## (for no reason) lapply(bfiles, function(x) table(unlist(strsplit(paste(readLines(x), collapse = ""), ""))))
[[1]] - \t # $ ( ) , . / : _ + = 0 1 269 17166 315 862 4 1 1 6 15939 2 7 113 9 8 18970 20396 2 3 4 5 6 7 8 9 a b B c C d D e 20741 25000 17905 18128 18683 17482 16033 17404 5094 3185 71 5842 1 147 1 8720 E f F g G h i j l m M n o p r R 40 4159 824 827 1 859 252 2 1725 934 2 1941 2333 1651 3697 2 s S t T u v V w x y z 866 1 2803 1 860 1937 1 2 2287 3 71 [[2]] - \t # ( ) , . _ + = > 0 1 2 3 4 5 6 176 4675 2149 270 1 1 6 4940 74 9 10 1 3701 5181 4369 3771 3821 3430 3024 7 8 9 a b B c d D e E f g G h i j l m 2839 3164 3180 1994 1811 2 1499 146 264 2536 9 1502 196 1 271 511 2 545 350 M n N o p r R s S t u v w x y z 2 757 2 1902 395 1487 1 281 1 1230 202 683 2 1543 5 147 [[3]] - \t # $ ( ) . / : _ + = 0 1 2 3 4 5 737 2220 252 121 4 1 1 2389 2 7 59 9 8 2382 3196 2876 2519 2610 2630 6 7 8 9 a b B c d D e E f F g G h i j 2285 2462 2346 2315 664 773 57 691 87 1 1218 55 481 90 92 2 119 203 2 J l m n o p r R s S t T u v V w W x y 1 243 180 384 693 183 613 1 124 3 468 2 121 343 1 1 2 656 3 z 57 [[4]] - \t # $ ( ) . / : _ + = 0 1 2 2090 7672 891 434 4 1 1 8266 2 7 101 7 7 14001 9077 8120 3 4 5 6 7 8 9 a b B c d D e E f 7410 7907 7960 8121 7088 6615 14017 2399 2587 199 2527 202 1 4228 105 1761 F g h i j l m M n o p r R s S t 332 335 431 699 2 868 633 1 1264 2364 666 2031 1 435 1 1500 T u v V w W x y z 1 431 1063 1 1 1 2256 3 199 [[5]] - \t # $ ( ) . / : _ + = 0 1 2 599 8743 801 480 4 1 1 9114 2 7 95 8 7 9935 11971 11599 3 4 5 6 7 8 9 a b B c d D e E f 10930 9537 9699 9790 9636 9297 9453 2692 2620 179 2899 184 1 4726 179 2033 F g G h i j k l m M n o p r R s 388 390 1 477 629 2 1 960 660 1 1319 2328 779 2210 1 482 S t T u v V w W x y z 2 1643 1 477 1160 1 1 2 2230 4 179 [[6]] - \t # , . : _ = 0 1 2 3 4 5 6 7 8 9 181 5473 882 314 6 5953 2 94 12 6360 7125 6484 6658 7384 5896 5766 5777 5721 5887 a b B c d D e E f F g G h i j k l m n 1675 2193 197 1691 192 1 3009 89 1166 214 216 1 311 691 2 1 628 513 1012 o p r R s S t T u v w x y z 2095 430 1527 1 317 2 1119 1 313 801 2 1989 3 198 [[7]] - \t # . _ = 0 1 2 3 4 5 6 7 8 9 a A 224 4143 595 238 4630 77 10 4847 5808 5431 5697 4882 4918 4653 4287 4341 4366 1302 1 b B c d D e E f F g h i j k l m n N o 1579 132 1342 138 1 2323 132 928 172 172 238 464 2 1 484 373 750 1 1474 p r s t u v w x y z 347 1158 241 858 240 613 1 1404 1 133 [[8]] - \t # $ ( ) . / : _ + = 0 279 56 399485 384 4 1 1 6885 2 9 71 12 4 4625 1 2 3 4 5 6 7 8 9 a A b B c 7483 6921 4504 6178 5823 4222 4145 4277 4303 2152 1 1855 114 2352 d D e E f F g G h i j l m n 133 1 3715 64 1658 319 321 1 380 406 2 758 496 1005 N o O p r R s S t T u v V w 2 1592 1 642 1673 1 387 2 1247 2 381 857 1 1 W x y z 2 1518 2 116 [[9]] - \t # $ ( ) . / : _ + = 0 1 2 3 4 5 2103 4503 459 258 4 1 1 4691 2 7 24 4 3 4994 5652 5067 6328 4595 4306 6 7 8 9 a A b B c d D e E f F g G h i 4559 5164 4781 4413 1437 2 1372 103 1535 79 1 2453 54 1074 204 207 2 256 363 j l m n o p r R s S t T u v V w W x y 2 516 362 694 1255 412 1120 1 260 3 813 2 257 552 1 1 2 1194 2 z 103 [[10]] - \t # $ ( ) , . / : _ + = 0 1 2 3 4 1013 4506 459 258 4 1 1 6 4691 2 7 24 7 5 4911 6060 5823 5065 5005 5 6 7 8 9 a A b B c d D e E f F g G h 4803 5386 4293 4593 4582 1435 2 1372 103 1535 78 1 2454 101 1074 204 207 1 257 i j l m n o p r R s S t T u v V w x y 364 2 514 363 695 1257 412 1120 2 263 2 815 2 259 552 1 2 1194 2 z 104 [[11]] - \t # . : _ = 0 1 2 3 4 5 6 7 8 9 a 1093 4164 333 215 4331 2 100 9 4551 5682 5405 6264 4577 4749 4552 4412 4054 4039 1209 b B c d D e E f F g h i j J k l m n o 1245 75 1310 137 1 2227 75 919 176 178 213 262 2 1 1 430 292 639 1053 p r s t T u v w x y z 354 1090 215 840 2 216 622 1 1010 3 76 [[12]] - \t # $ ( ) . / : _ = 0 1 2 3 4 5 6 475 5717 540 316 4 1 1 5897 2 7 69 9 6058 8117 7200 6556 6839 6780 6372 7 8 9 a A b B c C d D e E f F g h i j 6041 5675 5821 1769 1 1732 121 1895 1 127 1 3096 61 1329 253 256 313 428 2 l m n o p r R s S t T u v V w W x y z 635 438 878 1545 509 1447 1 319 1 1077 1 315 755 1 1 1 1476 3 121 [[13]] ' - \t # ( ) * , . _ = > 0 1 2 3 4 5 1 23 2095 213 39 1 1 16 6 832 55 10 1 574 1009 690 581 774 479 6 7 8 9 a A b B c d D e f F g G h i j 421 454 413 474 267 1 338 22 186 69 33 435 186 1 27 1 38 94 2 k l L m M n N o p P r R s S t u v V w 1 83 1 69 3 155 13 341 53 1 298 2 56 1 261 40 171 1 5 x y z 275 2 27