# NOT RUN {
## loads the data
data(puechabon)
kasc <- puechabon$kasc
image(kasc)
## scales all the variables
toto <- convnum(kasc)
image(toto$kasc)
## the Aspect has four levels:
## four variables have been defined.
toto$weight
## The sum of the weights given to each
## level of aspect is equal to:
toto$weight[2:5]
sum(toto$weight[2:5])
## The same weight is therefore given to the factor variable Aspect and
## to any continuous variable, e.g. the elevation.
# }
Run the code above in your browser using DataLab