tune_Data: Tune data for experimental purpose

Description Usage Arguments Value Function version How to cite Note Author(s) Examples

View source: R/tune_Data.R

Description

The error can be reduced and sample size increased for specific purpose.

Usage

1
tune_Data(data, decrease.error = 0, increase.data = 0)

Arguments

data

data.frame (required): input values, structure: data (values[,1]) and data error (values [,2]) are required

decrease.error

numeric: factor by which the error is decreased, ranges between 0 and 1.

increase.data

numeric: factor by which the error is decreased, ranges between 0 and inf.

Value

Returns a data.frame with tuned values.

Function version

0.5.0

How to cite

Dietze, M., 2020. tune_Data(): Tune data for experimental purpose. Function version 0.5.0. In: Kreutzer, S., Burow, C., Dietze, M., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J., 2020. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.9.7. https://CRAN.R-project.org/package=Luminescence

Note

You should not use this function to improve your poor data set!

Author(s)

Michael Dietze, GFZ Potsdam (Germany) , RLum Developer Team

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## load example data set
data(ExampleData.DeValues, envir = environment())
x <- ExampleData.DeValues$CA1

## plot original data
plot_AbanicoPlot(data = x,
                 summary = c("n", "mean"))

## decrease error by 10 %
plot_AbanicoPlot(data = tune_Data(x, decrease.error = 0.1),
                 summary = c("n", "mean"))

## increase sample size by 200 %
#plot_AbanicoPlot(data = tune_Data(x, increase.data = 2) ,
#                summary = c("n", "mean"))

R-Lum/Luminescence documentation built on Jan. 4, 2020, 10:44 p.m.