{"id":3277,"date":"2022-07-19T14:13:23","date_gmt":"2022-07-19T14:13:23","guid":{"rendered":"https:\/\/ricovictor.com\/?p=3277"},"modified":"2022-07-19T14:20:53","modified_gmt":"2022-07-19T14:20:53","slug":"aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2","status":"publish","type":"post","link":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/","title":{"rendered":"Aprende a programar en R desde 0 | Estructuras de Datos:  Matrices y Data Frames | Clase 2"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3277\" class=\"elementor elementor-3277\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ad90ff2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ad90ff2\" 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-3552815\" data-id=\"3552815\" 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-999fe20 elementor-widget elementor-widget-video\" data-id=\"999fe20\" data-element_type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/youtu.be\\\/tMu93nphPVI&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-a1783c1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a1783c1\" 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-1c7dcc4\" data-id=\"1c7dcc4\" 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-65ec25b elementor-widget elementor-widget-text-editor\" data-id=\"65ec25b\" 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 R DEL TUTORIAL<\/strong><\/p><p>## 2 MATRICES<\/p><p># formas para crear matrices : dim, matrix,cbind,rbind ..<\/p><p>#Una matriz puede considerarse como un vector con un atributo de <br \/>#dimensi\u00f3n especial<\/p><p># De hecho podemos convertir vectores en matrices con la funci\u00f3n dim()<\/p><p># ejemplo : creamos el vector x<\/p><p>x &lt;- 1:10<br \/>x<br \/>dim(x) &lt;- c(2, 5)<br \/>x<\/p><p>#matrix()<\/p><p>x &lt;- matrix(1:10, 2, 5)<br \/>x<\/p><p>vector&lt;- c(5,3,9,20,1,8,2,2,1,12)<\/p><p>x&lt;- matrix(vector,2,5) <br \/>x<\/p><p>x&lt;-matrix(c(5,3,9,20,1,8,2,2,1,12) , 2, 5)<br \/>x<\/p><p>x&lt;-matrix(c(5,3,9,20,1,8,2,2,1,12) , 5, 2)<br \/>x<\/p><p>#opci\u00f3n por filas o colmnas<\/p><p>x&lt;-matrix(c(5,3,9,20,1,8,2,2,1,12) , 2, 5,byrow=TRUE)<br \/>x<\/p><p># FUnciones cbind y rbind<\/p><p>cbind(c(2, 1, 3), c(14, 5, 4))<\/p><p>rbind(c(2, 1, 3), c(14, 5, 4))<\/p><p>#esas dos funciones las usaremos muchos para unir filas y columans en tablas<\/p><p># Calculos con matrices<\/p><p>x &lt;- matrix(1:8, 2, 4, byrow = TRUE)<br \/>x<\/p><p>x^2<\/p><p>x * x^2<\/p><p># tambi\u00e9n se pueden multiplicar matrices con vector<\/p><p>x &lt;- matrix(1:16, ncol = 4)<br \/>x <br \/>y &lt;- 7:10<br \/>y<\/p><p>x*y<\/p><p># si se fijan lo que hace es ir multiplicando por orden la columna<\/p><p>x &lt;- matrix(1:28, ncol = 4)<br \/>x<br \/>y &lt;- 7:10<br \/>y<br \/>x*y<\/p><p>#Matrix multiplication = usamos %*%<\/p><p>x &lt;- matrix(1:8, ncol = 2)<br \/>x<br \/>x %*% x<\/p><p>4*2 &#8211; 2*2 <br \/>#da error porque las dimensiones no coinciden<\/p><p>#4filas y 2columnas no pueden ser multipicadas por 4 filas y 2 columnas<\/p><p># se necesita que el numero de colunmas de la matrix A coincida con n\u00fam filas B<\/p><p>a &lt;- matrix(1:8, ncol = 2)<br \/>b &lt;- matrix(1:8, ncol = 4)<br \/>a<br \/>b<br \/>a= 4*2 b = 2*4<\/p><p>a%*%b<\/p><p># Usando la traspuesta<\/p><p>a%*% t(a)<br \/>t(a)<br \/>a<\/p><p>#ALGUNAS FUNCIONES QUE PUEDEN SER APLICDAS A MATRICES<br \/>Function:<br \/>chol(x) Choleski decomposition<br \/>col(x) Matrix with column numbers of the elements<br \/>diag(x) Create a diagonal matrix from a vector<br \/>ncol(x) Returns the number of columns of a matrix<br \/>nrow(x) Returns the number of rows of a matrix<br \/>qr(x) QR matrix decomposition<br \/>row(x) Matrix with row numbers of the elements<br \/>solve(A,b) Solve the system Ax=b<br \/>solve(x) Calculate the inverse<br \/>svd(x) Singular value decomposition<br \/>var(x) Covariance matrix of the columns<\/p><p>###<\/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>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>nuevo&lt;- array(c(2,10,11,1,2,3,5,8,45),dim = c(1, 3, 3))<br \/>nuevo<\/p><p># DATA FRAMES<\/p><p>#Los podemos considerar como lista con elementos de la misma longitud<br \/>#ser\u00e1n tablas que pueden tener elementos diferentes pero tienen que tener <br \/>#la misma longitud para que cuadren. se ordenan como una tabla por filas y columans<br \/># y ser\u00e1n usados much\u00edsimos en cualquier an\u00e1lisis estad\u00edsticos<\/p><p>#n R is Longley\u2019s Economic Data<\/p><p>data(longley)<br \/>longley<\/p><p>#dentro del daa frame podemos sacar los nombres de las filas y columnas y cambiarlos<br \/>#si lo deseamos<\/p><p>rownames(longley)<br \/>colnames(longley)<\/p><p>## C\u00d3MO CREAR UN DATA FRAME<\/p><p>#se pueden crear de muchas formas, incluso importar desde csv,excel etc<br \/>#(la importaci\u00f3n de datos lo veremos en otros videos)<\/p><p>#ejemplo<\/p><p>precio_anual &lt;- c(2.1,1.9,1.5,3,4)<br \/>fecha &lt;- seq(from=as.POSIXct(\u00ab2018-01-01\u00bb),to=as.POSIXct(\u00ab2022-01-01\u00bb), by = \u00abyears\u00bb)<br \/>fecha<br \/>tabla&lt;- data.frame(fecha,precio_anual)<\/p><p># se le podr\u00edan a\u00f1adir otros atributos<\/p><p>pais&lt;- c(\u00abEspa\u00f1a\u00bb,\u00bbArgentina\u00bb,\u00bbM\u00e9xico\u00bb,\u00bbPer\u00fa\u00bb,\u00bbColombia\u00bb)<br \/>tabla&lt;- data.frame(fecha,precio_anual,pais)<\/p><p>dat&lt;- data.frame(a)<\/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\/tMu93nphPVI C\u00d3DIGO R DEL TUTORIAL ## 2 MATRICES # formas para crear matrices : dim, matrix,cbind,rbind .. #Una matriz puede considerarse como un vector con un atributo de #dimensi\u00f3n especial # De hecho podemos convertir vectores en matrices con la funci\u00f3n dim() # ejemplo : creamos el vector x x &lt;- 1:10xdim(x) &lt;- c(2, 5)x &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\"> <span class=\"screen-reader-text\">Aprende a programar en R desde 0 | Estructuras de Datos:  Matrices y Data Frames | Clase 2<\/span> Leer m\u00e1s &raquo;<\/a><\/p>\n","protected":false},"author":19,"featured_media":3279,"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: Matrices y Data Frames | Clase 2 - 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\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\" \/>\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: Matrices y Data Frames | Clase 2 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"og:description\" content=\"https:\/\/youtu.be\/tMu93nphPVI C\u00d3DIGO R DEL TUTORIAL ## 2 MATRICES # formas para crear matrices : dim, matrix,cbind,rbind .. #Una matriz puede considerarse como un vector con un atributo de #dimensi\u00f3n especial # De hecho podemos convertir vectores en matrices con la funci\u00f3n dim() # ejemplo : creamos el vector x x &lt;- 1:10xdim(x) &lt;- c(2, 5)x &hellip; Aprende a programar en R desde 0 | Estructuras de Datos: Matrices y Data Frames | Clase 2 Leer m\u00e1s &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\" \/>\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-19T14:13:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-19T14:20:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2022\/07\/victor-a.rico-12.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"3 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\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\"},\"author\":{\"name\":\"Victor A.Rico\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae\"},\"headline\":\"Aprende a programar en R desde 0 | Estructuras de Datos: Matrices y Data Frames | Clase 2\",\"datePublished\":\"2022-07-19T14:13:23+00:00\",\"dateModified\":\"2022-07-19T14:20:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\"},\"wordCount\":592,\"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\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\",\"url\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\",\"name\":\"Aprende a programar en R desde 0 | Estructuras de Datos: Matrices y Data Frames | Clase 2 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/#website\"},\"datePublished\":\"2022-07-19T14:13:23+00:00\",\"dateModified\":\"2022-07-19T14:20:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#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: Matrices y Data Frames | Clase 2\"}]},{\"@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: Matrices y Data Frames | Clase 2 - 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\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/","og_locale":"es_ES","og_type":"article","og_title":"Aprende a programar en R desde 0 | Estructuras de Datos: Matrices y Data Frames | Clase 2 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","og_description":"https:\/\/youtu.be\/tMu93nphPVI C\u00d3DIGO R DEL TUTORIAL ## 2 MATRICES # formas para crear matrices : dim, matrix,cbind,rbind .. #Una matriz puede considerarse como un vector con un atributo de #dimensi\u00f3n especial # De hecho podemos convertir vectores en matrices con la funci\u00f3n dim() # ejemplo : creamos el vector x x &lt;- 1:10xdim(x) &lt;- c(2, 5)x &hellip; Aprende a programar en R desde 0 | Estructuras de Datos: Matrices y Data Frames | Clase 2 Leer m\u00e1s &raquo;","og_url":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/","og_site_name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","article_published_time":"2022-07-19T14:13:23+00:00","article_modified_time":"2022-07-19T14:20:53+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2022\/07\/victor-a.rico-12.jpg","type":"image\/jpeg"}],"author":"Victor A.Rico","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Victor A.Rico","Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#article","isPartOf":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/"},"author":{"name":"Victor A.Rico","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/e563011388ed0c4e7c1cdae9fcf95bae"},"headline":"Aprende a programar en R desde 0 | Estructuras de Datos: Matrices y Data Frames | Clase 2","datePublished":"2022-07-19T14:13:23+00:00","dateModified":"2022-07-19T14:20:53+00:00","mainEntityOfPage":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/"},"wordCount":592,"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\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/","url":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/","name":"Aprende a programar en R desde 0 | Estructuras de Datos: Matrices y Data Frames | Clase 2 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","isPartOf":{"@id":"https:\/\/ricovictor.com\/#website"},"datePublished":"2022-07-19T14:13:23+00:00","dateModified":"2022-07-19T14:20:53+00:00","breadcrumb":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ricovictor.com\/index.php\/2022\/07\/19\/aprende-a-programar-en-r-desde-0-estructuras-de-datos-matrices-y-data-frames-clase-2\/#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: Matrices y Data Frames | Clase 2"}]},{"@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\/3277"}],"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=3277"}],"version-history":[{"count":4,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3277\/revisions"}],"predecessor-version":[{"id":3282,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3277\/revisions\/3282"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media\/3279"}],"wp:attachment":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media?parent=3277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/categories?post=3277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/tags?post=3277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}