{"id":14004,"date":"2019-06-04T09:57:16","date_gmt":"2019-06-04T09:57:16","guid":{"rendered":"http:\/\/cio.edu.umh.es\/?p=14004"},"modified":"2019-06-04T09:57:16","modified_gmt":"2019-06-04T09:57:16","slug":"tipos-basicos-de-datos-en-r","status":"publish","type":"post","link":"https:\/\/cio.umh.es\/en\/2019\/06\/04\/tipos-basicos-de-datos-en-r\/","title":{"rendered":"Tipos b\u00e1sicos de datos en R"},"content":{"rendered":"<p>[:es]<span style=\"color: #000000\">En R, como en otros lenguajes de programaci\u00f3n, hay tres tipos b\u00e1sicos de datos: <strong>num\u00e9ricos<\/strong>, <strong>cadenas de caracteres<\/strong> y <strong>booleanos<\/strong>. \u00a1Veamos cada uno de ellos!<\/span><\/p>\n<h3><\/h3>\n<h3><\/h3>\n<h3><strong>Num\u00e9ricos<\/strong><\/h3>\n<ul>\n<li><span style=\"color: #000000\">Son todos los datos formados por <strong>n\u00fameros reales<\/strong>.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cio.umh.es\/en\/files\/2019\/06\/Fotograf\u00eda-1.jpg\/\"><img loading=\"lazy\" class=\"aligncenter  wp-image-14005\" src=\"https:\/\/cio.umh.es\/files\/2019\/06\/Fotograf\u00eda-1.jpg\" alt=\"Fotograf\u00eda 1\" width=\"290\" height=\"172\" \/><\/a><\/p>\n<h3><\/h3>\n<h3><\/h3>\n<h3><strong>Caracteres<\/strong><\/h3>\n<ul>\n<li><span style=\"color: #000000\">Son datos formados por <strong>caracteres y n\u00fameros<\/strong>, se deben asignar entrecomillados.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cio.umh.es\/en\/files\/2019\/06\/Fotograf\u00eda-2.jpg\/\"><img loading=\"lazy\" class=\"aligncenter  wp-image-14006\" src=\"https:\/\/cio.umh.es\/files\/2019\/06\/Fotograf\u00eda-2.jpg\" alt=\"Fotograf\u00eda 2\" width=\"289\" height=\"238\" \/><\/a><\/p>\n<h3><\/h3>\n<h3><\/h3>\n<h3><strong>Booleanos o l\u00f3gicos<\/strong><\/h3>\n<ul>\n<li><span style=\"color: #000000\">Los datos l\u00f3gicos est\u00e1n formados por los <strong>valores l\u00f3gicos<\/strong> Verdadero (True) y Falso (False).<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cio.umh.es\/en\/files\/2019\/06\/Fotograf\u00eda-3.jpg\/\"><img loading=\"lazy\" class=\"wp-image-14007 aligncenter\" src=\"https:\/\/cio.umh.es\/files\/2019\/06\/Fotograf\u00eda-3.jpg\" alt=\"Fotograf\u00eda 3\" width=\"287\" height=\"270\" \/><\/a><\/p>\n<h3><\/h3>\n<h3><\/h3>\n<h3><strong>Conversi\u00f3n<\/strong><\/h3>\n<ul>\n<li><span style=\"color: #000000\">Desde R podemos jugar con los datos y forzar la conversi\u00f3n de un tipo de datos en otro con el comando <strong><em>as.clase(x)<\/em><\/strong>.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/cio.umh.es\/en\/files\/2019\/06\/Collage.jpg\/\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-14008\" src=\"https:\/\/cio.umh.es\/files\/2019\/06\/Collage.jpg\" alt=\"Collage\" width=\"937\" height=\"223\" \/><\/a>[:]<\/p>","protected":false},"excerpt":{"rendered":"<p>[:es]En R, como en otros lenguajes de programaci\u00f3n, hay tres tipos b\u00e1sicos de datos: num\u00e9ricos, cadenas de caracteres y booleanos. \u00a1Veamos cada uno de ellos!<\/p>\n<p>Num\u00e9ricos<\/p>\n<p>Son todos los datos formados por n\u00fameros reales.<\/p>\n<p>Caracteres<\/p>\n<p>Son datos formados por caracteres y n\u00fameros, se deben asignar entrecomillados.<\/p>\n<p>Booleanos o l\u00f3gicos<\/p>\n<p>Los datos l\u00f3gicos est\u00e1n formados por los valores l\u00f3gicos Verdadero (True) y [&#8230;]<\/p>","protected":false},"author":3477,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[371382],"tags":[],"_links":{"self":[{"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/posts\/14004"}],"collection":[{"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/users\/3477"}],"replies":[{"embeddable":true,"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/comments?post=14004"}],"version-history":[{"count":0,"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/posts\/14004\/revisions"}],"wp:attachment":[{"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/media?parent=14004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/categories?post=14004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cio.umh.es\/en\/wp-json\/wp\/v2\/tags?post=14004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}