Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

dreamRs/datamods

Repository files navigation

Shiny modules to import and manipulate data into an application oraddin.

CRAN statuscranlogsR-CMD-checkCodecov test coverage

Overview

This package provides custom shiny modules to import data from varioussources, select, rename and convert variables in a dataset and validatecontent withvalidatepackage.
The modules can be used in any standard shiny application or RStudioadd-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 PullRequest to add a CSV file like the one used for french (file is locatedininst/i18n folder in the package, you can see ithere onGitHub).

See theonlinevignette formore on this topic.

Installation

Install fromCRAN with:

install.packages("datamods")

You can install the development version of datamods fromGitHub 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 packagerio canhandle
  • copy/paste: paste data from an other source like Excel or textfile
  • 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 formimport_file_ui() /import_file_server() and can be use independently.

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

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

Update

Moduleupdate_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 numericfor example

Validate

Define some validation rules with packagevalidate and check whetherdata lives up to those expectations.

Filter

Interactively filter adata.frame, this module also generates the codeto reproduce the filters.

Sample

This module extracts a sample from adata.frame, based either on afixed number of rows or on a percentage of total rows.

Edit

This module makes adata.frame editable, allowing the user to add,modify or delete rows.

Create column

This module allow to enter an expression to create a new column in adata.frame.

Cut numeric variable

This module contain an interface to cut a numeric into severalintervals.

Update factor

This module contain an interface to reorder the levels of a factorvariable.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors19


[8]ページ先頭

©2009-2025 Movatter.jp