poly.raw(x, degree=1, xname=<<see below>>, coefs)
The output of poly.raw(x, degree) is identical to that of poly(x, degree), and in fact poly.raw is the workhorse for poly. The basis matrix has two attributes: degree gives the degree for each column, while coefs contains the normalization constants used to construct the orthonormal polynomials. These can be used in subsequent calls to poly.raw with different values for x, in order to evaluate the same polynomial basis functions at different abscissa values.
basis <- poly.raw(x, 5) # generate a basis for 5th degree polynomials basis2 <- poly.raw( x2, 5, coefs = attr(basis,"coefs")) # evaluate the same quintic basis functions at different values of x