prepare_data: A function that generates useful objects for the package from...

View source: R/prepare_data.R

prepare_dataR Documentation

A function that generates useful objects for the package from the database

Description

An auxiliary function to generate useful objects for the other functions in this package. Function prepare_data has the goal of receiving the database of the user to generate important variables that will be used in the MCMC. And in the end to generate the synthetic coordinates. In the input, the function receives the parameters: dataset, coord, limits, grid, continuous.

Usage

prepare_data(dataset, coord, limits = c(), grid = 10, continuous = FALSE)

Arguments

dataset

A data frame with all the information except the coordinates

coord

An object with two columns indicating the longitude and latitude respectively of the elements in the dataset

limits

An object that is a vector of the dimensions where will be create the grids passed through the sequence of xmin, xmax, ymin, ymax. The default is create by using the maximum and the minimum of the coords object.

grid

The grid represents the quantities of divisions that will be made in the location. Bigger the grid, closer the synthetic coordinates are to the real coordinates. With a default result of (grid = 10)

continuous

An object that indicates which columns in the dataset correspond to continuous variables. The default is FALSE which means that there is none continuous variable. (Still not adapted for cases with more than one continuous variable)

Value

A list containing useful objects to the mcmc function.

References

NUNES, Letícia. Métodos de Simulação de Dados Geográficos Sintéticos Para Bases Confidenciais. *Dissertação de Mestrado*, [s. l.], 2018. Disponível em: :{http//est.ufmg.br/portal/arquivos/mestrado/dissertacoes/dissertacao_Leticia_Silva_Nunes.pdf


leogalhardo/leo_galhardo documentation built on June 13, 2025, 12:40 p.m.