SaveRuuviAsJson: read ruuvi data from local machine

Description Usage Arguments Value Examples

View source: R/ruuvifunctions.R

Description

SaveRuuviAsJson data as json

Usage

1
SaveRuuviAsJson(data, pathRuuviExport = NULL, filenamejson = NULL)

Arguments

data

data

pathRuuviExport

path to json file

filenamejson

clean.field.names

Value

This function returns N ruuvi exports (in the selected folder) as one data frame object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 ## Not run: 

  p <- SetupRuuviR(p = NULL, username = "talonendm", printparameters = TRUE)

  rd1 <- LoadRuuviExports(
     pathRuuvitag = 'C:/Users/talon_000/Dropbox/2021/ruuvi/m210829',
     clean.field.names = FALSE
  )

  rd2 <- RuuviR::MakeDataWide(data = rd1)

  SaveRuuviAsJson(data = rd2,
   pathRuuviExport = p$path.json.export,
   filenamejson = p$ruuvi.datetag
  )

  # https://dl.dropboxusercontent.com/s/ywk9qitmuq5digf/m210829.json?dl=0

 
## End(Not run)

talonendm/RuuviR documentation built on Dec. 23, 2021, 7:44 a.m.