project {mining}R Documentation

Project data into fewer dimensions

Description

Reduces the dimensionality of a data set.

Usage

project(x,w)

Arguments

x a data frame
w a matrix with named rows and columns

Details

Each column of w specifies a new variable, which is to be constructed by combining existing variables according to the given weights.

Value

A data frame where the variables named in the rows of w are replaced by new variables named in the columns of w. Other variables are left unchanged.

Author(s)

Tom Minka

See Also

pca, projection, plot.axes

Examples

data(iris)
w = projection(iris,k=2)
# w only involves the continuous attributes
# the new variables are h1 and h2
x = project(iris,w)
color.plot(x)
plot.axes(w)

[Package Contents]