bind_data: Bind data to project

Description Usage Arguments

View source: R/main.R

Description

Load data into a rgeoprofile_project prior to analysis. Data must be formatted as a dataframe with the formatting described bellow.

Usage

1
bind_data(project, df, data_type, name = NULL, check_delete_output = TRUE)

Arguments

project

an rgeoprofile_project, as produced by the function rgeoprofile_project()

df

a dataframe with columns that must conform to the following rules:

  • for data_type = "counts", data must have columns "longitude", "latitude" and "counts".

  • for data_type = "prevalence", data must have columns "longitude", "latitude", "tested" and "positive"

  • for data_type = "point-pattern", data must have columns "longitude", "latitude"

data_type

the type of data, either "counts", "prevalence" or "point-pattern"

name

optional name of the data set to aid in record keeping

check_delete_output

whether to prompt the user before overwriting existing data


Michael-Stevens-27/silverblaze documentation built on May 28, 2021, 5:47 p.m.