is_dataset: Is it a dataset formatted for a SuSnowDB ? Are they all...

is_datasetR Documentation

Is it a dataset formatted for a SuSnowDB ? Are they all datasets formatted for a SuSnowDB ?

Description

Is it a dataset formatted for a SuSnowDB ? Are they all datasets formatted for a SuSnowDB ?

Usage

is_dataset(
  x,
  nn_measurement_types = default_nn_measurement_types(),
  nn_locations = default_nn_locations(),
  nn_measurements = default_nn_measurements()
)

are_all_datasets(
  x,
  ...,
  nn_measurement_types = default_nn_measurement_types(),
  nn_locations = default_nn_locations(),
  nn_measurements = default_nn_measurements()
)

Arguments

x

a generic object or a dataset, e.g. an object returned by gsodr_dataset OR a list of these objects.

nn_measurement_types

see add_measurement_types_into_ssdb.

nn_locations

see add_locations_into_ssdb.

nn_measurements

see see add_measurements_into_ssdb.

...

further arguments, other object like x

Examples

 library(readr)
 x <- system.file("west_africa_gsod_extdata/gsod_bf.csv",package="SuSnowDB") %>% read_csv()
 val <- gsodr_dataset(x=x)
 out <- is_dataset(val)
 
 val2 <- data.frame(a=3,b=1:10)
 out2 <- is_dataset(val2)

 are_all_datasets(val,val2)
 are_all_datasets(list(val,val2))
 
 

ecor/SuSnowDB documentation built on Jan. 2, 2023, midnight