splitmix: splitmix

Description Usage Arguments Value Examples

Description

Splits a mixed data matrix in two data sets: one with the quantitative variables and one with the qualitative variables. Here, the columns of class "integer are considered quantitative. If you want this column to be considered as qualitative, it must be of class character of factor.

Usage

1

Arguments

data

a data matrix or a data.frame with a mixture of quantitative and qualitative variables.

Value

X.quanti

a data matrix containing only the quantitative variables.

X.quali

A data.frame containing only the qualitative variables.

Examples

1
2
3
4
data(decathlon)
data.split <- splitmix(decathlon)
data.split$X.quanti
data.split$X.quali

Example output

Warning message:
In splitmix(decathlon) :
  Columns of class integer are considered as quantitative
            X100m Long.jump Shot.put High.jump X400m X110m.hurdle Discus
SEBRLE      11.04      7.58    14.83      2.07 49.81        14.69  43.75
CLAY        10.76      7.40    14.26      1.86 49.37        14.05  50.72
KARPOV      11.02      7.30    14.77      2.04 48.37        14.09  48.95
BERNARD     11.02      7.23    14.25      1.92 48.93        14.99  40.87
YURKOV      11.34      7.09    15.19      2.10 50.42        15.31  46.26
WARNERS     11.11      7.60    14.31      1.98 48.68        14.23  41.10
ZSIVOCZKY   11.13      7.30    13.48      2.01 48.62        14.17  45.67
McMULLEN    10.83      7.31    13.76      2.13 49.91        14.38  44.41
MARTINEAU   11.64      6.81    14.57      1.95 50.14        14.93  47.60
HERNU       11.37      7.56    14.41      1.86 51.10        15.06  44.99
BARRAS      11.33      6.97    14.09      1.95 49.48        14.48  42.10
NOOL        11.33      7.27    12.68      1.98 49.20        15.29  37.92
BOURGUIGNON 11.36      6.80    13.46      1.86 51.16        15.67  40.49
Sebrle      10.85      7.84    16.36      2.12 48.36        14.05  48.72
Clay        10.44      7.96    15.23      2.06 49.19        14.13  50.11
Karpov      10.50      7.81    15.93      2.09 46.81        13.97  51.65
Macey       10.89      7.47    15.73      2.15 48.97        14.56  48.34
Warners     10.62      7.74    14.48      1.97 47.97        14.01  43.73
Zsivoczky   10.91      7.14    15.31      2.12 49.40        14.95  45.62
Hernu       10.97      7.19    14.65      2.03 48.73        14.25  44.72
Nool        10.80      7.53    14.26      1.88 48.81        14.80  42.05
Bernard     10.69      7.48    14.80      2.12 49.13        14.17  44.75
Schwarzl    10.98      7.49    14.01      1.94 49.76        14.25  42.43
Pogorelov   10.95      7.31    15.10      2.06 50.79        14.21  44.60
Schoenbeck  10.90      7.30    14.77      1.88 50.30        14.34  44.41
Barras      11.14      6.99    14.91      1.94 49.41        14.37  44.83
Smith       10.85      6.81    15.24      1.91 49.27        14.01  49.02
Averyanov   10.55      7.34    14.44      1.94 49.72        14.39  39.88
Ojaniemi    10.68      7.50    14.97      1.94 49.12        15.01  40.35
Smirnov     10.89      7.07    13.88      1.94 49.11        14.77  42.47
Qi          11.06      7.34    13.55      1.97 49.65        14.78  45.13
Drews       10.87      7.38    13.07      1.88 48.51        14.01  40.11
Parkhomenko 11.14      6.61    15.69      2.03 51.04        14.88  41.90
Terek       10.92      6.94    15.15      1.94 49.56        15.12  45.62
Gomez       11.08      7.26    14.57      1.85 48.61        14.41  40.95
Turi        11.08      6.91    13.62      2.03 51.67        14.26  39.83
Lorenzo     11.10      7.03    13.22      1.85 49.34        15.38  40.22
Karlivans   11.33      7.26    13.30      1.97 50.54        14.98  43.34
Korkizoglou 10.86      7.07    14.81      1.94 51.16        14.96  46.07
Uldal       11.23      6.99    13.53      1.85 50.95        15.09  43.01
Casarsa     11.36      6.68    14.92      1.94 53.20        15.39  48.66
            Pole.vault Javeline X1500m Rank Points
