Learn R Programming

One4All

Overview

The One4All portal was designed to streamline data validation and formatting tasks. Its primary function is to read a set of rules from a 'CSV' or 'Excel' file to validate a dataset.

The package functions and Validator Tool also aid in creating valid 'Excel' files with conditional formatting based on specified rules, making it easier to identify and manage inconsistencies in data. Overall, the One4All portal aims to enhance data validation and management processes for a more efficient and accurate workflow.

Additionally, the One4All package has a variety of functionality and has been integrated in the Data Visualization Tool and the Microplastic Image Explorer, both available for use in this repository (see below).

Installation

One4All is available from CRAN and GitHub.

Get the released version from CRAN:

install.packages("One4All")

Or the development version from GitHub:

# install.packages("remotes")
remotes::install_github("Moore-Institute-4-Plastic-Pollution-Res/One4All")

Getting Started

library(One4All)

Tools

Users can run each of the tools using this function and replacing the app name:

run_app(app = "validator")
run_app(app = "data_visualization")
run_app(app = "microplastic_image_explorer")

Data Validator

Data validation is essential before sharing data widely. The functionality of the Validator app is based on the One4All package .

If using the web app:


Data Visualization

The Data Visualization Tool allows users to analyze microplastics data through maps, plots, and tables. We also aim to integrate shared data from the Validator tool. The code for the app is in /inst/apps/data_visualization.


Microplastic Image Explorer

The Microplastic Image Explorer allows users to query microplastic images from our database by selecting filters. Users can apply more than one filter from citation, color, morphology, and/or polymer. The code for the app is in /inst/apps/microplastic_image_explorer.


Additional Instructions

Access the pkgdown and vignettes here: https://moore-institute-4-plastic-pollution-res.github.io/One4All/

Contributing

Contributions to One4All are welcome!

License

One4All is released under the MIT License. Please see the license file for more information.

Copy Link

Version

Install

install.packages('One4All')

Monthly Downloads

234

Version

0.5

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hannah Sherrod

Last Published

July 2nd, 2024

Functions in One4All (0.5)

run_app

Run any of the apps
query_document_by_object_id

Query a MongoDB document by an ObjectID
validate_data

Validate data based on specified rules
checkLuhn

Check if a number passes the Luhn algorithm
read_data

Read and format data from csv or xlsx files
test_profanity

Test for profanity in a string
read_rules

Read rules from a file
remote_raw_download

Download raw data from remote sources
remote_share

Share your validated data
remote_download

Download structured data from remote sources
reformat_rules

Reformat the rules
test_rules

Rules data
valid_example

Valid example data
check_images

Check and format image URLs
check_exists_in_zip

Check if a file exists in a zip file
check_for_malicious_files

Check for malicious files
create_valid_excel

Create a formatted Excel file based on validation rules
download_all

Download all data alternative
is.POSIXct

Check if an object is of class POSIXct
invalid_example

Invalid example data
certificate_df

Generate a data frame with certificate information
check_other_hyperlinks

Check and format non-image hyperlinks
rules_broken

Check which rules were broken
name_data

Name datasets
rows_for_rules

Check which rows in the data violated the rules