Package: datapackage 0.1.1

Jan van der Laan
datapackage: Creating and Reading Data Packages
Open, read data from and modify Data Packages. Data Packages are an open standard for bundling and describing data sets (<https://datapackage.org>). When data is read from a Data Package care is taken to convert the data as much a possible to R appropriate data types. The package can be extended with plugins for additional data types.
Authors:
datapackage_0.1.1.tar.gz
datapackage_0.1.1.zip(r-4.5)datapackage_0.1.1.zip(r-4.4)datapackage_0.1.1.zip(r-4.3)
datapackage_0.1.1.tgz(r-4.5-any)datapackage_0.1.1.tgz(r-4.4-any)datapackage_0.1.1.tgz(r-4.3-any)
datapackage_0.1.1.tar.gz(r-4.5-noble)datapackage_0.1.1.tar.gz(r-4.4-noble)
datapackage_0.1.1.tgz(r-4.4-emscripten)datapackage_0.1.1.tgz(r-4.3-emscripten)
datapackage.pdf |datapackage.html✨
datapackage/json (API)
NEWS
# Install 'datapackage' in R: |
install.packages('datapackage', repos = c('https://djvanderlaan.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/djvanderlaan/datapackage/issues
Last updated 3 days agofrom:a424ce3034. Checks:9 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 13 2025 |
R-4.5-win | OK | Mar 13 2025 |
R-4.5-mac | OK | Mar 13 2025 |
R-4.5-linux | OK | Mar 13 2025 |
R-4.4-win | OK | Mar 13 2025 |
R-4.4-mac | OK | Mar 13 2025 |
R-4.4-linux | OK | Mar 13 2025 |
R-4.3-win | OK | Mar 13 2025 |
R-4.3-mac | OK | Mar 13 2025 |
Exports:csv_readercsv_writerdp_add_contributordp_add_contributor<-dp_add_readerdp_add_writerdp_apply_schemadp_bytesdp_bytes<-dp_categorieslistdp_check_dataresourcedp_check_fielddp_contributorsdp_contributors<-dp_createddp_created<-dp_descriptiondp_description<-dp_encodingdp_encoding<-dp_fielddp_field_namesdp_formatdp_format<-dp_generate_dataresourcedp_generate_fielddescriptordp_get_connectiondp_get_datadp_get_datapackagedp_hashdp_hash<-dp_iddp_id<-dp_keywordsdp_keywords<-dp_load_from_datapackagedp_mediatypedp_mediatype<-dp_namedp_name<-dp_nresourcesdp_pathdp_path<-dp_propertiesdp_propertydp_property<-dp_resourcedp_resource_namesdp_resource<-dp_resources<-dp_save_as_datapackagedp_schemadp_titledp_title<-dp_to_booleandp_to_codedp_to_datedp_to_datetimedp_to_factordp_to_integerdp_to_numberdp_to_stringdp_to_timedp_to_yeardp_to_yearmonthdp_write_datafwf_readernew_contributornew_datapackagenew_dataresourceopen_datapackage
Creating a Data Package
Rendered fromcreating_a_datapackage.md
usingsimplermarkdown::mdweave_to_html
on Mar 13 2025.Last update: 2025-03-03
Started: 2024-01-12
Introduction to datapackage
Rendered fromintroduction.md
usingsimplermarkdown::mdweave_to_html
on Mar 13 2025.Last update: 2025-03-03
Started: 2023-08-13
Overview of support for the Data Package specification v2
Rendered fromsupport.md
usingsimplermarkdown::mdweave_to_html
on Mar 13 2025.Last update: 2025-02-27
Started: 2025-02-03
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Read the CSV-data for a Data Resource | csv_reader |
Write data of data resource to CSV-file | csv_writer |
Add a reader function for a specific format | dp_add_reader |
Add a writer function for a specific format | dp_add_writer |
Convert columns of data.frame to their correct types using table schema | dp_apply_schema |
Get the a data.frame with the categories for a variable. | dp_categorieslist dp_categorieslist.default dp_categorieslist.fielddescriptor |
Check if a data set is valid given a Data Resource | dp_check_dataresource |
Check if a vector is valid given a field descriptor | dp_check_field |
Get the Field Descriptor associated with a certain field in a Data Resource | dp_field |
List the fields in a Data Resource | dp_field_names |
Generate Data Resource for a dataset | dp_generate_dataresource |
Generate a fielddescriptor for a given variable in a dataset | dp_generate_fielddescriptor dp_generate_fielddescriptor.character dp_generate_fielddescriptor.Date dp_generate_fielddescriptor.default dp_generate_fielddescriptor.factor dp_generate_fielddescriptor.integer dp_generate_fielddescriptor.logical dp_generate_fielddescriptor.numeric |
Get a connection to the data belonging to a Data Resource | dp_get_connection |
Get the data belonging to a Data Resource | dp_get_data dp_get_data.datapackage dp_get_data.dataresource |
Get the Data Package associated with the object | dp_get_datapackage |
Quickly read a dataset from a Data Package | dp_load_from_datapackage |
Return the number of resources in a Data Package | dp_nresources |
Get a list of properties defined for the object | dp_properties dp_properties.dataresource dp_properties.editabledatapackage dp_properties.readonlydatapackage dp_properties.tableschema |
Get and set properties of Data Packages and Data Resources | dp_property dp_property.dataresource dp_property.editabledatapackage dp_property.fielddescriptor dp_property.readonlydatapackage dp_property.tableschema dp_property<- dp_property<-.dataresource dp_property<-.editabledatapackage dp_property<-.fielddescriptor dp_property<-.readonlydatapackage dp_property<-.tableschema |
Modifying the resources of a Data Package | dp_resource dp_resource.datapackage dp_resource<- dp_resource<-.editabledatapackage dp_resource<-.readonlydatapackage |
Get the names of the resources in a Data Package | dp_resource_names |
Modify a set of Data Resources in a Data Package | dp_resources<- |
Save a dataset as a Data Package | dp_save_as_datapackage |
Convert a vector to 'boolean' using the specified field descriptor | dp_to_boolean |
Recode a variable to 'code' using the associated categories | dp_to_code |
Convert a vector to 'date' using the specified field descriptor | dp_to_date |
Convert a vector to 'datetime' using the specified field descriptor | dp_to_datetime |
Recode a variable to factor using the associated categories | dp_to_factor |
Convert a vector to 'integer' using the specified field descriptor | dp_to_integer |
Convert a vector to 'number' using the specified field descriptor | dp_to_number |
Convert a vector to 'string' using the specified fielddescriptor | dp_to_string |
Convert a vector to 'time' using the specified field descriptor | dp_to_time |
Convert a vector to 'year' using the specified field descriptor | dp_to_year |
Convert a vector to 'yearmonth' using the specified field descriptor | dp_to_yearmonth |
Write data of resource to file | dp_write_data dp_write_data.datapackage dp_write_data.dataresource |
Read the FWF-data for a Data Resource | fwf_reader |
Creating and Adding Contributors to a Data Package | dp_add_contributor dp_add_contributor<- new_contributor |
Create a new Data Package | new_datapackage |
Create a new Data Resource | new_dataresource |
Open a data package | open_datapackage |
Getting and setting properties of Data Packages | dp_contributors dp_contributors.datapackage dp_contributors<- dp_contributors<-.datapackage dp_created dp_created.datapackage dp_created<- dp_created<-.datapackage dp_description dp_description.datapackage dp_description<- dp_description<-.datapackage dp_id dp_id.datapackage dp_id<- dp_id<-.datapackage dp_keywords dp_keywords.datapackage dp_keywords<- dp_keywords<-.datapackage dp_name dp_name.datapackage dp_name<- dp_name<-.datapackage dp_title dp_title.datapackage dp_title<- dp_title<-.datapackage PropertiesDatapackage |
Getting and setting properties of Data Resources | dp_bytes dp_bytes.dataresource dp_bytes<- dp_bytes<-.dataresource dp_description.dataresource dp_description.fielddescriptor dp_description<-.dataresource dp_encoding dp_encoding.dataresource dp_encoding<- dp_encoding<-.dataresource dp_format dp_format.dataresource dp_format<- dp_format<-.dataresource dp_format<-.fielddescriptor dp_hash dp_hash.dataresource dp_hash<- dp_hash<-.dataresource dp_mediatype dp_mediatype.dataresource dp_mediatype<- dp_mediatype<-.dataresource dp_name.dataresource dp_name<-.dataresource dp_name<-.fielddescriptor dp_path dp_path.dataresource dp_path<- dp_path<-.dataresource dp_schema dp_schema.dataresource dp_title.dataresource dp_title<-.dataresource dp_title<-.fielddescriptor PropertiesDataresource |
Getting and setting properties of Data Resources | dp_description<-.fielddescriptor dp_format.fielddescriptor dp_name.fielddescriptor dp_title.fielddescriptor PropertiesFielddescriptor |