Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

AssignDataAlien

Simulated assignment dataset


Description

This dataset contains simulated hydrogen delta values. The data can be used as an example to perform assignments using the function isofind.

Format

A dataframe with 10 observations on 2 variables:

[, 1] sample_ID (Factor) Identification of the sample
[, 2] sample_value (numeric) Hydrogen delta value of the tissue

See Also

isofind to perform assignments

Examples

head(AssignDataAlien)
str(AssignDataAlien)

## The examples below will only be run if sufficient time is allowed
## You can change that by typing e.g. options_IsoriX(example_maxtime = XX)
## if you want to allow for examples taking up to ca. XX seconds to run
## (so don't write XX but put a number instead!)

if(getOption_IsoriX("example_maxtime") > 30) {

## The following describes how we created such dataset

### We prepare the precipitation data
GNIPDataDEagg <- prepsources(data = GNIPDataDE)

### We fit the models for Germany
GermanFit <- isofit(data = GNIPDataDEagg)

### We build the isoscape
GermanScape <- isoscape(raster = ElevRasterDE, isofit = GermanFit)

### We create a simulated dataset with 1 site and 10 observations
set.seed(1L)
Aliens <- create_aliens(calib_fn = list(intercept = 3, slope = 0.5, resid_var = 5),
                        isoscape = GermanScape,
                        raster = ElevRasterDE,
                        coordinates = data.frame(site_ID = "Berlin",
                                                 long   = 13.52134,
                                                 lat    = 52.50598),
                        n_sites = 1,
                        min_n_samples = 10,
                        max_n_samples = 10)
AssignDataAlien <- Aliens[, c("sample_ID", "sample_value")]

### Uncomment the following to store the file as we did
#save(AssignDataAlien, file = "AssignDataAlien.rda", compress = "xz")

}

IsoriX

Isoscape Computation and Inference of Spatial Origins using Mixed Models

v0.8.2
GPL (>= 2)
Authors
Alexandre Courtiol [aut, cre] (<https://orcid.org/0000-0003-0637-2959>), François Rousset [aut] (<https://orcid.org/0000-0003-4670-0371>), Marie-Sophie Rohwaeder [aut], Stephanie Kramer-Schadt [aut] (<https://orcid.org/0000-0002-9269-4446>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.