Nothing
#'An auxialiary function to quickly construct the polyomial matrix,
#'using Horner's rule
#'
#'@param x The base
#'@param nc the number of columns
#'
#'@return A matrix with increasing powers of x in the columns
buildXmat = function(x, nc){
x.mat <- matrix(1, nrow = length(x), ncol = nc)
for(k in seq_len(nc)[-1]){
x.mat[,seq(k,nc)] <- x.mat[,seq(k,nc)]*x
}
x.mat
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.