db.add.CL {RGeostats} | R Documentation |
Add some linear combinations of existing variables in a Db
db.add.CL(db, Y.names, Z.names, mat.CL)
db |
The |
Y.names |
A vector containing the names of the input variables |
Z.names |
A vector containing the names assigned to the resulting variables |
mat.CL |
Matrix giving the coefficients of the linear combinations going from the set of input variables Y_1,...,Y_p to the set of final variables Z_1,...,Z_n. It must have dimension (n,p). |
For a matrix A[n,p] and a set of p input variables Y_1,...,Y_p, it computes the values of the set of n output variables Z_1,...,Z_n deduced from the linear transform: Z = A x Y.
The resulting db-class
containing the newly added variables.