{"id":3860,"date":"2017-07-24T08:36:32","date_gmt":"2017-07-24T15:36:32","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=3860"},"modified":"2022-07-06T06:31:37","modified_gmt":"2022-07-06T13:31:37","slug":"using-couchbase-r","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/es\/using-couchbase-r\/","title":{"rendered":"Uso de Couchbase con R"},"content":{"rendered":"<p>He visto mucho inter\u00e9s en el campo sobre el uso de Couchbase con R. Es una integraci\u00f3n f\u00e1cil, as\u00ed que aqu\u00ed tienes algunos ejemplos para empezar a usarlo ahora mismo.<\/p>\n<p>Como peque\u00f1o antecedente, R es un lenguaje y entorno para computaci\u00f3n estad\u00edstica y gr\u00e1ficos. Lo encontrar\u00e1s en las primeras posiciones de los rankings de mejores lenguajes para An\u00e1lisis de Datos, Machine Learning o Data Crunching. Los cient\u00edficos de datos utilizan R como una de sus herramientas m\u00e1s potentes.<\/p>\n<p>Para la ingesta de datos, R puede cargar archivos en diferentes formatos como csv, excel, html, texto plano, y m\u00e1s con una simple l\u00ednea de comandos. R tambi\u00e9n puede cargar datos de sitios remotos mediante HTTP y trabajar f\u00e1cilmente con JSON.<\/p>\n<p>Con todo esto en mente, \u00bfc\u00f3mo podemos cargar datos de Couchbase en R? \u00bfNecesitamos un adaptador especial? N1QL es la respuesta. El motor de consultas de Couchbase acepta peticiones REST, devolviendo documentos JSON, por lo que podemos importar datos directamente a R. No se necesitan componentes extra.<\/p>\n<p>Aqu\u00ed tienes algunos ejemplos con datos del bucket \"travel-sample\", incluido en Couchbase como conjunto de datos de ejemplo. Estoy usando aqu\u00ed las versiones R 3.4.1 y Couchbase 4.6.2.<\/p>\n<p>Como primer ejercicio, vamos a cargar las 20 compa\u00f1\u00edas a\u00e9reas con m\u00e1s vuelos en nuestro sistema. Cargaremos estos datos en un R Data Frame, mostraremos los resultados en la consola y construiremos un sencillo gr\u00e1fico de barras.<\/p>\n<p>Desde el lado de Couchbase, esta es la consulta a ejecutar:<\/p>\n<pre class=\"\">SELECT a.name, count(*) as total_flights\r\n\u00a0 FROM `travel-sample` r JOIN `travel-sample` a ON KEYS r.airlineid\r\n\u00a0 WHERE r.type =\"route\" AND a.type=\"airline\"\r\n\u00a0 GROUP BY a.name\r\n\u00a0 ORDER BY total_flights DESC\r\n\u00a0 LIMIT 20<\/pre>\n<p>Para la parte de R, utilizaremos la R Console. En primer lugar, tenemos que importar las bibliotecas utilizadas en este ejercicio:<\/p>\n<pre class=\"lang:r decode:true\">library(httr)\r\nlibrary(jsonlite)\r\nlibrary(ggplot2)\r\nlibrary(leaflet)<\/pre>\n<p>El siguiente paso es construir algunas variables, incluyendo la direcci\u00f3n del nodo Couchbase Query y la consulta. F\u00edjate en las comillas dobles escapadas (\\\"):<\/p>\n<pre class=\"wrap:true lang:r decode:true\">cbServer &lt;- \"https:\/\/cb451box:8093\/query\/service\"\r\nquery &lt;- \"SELECT a.name, count(*) as total_flights FROM `travel-sample` r JOIN `travel-sample` a ON KEYS r.airlineid WHERE r.type =\\\"route\\\" AND a.type=\\\"airline\\\" GROUP BY a.name ORDER BY total_flights DESC LIMIT 20\"<\/pre>\n<p>Luego debemos construir la petici\u00f3n HTTP, y leer la respuesta en formato JSON:<\/p>\n<pre class=\"wrap:true lang:r decode:true\">req &lt;- httr::POST(cbServer, httr::add_headers(\"Content-Type\" = \"application\/x-www-form-urlencoded;charset=UTF-8\"), body = paste(\"statement=\", query))\r\nres &lt;- fromJSON(httr::content(req, \"text\"))<\/pre>\n<p><strong>NOTA<\/strong>: Si est\u00e1 utilizando un cubo protegido por contrase\u00f1a, debe incluir credenciales como las siguientes:<\/p>\n<pre class=\"wrap:true lang:r decode:true\">creds &lt;- \"[{\\\"user\\\":\\\"local:bucketName\\\", \\\"pass\\\":\\\"password\\\"}]\"\r\nreq &lt;- httr::POST(cbServer, httr::add_headers(\"Content-Type\" = \"application\/x-www-form-urlencoded;charset=UTF-8\"), body =\u00a0paste(\"statement=\", query, \"&amp;creds=\", creds));<\/pre>\n<p>A continuaci\u00f3n, podemos guardar el resultado en una variable.<\/p>\n<pre class=\"lang:r decode:true\">airlineFlights &lt;- res$results<\/pre>\n<p>Para ver el valor basta con escribir el nombre de la variable:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3862\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2017\/07\/airlines_cmd-267x300.jpg\" alt=\"\" width=\"369\" height=\"415\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines_cmd-267x300.jpg 267w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines_cmd-300x337.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines_cmd-18x20.jpg 18w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines_cmd.jpg 554w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/p>\n<p>Tambi\u00e9n podemos construir un gr\u00e1fico de barras utilizando la biblioteca ggplot:<\/p>\n<pre class=\"wrap:true lang:r decode:true\">ggplot(data=airlineFlights, aes(x=name, y=total_flights)) + theme(axis.text.x=element_text(angle=90,hjust=1)) + geom_bar(stat=\"identity\")<\/pre>\n<p>Este es el resultado:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3861\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2017\/07\/airlines-292x300.jpg\" alt=\"\" width=\"578\" height=\"593\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines-292x300.jpg 292w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines-996x1024.jpg 996w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines-1494x1536.jpg 1494w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines-50x50.jpg 50w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines-300x309.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines-20x20.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/airlines.jpg 1548w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/p>\n<p>Como segundo ejemplo, vamos a buscar los hoteles que admiten mascotas disponibles en Londres, y mostrarlos sobre un mapa. La consulta N1QL es la siguiente:<\/p>\n<pre class=\"\">SELECT name,geo.lat as lat,geo.lon as long\r\nFROM `travel-sample`\r\nWHERE type=\"hotel\" AND city=\"London\" AND pets_ok=true<\/pre>\n<p>El c\u00f3digo R para ejecutar la consulta y guardar los resultados:<\/p>\n<pre class=\"wrap:true lang:r decode:true\">query &lt;- \"SELECT name, geo.lat as lat, geo.lon as long FROM `travel-sample` WHERE type=\\\"hotel\\\" AND city=\\\"London\\\" AND pets_ok=true\"\r\nreq &lt;- httr::POST(cbServer, httr::add_headers(\"Content-Type\" = \"application\/x-www-form-urlencoded;charset=UTF-8\"), body = paste(\"statement=\", query))\r\nres &lt;- fromJSON(httr::content(req, \"text\"))\r\npetFriendlyHotelsLondon &lt;- res$results<\/pre>\n<p>Estos son los resultados:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3864\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2017\/07\/petFriendlyHotelsLondon-274x300.jpg\" alt=\"\" width=\"527\" height=\"577\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/petFriendlyHotelsLondon-274x300.jpg 274w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/petFriendlyHotelsLondon-936x1024.jpg 936w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/petFriendlyHotelsLondon-768x840.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/petFriendlyHotelsLondon-300x328.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/petFriendlyHotelsLondon-18x20.jpg 18w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/petFriendlyHotelsLondon.jpg 1006w\" sizes=\"auto, (max-width: 527px) 100vw, 527px\" \/><\/p>\n<p>Ahora podemos utilizar la biblioteca leaflet para dibujar los resultados sobre un mapa:<\/p>\n<pre class=\"wrap:true lang:r decode:true\">leaflet(data = petFriendlyHotelsLondon) %&gt;% addTiles() %&gt;% addMarkers(~long, ~lat, popup = ~as.character(name), label = ~as.character(name)) %&gt;% addProviderTiles(providers$OpenStreetMap)<\/pre>\n<p>El mapa se abre en un navegador:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3863 aligncenter\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2017\/07\/hotelsLondon-300x206.jpg\" alt=\"\" width=\"744\" height=\"511\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-300x206.jpg 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-1024x702.jpg 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-768x527.jpg 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-1536x1054.jpg 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-2048x1405.jpg 2048w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-235x160.jpg 235w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-20x14.jpg 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/hotelsLondon-1320x905.jpg 1320w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/>Esto es todo. Espero que esto sea \u00fatil como primeros pasos en el uso de Couchbase desde R. \u00a1Feliz An\u00e1lisis de Datos!<\/p>\n<p>Para m\u00e1s informaci\u00f3n, visite<br \/>\n<a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-rest-api\/index.html\">Referencia de la API REST de N1QL<\/a><br \/>\n<a href=\"https:\/\/www.r-project.org\/\">R: El proyecto R para el c\u00e1lculo estad\u00edstico<\/a><br \/>\n<a href=\"https:\/\/rstudio.github.io\/leaflet\/\">Folleto para R<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>I have seen a lot of interest in the field about using Couchbase with R. It is an easy integration, so here you have some examples to start using it right now. As a little background, R is a language [&hellip;]<\/p>","protected":false},"author":69,"featured_media":3865,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1815,1816,1812],"tags":[2014,2013],"ppma_author":[9041],"class_list":["post-3860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-best-practices-and-tutorials","category-couchbase-server","category-n1ql-query","tag-data-analysis","tag-r"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.2 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Couchbase with R - The Couchbase Blog<\/title>\n<meta name=\"description\" content=\"Learn by example how to integrate Couchbase and R using N1QL and REST API\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/es\/using-couchbase-r\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Couchbase with R\" \/>\n<meta property=\"og:description\" content=\"Learn by example how to integrate Couchbase and R using N1QL and REST API\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/es\/using-couchbase-r\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-24T15:36:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-06T13:31:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2017\/07\/featuredR.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2036\" \/>\n\t<meta property=\"og:image:height\" content=\"1264\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Manuel Hurtado, Solutions Engineer, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manuel Hurtado, Solutions Engineer, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/\"},\"author\":{\"name\":\"Manuel Hurtado, Solutions Engineer, Couchbase\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/00c164bc72955b52cd86c966aafb9237\"},\"headline\":\"Using Couchbase with R\",\"datePublished\":\"2017-07-24T15:36:32+00:00\",\"dateModified\":\"2022-07-06T13:31:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/\"},\"wordCount\":455,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg\",\"keywords\":[\"Data Analysis\",\"R\"],\"articleSection\":[\"Best Practices and Tutorials\",\"Couchbase Server\",\"SQL++ \/ N1QL Query\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/\",\"name\":\"Using Couchbase with R - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg\",\"datePublished\":\"2017-07-24T15:36:32+00:00\",\"dateModified\":\"2022-07-06T13:31:37+00:00\",\"description\":\"Learn by example how to integrate Couchbase and R using N1QL and REST API\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg\",\"width\":2036,\"height\":1264},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Couchbase with R\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/00c164bc72955b52cd86c966aafb9237\",\"name\":\"Manuel Hurtado, Solutions Engineer, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/d792e93660734cc10c1f8a5bbc2cf29a\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e8eced6ee14aeefdf82ebfb694cfa145280c2e206f819d892eb82d5fef8a6a25?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e8eced6ee14aeefdf82ebfb694cfa145280c2e206f819d892eb82d5fef8a6a25?s=96&d=mm&r=g\",\"caption\":\"Manuel Hurtado, Solutions Engineer, Couchbase\"},\"description\":\"Manuel is a Couchbase Solutions Engineer, with more than 15 years of experience helping companies to architect their systems, as developer, consultant, trainer and project manager. Happy to learn from the field how people use technology to success.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/es\/author\/manuel-hurtado\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Using Couchbase with R - The Couchbase Blog","description":"Aprende con ejemplos c\u00f3mo integrar Couchbase y R usando N1QL y REST API","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:\/\/www.couchbase.com\/blog\/es\/using-couchbase-r\/","og_locale":"es_MX","og_type":"article","og_title":"Using Couchbase with R","og_description":"Learn by example how to integrate Couchbase and R using N1QL and REST API","og_url":"https:\/\/www.couchbase.com\/blog\/es\/using-couchbase-r\/","og_site_name":"The Couchbase Blog","article_published_time":"2017-07-24T15:36:32+00:00","article_modified_time":"2022-07-06T13:31:37+00:00","og_image":[{"width":2036,"height":1264,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2017\/07\/featuredR.jpg","type":"image\/jpeg"}],"author":"Manuel Hurtado, Solutions Engineer, Couchbase","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Manuel Hurtado, Solutions Engineer, Couchbase","Est. reading time":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/"},"author":{"name":"Manuel Hurtado, Solutions Engineer, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/00c164bc72955b52cd86c966aafb9237"},"headline":"Using Couchbase with R","datePublished":"2017-07-24T15:36:32+00:00","dateModified":"2022-07-06T13:31:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/"},"wordCount":455,"commentCount":2,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg","keywords":["Data Analysis","R"],"articleSection":["Best Practices and Tutorials","Couchbase Server","SQL++ \/ N1QL Query"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/","url":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/","name":"Using Couchbase with R - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg","datePublished":"2017-07-24T15:36:32+00:00","dateModified":"2022-07-06T13:31:37+00:00","description":"Aprende con ejemplos c\u00f3mo integrar Couchbase y R usando N1QL y REST API","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2017\/07\/featuredR.jpg","width":2036,"height":1264},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/using-couchbase-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Couchbase with R"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"El blog de Couchbase","description":"Couchbase, la base de datos NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"El blog de Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/00c164bc72955b52cd86c966aafb9237","name":"Manuel Hurtado, Ingeniero de soluciones, Couchbase","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/d792e93660734cc10c1f8a5bbc2cf29a","url":"https:\/\/secure.gravatar.com\/avatar\/e8eced6ee14aeefdf82ebfb694cfa145280c2e206f819d892eb82d5fef8a6a25?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e8eced6ee14aeefdf82ebfb694cfa145280c2e206f819d892eb82d5fef8a6a25?s=96&d=mm&r=g","caption":"Manuel Hurtado, Solutions Engineer, Couchbase"},"description":"Manuel es Ingeniero de Soluciones Couchbase, con m\u00e1s de 15 a\u00f1os de experiencia ayudando a empresas a arquitecturar sus sistemas, como desarrollador, consultor, formador y director de proyectos. Feliz de aprender sobre el terreno c\u00f3mo la gente utiliza la tecnolog\u00eda para tener \u00e9xito.","url":"https:\/\/www.couchbase.com\/blog\/es\/author\/manuel-hurtado\/"}]}},"authors":[{"term_id":9041,"user_id":69,"is_guest":0,"slug":"manuel-hurtado","display_name":"Manuel Hurtado, Solutions Engineer, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/e8eced6ee14aeefdf82ebfb694cfa145280c2e206f819d892eb82d5fef8a6a25?s=96&d=mm&r=g","author_category":"","last_name":"Hurtado","first_name":"Manuel","job_title":"","user_url":"","description":"Manuel es Ingeniero de Soluciones Couchbase, con m\u00e1s de 15 a\u00f1os de experiencia ayudando a empresas a arquitecturar sus sistemas, como desarrollador, consultor, formador y director de proyectos. Feliz de aprender sobre el terreno c\u00f3mo la gente utiliza la tecnolog\u00eda para tener \u00e9xito."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts\/3860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/comments?post=3860"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/posts\/3860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/media\/3865"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/media?parent=3860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/categories?post=3860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/tags?post=3860"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/es\/wp-json\/wp\/v2\/ppma_author?post=3860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}