SEBRLE            5.02    63.19 291.70    1   8217
CLAY              4.92    60.15 301.50    2   8122
KARPOV            4.92    50.31 300.20    3   8099
BERNARD           5.32    62.77 280.10    4   8067
YURKOV            4.72    63.44 276.40    5   8036
WARNERS           4.92    51.77 278.10    6   8030
ZSIVOCZKY         4.42    55.37 268.00    7   8004
McMULLEN          4.42    56.37 285.10    8   7995
MARTINEAU         4.92    52.33 262.10    9   7802
HERNU             4.82    57.19 285.10   10   7733
BARRAS            4.72    55.40 282.00   11   7708
NOOL              4.62    57.44 266.60   12   7651
BOURGUIGNON       5.02    54.68 291.70   13   7313
Sebrle            5.00    70.52 280.01    1   8893
Clay              4.90    69.71 282.00    2   8820
Karpov            4.60    55.54 278.11    3   8725
Macey             4.40    58.46 265.42    4   8414
Warners           4.90    55.39 278.05    5   8343
Zsivoczky         4.70    63.45 269.54    6   8287
Hernu             4.80    57.76 264.35    7   8237
Nool              5.40    61.33 276.33    8   8235
Bernard           4.40    55.27 276.31    9   8225
Schwarzl          5.10    56.32 273.56   10   8102
Pogorelov         5.00    53.45 287.63   11   8084
Schoenbeck        5.00    60.89 278.82   12   8077
Barras            4.60    64.55 267.09   13   8067
Smith             4.20    61.52 272.74   14   8023
Averyanov         4.80    54.51 271.02   15   8021
Ojaniemi          4.60    59.26 275.71   16   8006
Smirnov           4.70    60.88 263.31   17   7993
Qi                4.50    60.79 272.63   18   7934
Drews             5.00    51.53 274.21   19   7926
Parkhomenko       4.80    65.82 277.94   20   7918
Terek             5.30    50.62 290.36   21   7893
Gomez             4.40    60.71 269.70   22   7865
Turi              4.80    59.34 290.01   23   7708
Lorenzo           4.50    58.36 263.08   24   7592
Karlivans         4.50    52.92 278.67   25   7583
Korkizoglou       4.70    53.05 317.00   26   7573
Uldal             4.50    60.00 281.70   27   7495
Casarsa           4.40    58.62 296.12   28   7404
            Competition
SEBRLE         Decastar
CLAY           Decastar
KARPOV         Decastar
BERNARD        Decastar
YURKOV         Decastar
WARNERS        Decastar
ZSIVOCZKY      Decastar
McMULLEN       Decastar
MARTINEAU      Decastar
HERNU          Decastar
BARRAS         Decastar
NOOL           Decastar
BOURGUIGNON    Decastar
Sebrle         OlympicG
Clay           OlympicG
Karpov         OlympicG
Macey          OlympicG
Warners        OlympicG
Zsivoczky      OlympicG
Hernu          OlympicG
Nool           OlympicG
Bernard        OlympicG
Schwarzl       OlympicG
Pogorelov      OlympicG
Schoenbeck     OlympicG
Barras         OlympicG
Smith          OlympicG
Averyanov      OlympicG
Ojaniemi       OlympicG
Smirnov        OlympicG
Qi             OlympicG
Drews          OlympicG
Parkhomenko    OlympicG
Terek          OlympicG
Gomez          OlympicG
Turi           OlympicG
Lorenzo        OlympicG
Karlivans      OlympicG
Korkizoglou    OlympicG
Uldal          OlympicG
Casarsa        OlympicG

PCAmixdata documentation built on May 2, 2019, 12:38 p.m.