convert {StratigrapheR} | R Documentation |
Converts x values having an index into n values defined by the same y index
Description
Converts x values having an index (of y values for instance) into n values defined by the same index (but having possibly more values)
Usage
convert(x, xindex, n, nindex)
Arguments
x |
a vector |
xindex |
the index for each x value (vector of same length than x) |
n |
a vector of the values into which to convert the x values |
nindex |
the index for each n value (vector of same length than n) |
Examples
x <- c(10,20)
xindex <- c(1,2)
n <- seq(0.1,1,by = 0.1)
nindex <- 1:length(n)
convert(x,xindex,n,nindex)
[Package StratigrapheR version 1.3.1 Index]