powered by
Converts x values having an index (of y values for instance) into n values defined by the same index (but having possibly more values)
convert(x, xindex, n, nindex)
a vector
the index for each x value (vector of same length than x)
a vector of the values into which to convert the x values
the index for each n value (vector of same length than n)
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)
Run the code above in your browser using DataLab