11module PalmerPenguins
22
3- import CSV
4- import DataDeps
3+ using CSV : CSV
4+ using DataDeps : DataDeps
55
66const DEPNAME = " PalmerPenguins"
77const LINK = " https://cdn.jsdelivr.net/gh/allisonhorst/palmerpenguins@433439c8b013eff3d36c847bb7a27fa0d7e353d8/inst/extdata/"
88const DATA = [" penguins.csv" , " penguins_raw.csv" ]
9- const INFO =
10- """
11- Dataset: The Palmer penguins dataset
12- Authors: Allison Horst, Alison Hill, Kristen Gorman
13- Website: https://allisonhorst.github.io/palmerpenguins/index.html
9+ const INFO = """
10+ Dataset: The Palmer penguins dataset
11+ Authors: Allison Horst, Alison Hill, Kristen Gorman
12+ Website: https://allisonhorst.github.io/palmerpenguins/index.html
1413
15- The Palmer penguins dataset is a dataset for data exploration & visualization, as an
16- alternative to the Iris dataset.
14+ The Palmer penguins dataset is a dataset for data exploration & visualization, as an
15+ alternative to the Iris dataset.
1716
18- The dataset contains data for 344 penguins. There are 3 different species of penguins in
19- this dataset, collected from 3 islands in the Palmer Archipelago, Antarctica.
17+ The dataset contains data for 344 penguins. There are 3 different species of penguins in
18+ this dataset, collected from 3 islands in the Palmer Archipelago, Antarctica.
2019
21- Data were collected and made available by
22- [Dr. Kristen Gorman](https://www.uaf.edu/cfos/people/faculty/detail/kristen-gorman.php)
23- and the [Palmer Station, Antarctica LTER](https://pal.lternet.edu/), a member of the
24- [Long Term Ecological Research Network](https://lternet.edu/).
20+ Data were collected and made available by
21+ [Dr. Kristen Gorman](https://www.uaf.edu/cfos/people/faculty/detail/kristen-gorman.php)
22+ and the [Palmer Station, Antarctica LTER](https://pal.lternet.edu/), a member of the
23+ [Long Term Ecological Research Network](https://lternet.edu/).
2524
26- Data are available by
27- [CC-0](https://creativecommons.org/share-your-work/public-domain/cc0/) license in
28- accordance with the [Palmer Station LTER Data Policy](http://pal.lternet.edu/data/policies)
29- and the
30- [LTER Data Access Policy for Type I data](https://lternet.edu/data-access-policy/).
25+ Data are available by
26+ [CC-0](https://creativecommons.org/share-your-work/public-domain/cc0/) license in
27+ accordance with the [Palmer Station LTER Data Policy](http://pal.lternet.edu/data/policies)
28+ and the
29+ [LTER Data Access Policy for Type I data](https://lternet.edu/data-access-policy/).
3130
32- Please include this citation if you plan to use this database:
33- [Gorman et al., 2014]
34- Gorman KB, Williams TD, Fraser WR (2014) Ecological Sexual Dimorphism and Environmental
35- Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3):
36- e90081. https://doi.org/10.1371/journal.pone.0090081
37- """
31+ Please include this citation if you plan to use this database:
32+ [Gorman et al., 2014]
33+ Gorman KB, Williams TD, Fraser WR (2014) Ecological Sexual Dimorphism and Environmental
34+ Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3):
35+ e90081. https://doi.org/10.1371/journal.pone.0090081
36+ """
3837
3938"""
4039 load([; raw = false])
@@ -51,21 +50,26 @@ the data is loaded.
5150 Variability within a Community of Antarctic Penguins (Genus Pygoscelis). PLoS ONE 9(3):
5251 e90081. https://doi.org/10.1371/journal.pone.0090081
5352"""
54- function load (; raw:: Bool = false )
53+ function load (; raw:: Bool = false )
5554 file = DataDeps. @datadep_str DEPNAME * " /" * DATA[1 + Int (raw)]
5655 return CSV. File (
5756 file;
58- missingstring= " NA" , truestrings= [" Yes" ], falsestrings= [" No" ], dateformat= " y-m-d" ,
57+ missingstring= " NA" ,
58+ truestrings= [" Yes" ],
59+ falsestrings= [" No" ],
60+ dateformat= " y-m-d" ,
5961 )
6062end
6163
6264function __init__ ()
63- DataDeps. register (DataDeps. DataDep (
64- DEPNAME,
65- INFO,
66- LINK .* DATA,
67- " 839b058be09b164f7dfa0d030a959cb3c5426dea281e8a34d34c557e398bd01f" ,
68- ))
65+ return DataDeps. register (
66+ DataDeps. DataDep (
67+ DEPNAME,
68+ INFO,
69+ LINK .* DATA,
70+ " 839b058be09b164f7dfa0d030a959cb3c5426dea281e8a34d34c557e398bd01f" ,
71+ ),
72+ )
6973end
7074
7175end
0 commit comments