3: Tipos de datos
- Page ID
- 149998
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)
To process data it is not enough just to obtain them. You need to convert it to the appropriate format, typically to numbers. Since Galileo Galilei, who urged to “measure what can be measured, and make measurable what cannot be measured”, European science aggregated tremendous experience in transferring surrounding events into numbers. Most of our instruments are devices which translate environment features (e.g., temperature, distance) to the numerical language.
- 3.3: Colores, Nombres y Sexos - Datos Nominal
- Los datos nominales o categóricos, a diferencia de los clasificados, son imposibles de ordenar o alinear. Están aún más lejos de los números. Por ejemplo, si asignamos valores numéricos a machos y hembras (digamos, “1” y “2”), no implicaría que un sexo es de alguna manera “más grande” que el otro. Un valor intermedio (como “1.5”) también es difícil de imaginar. En consecuencia, los índices nominales pueden etiquetarse con cualquier letra, palabra o carácter especial, no importa.
- 3.8: Interior R
- Los vectores en modos y factores numéricos, lógicos o de carácter son suficientes para representar datos simples. Sin embargo, si los datos son estructurados y/o variables, frecuentemente se necesitan objetos R más complicados: matrices, listas y marcos de datos.