jtRaw: Sales data collection

Description Usage Arguments Value Examples

View source: R/jtRaw.R

Description

Function to read the data from the file / only shiny

Usage

1
jtRaw(file = input$raw_file)

Arguments

file

list with stores datapath element containing the path to the file

Value

Returns table with original data structure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
jtRaw(input$raw_file)

To get the data in the local session use `data/przyklad1.csv`
from `joint-hubs/sales`. Find more details in `joint-hubs/sales/getappdata.r`

table_jtRaw <- jtRaw(input$raw_file)

table_readcsv <- read.csv("../data/przyklad1.csv",
                  stringsAsFactors = FALSE) %>%
                  janitor::clean_names()

identical(table_jtRaw, table_readcsv)
[1] TRUE

joint-hubs/jointhubs documentation built on Feb. 22, 2021, 3:54 a.m.