cooperatR::norm_coop()
.install_github("jcvdav/cooperatR")
) to have this function available.?norm_coop
Warning There are still some doubts about certain values in the data; look at the database logbook
The database has been updated. Column names remain the same, but it many inconsistencies have been fixed (and more will be ficed in the next days). Al inconsistencies have been identified. To see a logbook of changes click here
Proposed system for archiving our data: The Knowledge Network for Biocomplexity (KNB)
R package containing Dan Ovando's database for cooperatives from his 2014 paper
cooperatR
in your computerBefore you try to run any of the code in the next sections, make sure you have installed the latest version of R and RStudio. Remembere these are two different things. R is the language and program itself. RStudio is an IDE (Integrated Development Environment)... which is just fancy talk for "User Interface" (with some other sweet things).
Once you have done this, you will be able to install all the latest packages, including cooperatR
. You can copy/paste the code that looks like this
:
devtools
package. This wil allow you to install R packages that are on github, like this one.install.packages("devtools")
devtools
package using library()
library(devtools)
install_github()
function and specify username and repository where the package lives. In this case, the cooperatR
package lives in "jcvdav/cooperatR":install_github("jcvdav/cooperatR")
This might take a couple of seconds. All dependencies will also be installed.
library(cooperatR)
.data("cooperatives")
.?cooperatives
. This should show you the documentation for the database (I copy-pasted the metadata from the supplementary material on Dan's paper.Sure! (just remember that your work might not be replicable, but whatever makes life easier for you works). If you hate R and dont want to work in it, check out the save2csv()
function to save the database to your computer so that you can open it wit Excel. Make sure you read the documentation for the function with ?save2csv
.
If you want to export the cooperatives database, just use: save2csv()
. That's it, you do not need to give any arguments to it. Remember to check ?save2csv
for more information on the function.
Cool, keep reading:
get_variables()
get_spp()
get_spp(scientific = TRUE)
get_unique()
get_unique(to.file = TRUE)
Great, that means I still get to play with this. There are three options if you want something new in the package:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.