Code Monkey home page Code Monkey logo

datamods's Introduction

datamods

Shiny modules to import and manipulate data into an application or addin.

version codecov cranlogs R-CMD-check

Overview

This package provides custom shiny modules to import data from various sources, select, rename and convert variables in a dataset and validate content with validate package.
The modules can be used in any standard shiny application or RStudio add-in.

Internationalization

Currently you can use {datamods} in the following language: english (default), french, macedonian, brazilian portuguese, albanian, chinese, spanish, german, turkish, korean, polish, japanese.

If you want another language to be supported, you can submit a Pull Request to add a CSV file like the one used for french (file is located in inst/i18n folder in the package, you can see it here on GitHub).

See the online vignette for more on this topic.

Installation

Install from CRAN with:

install.packages("datamods")

You can install the development version of datamods from GitHub with:

remotes::install_github("dreamRs/datamods")

Import

Import data from:

  • environment: such as Global environment or from a package
  • file: text files, Excel, SAS or SPSS format… anything that package rio can handle
  • copy/paste: paste data from an other source like Excel or text file
  • Google Sheet: use the URL to import the Googlesheet
  • URL: use a URL to import from a flat table

Each module is available in the form import_file_ui() / import_file_server() and can be use independently.

Or all modules can be launched together in a modal window via import_modal() / import_server():

This module also allow to view imported data and to update variables.

Update

Module update_variables_ui() / update_variables_server() allow to:

  • select variables of interest in a dataset
  • rename variables to be used in application after that
  • convert variables to change their class, from character to numeric for example

Validate

Define some validation rules with package validate and check whether data lives up to those expectations.

Filter

Interactively filter a data.frame, this module also generates the code to reproduce the filters.

Sample

Interactively sample a data.frame:

Edit

Interactively edit a data.frame:

datamods's People

Contributors

bellma-lilly avatar bobknob23987 avatar chabrault avatar edild avatar eduardszoecs avatar feddelegrand7 avatar gabrielteotonio avatar ggsamra avatar istiak04 avatar jakub-jedrusiak avatar novica avatar pvictor avatar sbalci avatar shahreyar-abeer avatar xmusphlkg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.