{"id":3417,"date":"2022-08-12T11:49:25","date_gmt":"2022-08-12T11:49:25","guid":{"rendered":"https:\/\/ricovictor.com\/?p=3417"},"modified":"2022-08-13T19:36:47","modified_gmt":"2022-08-13T19:36:47","slug":"importar-datos-desde-excel-a-rstudio","status":"publish","type":"post","link":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/","title":{"rendered":"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9"},"content":{"rendered":"\n<p>Con esta serie de videos aprenderemos a programar con el entorno de RStudio. En esta ocasi\u00f3n vemos como importar datos desde archivos Excel hacia Rstudio. Bajo el tutorial tienes el c\u00f3digo R del v\u00eddeo.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container \" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"Importar datos desde Excel a Rstudio | Aprende a Programar en R desde 0 | Clase 9\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/oOP6HS1_Cm4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n\n\n<pre class=\"wp-block-code\"><code>CODIGO R DEL TUTORIAL\n\n\n\n\n#imagina que tenemos una tabla en la siguiente direcci\u00f3n\n\n  #C:\\Users\\Victor-PC\\Desktop\\Dataset2016_2021.xlsx\n\n# forma 1 = desde import dataset\n\n#en sheet se especifica la hoja : Si no se pone nada lee la primera\n\nDataset2016_2021\n\n\n# forma 2  : read_excel de library readlxl\n\n#install.packages('readxl')\nlibrary(readxl)\n\nDataset &lt;- read_excel(\"C:\/Users\/Victor-PC\/Desktop\/Dataset2016_2021.xlsx\")\n\n\nDataset_2 &lt;- read_excel(\"C:\\\\Users\\\\Victor-PC\\\\Desktop\\\\Dataset2016_2021.xlsx\")\n\n\nDataset_3 &lt;- read_excel(\"C:\\Users\\Victor-PC\\Desktop\\Dataset2016_2021.xlsx\")<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Con esta serie de videos aprenderemos a programar con el entorno de RStudio. En esta ocasi\u00f3n vemos como importar datos desde archivos Excel hacia Rstudio. Bajo el tutorial tienes el c\u00f3digo R del v\u00eddeo.<\/p>\n","protected":false},"author":1,"featured_media":3419,"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>Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9 - 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\/08\/12\/importar-datos-desde-excel-a-rstudio\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"og:description\" content=\"Con esta serie de videos aprenderemos a programar con el entorno de RStudio. En esta ocasi\u00f3n vemos como importar datos desde archivos Excel hacia Rstudio. Bajo el tutorial tienes el c\u00f3digo R del v\u00eddeo.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/\" \/>\n<meta property=\"og:site_name\" content=\"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/VictorRicoA\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-12T11:49:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-13T19:36:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ricovictor.com\/wp-content\/uploads\/2022\/08\/Copia-de-ANALISIS-DE-SERIES-TEMPORALES-14.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:creator\" content=\"@https:\/\/www.twitter.com\/RicoVictor_\" \/>\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=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/\"},\"author\":{\"name\":\"Victor A.Rico\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/019a6d632b4c12d438e84d000f68ae38\"},\"headline\":\"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9\",\"datePublished\":\"2022-08-12T11:49:25+00:00\",\"dateModified\":\"2022-08-13T19:36:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/\"},\"wordCount\":56,\"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\/08\/12\/importar-datos-desde-excel-a-rstudio\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/\",\"url\":\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/\",\"name\":\"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas\",\"isPartOf\":{\"@id\":\"https:\/\/ricovictor.com\/#website\"},\"datePublished\":\"2022-08-12T11:49:25+00:00\",\"dateModified\":\"2022-08-13T19:36:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/ricovictor.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9\"}]},{\"@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\/019a6d632b4c12d438e84d000f68ae38\",\"name\":\"Victor A.Rico\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/ricovictor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/aafb747906a8c3309189616a81e1481e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/aafb747906a8c3309189616a81e1481e?s=96&d=mm&r=g\",\"caption\":\"Victor A.Rico\"},\"description\":\"Diplomado en Ciencias Empresariales y Operador del Mercado Espa\u00f1ol de Futuros y Opciones\",\"sameAs\":[\"https:\/\/www.facebook.com\/VictorRicoA\/\",\"https:\/\/www.instagram.com\/victor_a.rico\",\"https:\/\/www.linkedin.com\/in\/ricovictor\/\",\"https:\/\/twitter.com\/https:\/\/www.twitter.com\/RicoVictor_\",\"https:\/\/www.youtube.com\/VictorARico\"],\"url\":\"https:\/\/ricovictor.com\/index.php\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9 - 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\/08\/12\/importar-datos-desde-excel-a-rstudio\/","og_locale":"es_ES","og_type":"article","og_title":"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","og_description":"Con esta serie de videos aprenderemos a programar con el entorno de RStudio. En esta ocasi\u00f3n vemos como importar datos desde archivos Excel hacia Rstudio. Bajo el tutorial tienes el c\u00f3digo R del v\u00eddeo.","og_url":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/","og_site_name":"V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","article_author":"https:\/\/www.facebook.com\/VictorRicoA\/","article_published_time":"2022-08-12T11:49:25+00:00","article_modified_time":"2022-08-13T19:36:47+00:00","og_image":[{"width":640,"height":640,"url":"https:\/\/ricovictor.com\/wp-content\/uploads\/2022\/08\/Copia-de-ANALISIS-DE-SERIES-TEMPORALES-14.png","type":"image\/png"}],"author":"Victor A.Rico","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/www.twitter.com\/RicoVictor_","twitter_misc":{"Escrito por":"Victor A.Rico","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/#article","isPartOf":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/"},"author":{"name":"Victor A.Rico","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/019a6d632b4c12d438e84d000f68ae38"},"headline":"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9","datePublished":"2022-08-12T11:49:25+00:00","dateModified":"2022-08-13T19:36:47+00:00","mainEntityOfPage":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/"},"wordCount":56,"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\/08\/12\/importar-datos-desde-excel-a-rstudio\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/","url":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/","name":"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9 - V\u00edctor A. Rico \u2014 Econometr\u00eda y Finanzas Cuantitativas","isPartOf":{"@id":"https:\/\/ricovictor.com\/#website"},"datePublished":"2022-08-12T11:49:25+00:00","dateModified":"2022-08-13T19:36:47+00:00","breadcrumb":{"@id":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ricovictor.com\/index.php\/2022\/08\/12\/importar-datos-desde-excel-a-rstudio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/ricovictor.com\/"},{"@type":"ListItem","position":2,"name":"Importar datos desde Excel a Rstudio| Aprende a Programar en R desde 0 | Clase 9"}]},{"@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\/019a6d632b4c12d438e84d000f68ae38","name":"Victor A.Rico","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/ricovictor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/aafb747906a8c3309189616a81e1481e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aafb747906a8c3309189616a81e1481e?s=96&d=mm&r=g","caption":"Victor A.Rico"},"description":"Diplomado en Ciencias Empresariales y Operador del Mercado Espa\u00f1ol de Futuros y Opciones","sameAs":["https:\/\/www.facebook.com\/VictorRicoA\/","https:\/\/www.instagram.com\/victor_a.rico","https:\/\/www.linkedin.com\/in\/ricovictor\/","https:\/\/twitter.com\/https:\/\/www.twitter.com\/RicoVictor_","https:\/\/www.youtube.com\/VictorARico"],"url":"https:\/\/ricovictor.com\/index.php\/author\/admin\/"}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3417"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/comments?post=3417"}],"version-history":[{"count":3,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3417\/revisions"}],"predecessor-version":[{"id":3423,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/posts\/3417\/revisions\/3423"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media\/3419"}],"wp:attachment":[{"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/media?parent=3417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/categories?post=3417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ricovictor.com\/index.php\/wp-json\/wp\/v2\/tags?post=3417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}