{"id":3284,"date":"2022-07-21T09:26:36","date_gmt":"2022-07-21T09:26:36","guid":{"rendered":"https:\/\/ricovictor.com\/?p=3284"},"modified":"2022-07-21T09:43:53","modified_gmt":"2022-07-21T09:43:53","slug":"aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4","status":"publish","type":"post","link":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/","title":{"rendered":"Aprende a programar en R desde 0 | Estructuras de Datos:  Arrays y Series de Tiempo | Clase 3 Y 4"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3284\" class=\"elementor elementor-3284\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1013c6f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1013c6f\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-46f3ec1\" data-id=\"46f3ec1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1ac8ec1 elementor-widget elementor-widget-video\" data-id=\"1ac8ec1\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/eHFfkfp3QOk&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5417800\" data-id=\"5417800\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d364413 elementor-widget elementor-widget-video\" data-id=\"d364413\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/TXhYCl90EMY&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d49db25 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d49db25\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c9ff3c1\" data-id=\"c9ff3c1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5e8ca28 elementor-widget elementor-widget-text-editor\" data-id=\"5e8ca28\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p><strong>C\u00d3DIGO EN R DE LOS VIDEOS<\/strong><\/p><p><br \/>###<\/p><p>### ARRAYS<\/p><p>#son vectores con un atributo de dimensi\u00f3n que especifica m\u00e1s de dos<br \/>#dimensiones.Un vector es un array unidimensional y una matriz es un array de dos<br \/>#matriz dimensional<\/p><p>x &lt;- 1:8<br \/>dim(x) &lt;- c(2, 2, 2)<\/p><p>#c(fila,columa,subdivision)<br \/>x<\/p><p><br \/>x &lt;- 1:9<br \/>x<br \/>dim(x)&lt;- c(3,3,1)<br \/>x<br \/>dim(x)&lt;- c(3,1,3)<br \/>x<\/p><p>nuevo_array &lt;- array(c(1:8, 11:18, 111:118), dim = c(2, 4, 3))<br \/>nuevo_array<\/p><p><br \/>nuevo&lt;- array(c(2,10,11,1,2,3,5,8,45),dim = c(1, 3, 3))<br \/>nuevo<\/p><p>\u00a0<\/p><p>\u00a0<\/p><p># LISTAS<\/p><p><br \/>#Una lista es un vector. Sin embargo, el contenido de una lista puede ser un <br \/>#objeto de cualquier tipo Y estructura. As\u00ed que una lista podr\u00eda contener otra<br \/>#lista<\/p><p># crear listas = funci\u00f3n list<\/p><p>x1 &lt;- 1:5<br \/>x1<br \/>x2 &lt;- c(TRUE, TRUE, FALSE, FALSE, TRUE)<br \/>x2<\/p><p>myList &lt;- list(numbers = x1, wrong = x2)<br \/>myList<\/p><p>myList[[1]]<br \/>myList[[2]]<\/p><p>#???se pueden cambiar el nombre de la lista con names<\/p><p>names(myList) &lt;- c(\u00ablots\u00bb, \u00abvalid\u00bb)<br \/>myList<\/p><p>#A\u00f1adir componente a la lista<\/p><p>myList[[3]] &lt;- 1:50<br \/>myList$test &lt;- \u00abhello\u00bb<\/p><p>myList<\/p><p>#la diferencia entre poner [1] o [[2]]<\/p><p>myList[1]<\/p><p>myList[[1]]<\/p><p>#Tenga en cuenta que cuando se utilizan corchetes simples, se devuelve el componente<br \/>#como lista porque extrae el primer elemento de una lista que es una lista, <br \/>#mientras que los corchetes dobles devuelven el componente mismo del elemento<\/p><p><br \/>#Trasofrmar objetos en list con as.List<\/p><p>x&lt;- c(2,7,9,4)<br \/>x<br \/>list_x&lt;-as.list(x)<br \/>list_x<\/p><p># LISTAs vamos a encontra en una gran cantidad de modelos y organizaciones de datos<br \/>#Ejemplo modelo de regresion<\/p><p>Ahorro &lt;- c(61,68.6,63.6,89.6, 97.6,104.4,96.4,92.5,112.6,130.1,161.8,199.1,205.5,<br \/>167,235.7,206.2,196.5,168.4,189.1,187.8,208.7,246.4,272.6,214.4,189.4,249.3)<\/p><p>Ingreso &lt;- c( 727.1,790.2,855.3,965, 1054.2,1159.2,1273,1401.4,1580.1,1769.5,1973.3,2200.2,2347.3,<br \/>2522.4,2810,3002,3187.6,3363.1,3640.8,3894.5,4166.8,4343.7,4613.7,4790.2,<br \/>5021.7,5320.8)<\/p><p>plot(Ahorro,type=\u00bbl\u00bb)<br \/>plot(Ingreso,type=\u00bbl\u00bb)<\/p><p>s &lt;- as.Date(\u00ab1970-12-31\u00bb)<br \/>e &lt;- as.Date(\u00ab1995-12-31\u00bb)<\/p><p>seq(from=s, to=e, by=\u00bbyear\u00bb)<\/p><p>A\u00f1o &lt;- seq(from=s, to=e, by=\u00bbyear\u00bb)<\/p><p>tabla_ahorro_ingres &lt;- data.frame(A\u00f1o,Ahorro,Ingreso)<\/p><p><br \/># CREAMOS UN MODELO DE REGRESI\u00d3N<\/p><p>ML_1 &lt;- lm(tabla_ahorro_ingres$Ahorro~tabla_ahorro_ingres$Ingreso)<br \/>summary(ML_1)<\/p><p>ML_1[[1]]<br \/>ML_1[[2]]<\/p><p>\u00a0<\/p><p>\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>https:\/\/youtu.be\/eHFfkfp3QOkhttps:\/\/youtu.be\/TXhYCl90EMY C\u00d3DIGO EN R DE LOS VIDEOS ### ### ARRAYS #son vectores con un atributo de dimensi\u00f3n que especifica m\u00e1s de dos#dimensiones.Un vector es un array unidimensional y una matriz es un array de dos#matriz dimensional x &lt;- 1:8dim(x) &lt;- c(2, 2, 2) #c(fila,columa,subdivision)x x &lt;- 1:9xdim(x)&lt;- c(3,3,1)xdim(x)&lt;- c(3,1,3)x nuevo_array &lt;- array(c(1:8, 11:18, 111:118), dim &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\"> <span class=\"screen-reader-text\">Aprende a programar en R desde 0 | Estructuras de Datos:  Arrays y Series de Tiempo | Clase 3 Y 4<\/span> Leer m\u00e1s &raquo;<\/a><\/p>\n","protected":false},"author":19,"featured_media":3286,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[13],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"og:description\" content=\"https:\/\/youtu.be\/eHFfkfp3QOkhttps:\/\/youtu.be\/TXhYCl90EMY C\u00d3DIGO EN R DE LOS VIDEOS ### ### ARRAYS #son vectores con un atributo de dimensi\u00f3n que especifica m\u00e1s de dos#dimensiones.Un vector es un array unidimensional y una matriz es un array de dos#matriz dimensional x &lt;- 1:8dim(x) &lt;- c(2, 2, 2) #c(fila,columa,subdivision)x x &lt;- 1:9xdim(x)&lt;- c(3,3,1)xdim(x)&lt;- c(3,1,3)x nuevo_array &lt;- array(c(1:8, 11:18, 111:118), dim &hellip; Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 Leer m\u00e1s &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\" \/>\n<meta property=\"og:site_name\" content=\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-21T09:26:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-21T09:43:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2022\/07\/Copia-de-ANALISIS-DE-SERIES-TEMPORALES-6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"640\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor A.Rico\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Victor A.Rico\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\"},\"author\":{\"name\":\"Victor A.Rico\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae\"},\"headline\":\"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4\",\"datePublished\":\"2022-07-21T09:26:36+00:00\",\"dateModified\":\"2022-07-21T09:43:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\"},\"wordCount\":366,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ricovictor.com\/#organization\"},\"articleSection\":[\"R studio\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\",\"url\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\",\"name\":\"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/#website\"},\"datePublished\":\"2022-07-21T09:26:36+00:00\",\"dateModified\":\"2022-07-21T09:43:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/ricovictor.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ricovictor.com\/#website\",\"url\":\"https:\/\/ricovictor.com\/\",\"name\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/ricovictor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ricovictor.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ricovictor.com\/#organization\",\"name\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"url\":\"https:\/\/ricovictor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png\",\"contentUrl\":\"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png\",\"width\":1402,\"height\":474,\"caption\":\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\"},\"image\":{\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae\",\"name\":\"Victor A.Rico\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g\",\"caption\":\"Victor A.Rico\"},\"url\":\"https:\/\/ricovictor.com\/index.php\/author\/granada_26_wp\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/","og_locale":"es_ES","og_type":"article","og_title":"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","og_description":"https:\/\/youtu.be\/eHFfkfp3QOkhttps:\/\/youtu.be\/TXhYCl90EMY C\u00d3DIGO EN R DE LOS VIDEOS ### ### ARRAYS #son vectores con un atributo de dimensi\u00f3n que especifica m\u00e1s de dos#dimensiones.Un vector es un array unidimensional y una matriz es un array de dos#matriz dimensional x &lt;- 1:8dim(x) &lt;- c(2, 2, 2) #c(fila,columa,subdivision)x x &lt;- 1:9xdim(x)&lt;- c(3,3,1)xdim(x)&lt;- c(3,1,3)x nuevo_array &lt;- array(c(1:8, 11:18, 111:118), dim &hellip; Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 Leer m\u00e1s &raquo;","og_url":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/","og_site_name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","article_published_time":"2022-07-21T09:26:36+00:00","article_modified_time":"2022-07-21T09:43:53+00:00","og_image":[{"width":640,"height":640,"url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2022\/07\/Copia-de-ANALISIS-DE-SERIES-TEMPORALES-6.png","type":"image\/png"}],"author":"Victor A.Rico","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Victor A.Rico","Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#article","isPartOf":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/"},"author":{"name":"Victor A.Rico","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae"},"headline":"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4","datePublished":"2022-07-21T09:26:36+00:00","dateModified":"2022-07-21T09:43:53+00:00","mainEntityOfPage":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/"},"wordCount":366,"commentCount":0,"publisher":{"@id":"https:\/\/ricovictor.com\/#organization"},"articleSection":["R studio"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/","url":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/","name":"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","isPartOf":{"@id":"https:\/\/ricovictor.com\/#website"},"datePublished":"2022-07-21T09:26:36+00:00","dateModified":"2022-07-21T09:43:53+00:00","breadcrumb":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/21\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-arrays-y-series-de-tiempo-clase-3-y-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/ricovictor.com\/"},{"@type":"ListItem","position":2,"name":"Aprende a programar en R desde 0 | Estructuras de Datos: Arrays y Series de Tiempo | Clase 3 Y 4"}]},{"@type":"WebSite","@id":"https:\/\/ricovictor.com\/#website","url":"https:\/\/ricovictor.com\/","name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","description":"","publisher":{"@id":"https:\/\/ricovictor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ricovictor.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/ricovictor.com\/#organization","name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","url":"https:\/\/ricovictor.com\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/","url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png","contentUrl":"https:\/\/ricovictor.com\/wp-content\/uploads\/2026\/02\/cropped-ChatGPT-Image-4-feb-2026-12_41_28.png","width":1402,"height":474,"caption":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas"},"image":{"@id":"https:\/\/ricovictor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae","name":"Victor A.Rico","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4edf55780c0c232271ecbcb12fae9460?s=96&d=mm&r=g","caption":"Victor A.Rico"},"url":"https:\/\/ricovictor.com\/index.php\/author\/granada_26_wp\/"}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3284"}],"collection":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/comments?post=3284"}],"version-history":[{"count":3,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3284\/revisions"}],"predecessor-version":[{"id":3289,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3284\/revisions\/3289"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media\/3286"}],"wp:attachment":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media?parent=3284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/categories?post=3284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/tags?post=3284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}