num2fac: Function that creates a factor vector out of a numerical vector.
Description
Function that creates a factor vector out of a numerical vector.Usage
num2fac(num, method="pretty", num_scale="auto", n=0, brks=NA)
Arguments
method
"pretty"
intervals are determined by the base functionpretty
"kmeans"
the method intervals are determined by the method kmeans wheren
clusters (i.e. interv
num_scale
"auto"
used scale is determined automatically"lin"
num
is directly fed to the method pretty or kmeans"log"
a logarithmic transformation ofnum
is fed to the method pretty
n
the (desired) number of levels. n=0
means automatic
brks
breaks that determine the levels (only required when method="fixed"
)
Details
Creates a factor vector out of a numerical vector. The levels can be determined by several methods. This function can be called via tableGUI
.