R/trendMatrix.update.R

Defines functions trendMatrix.update

Documented in trendMatrix.update

trendMatrix.update <- function(model, Xnew) { 

		colnames(Xnew) <- colnames(model@X)
		rownames(Xnew) <- nrow(model@X) + 1:nrow(Xnew)
		Fnew <- model.matrix(model@trend.formula, data=Xnew)
		Fupdated <- rbind(model@F, Fnew)
		return(Fupdated)	
}

Try the DiceKriging package in your browser

Any scripts or data that you put into this service are public.

DiceKriging documentation built on Feb. 24, 2021, 1:07 a.m.