

{"id":5691,"date":"2018-01-16T14:19:25","date_gmt":"2018-01-16T14:19:25","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=5691"},"modified":"2018-09-18T10:43:37","modified_gmt":"2018-09-18T05:13:37","slug":"data-type-mapping-between-r-and-spark","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/","title":{"rendered":"Data Type Mapping Between R and Spark | Learn R and Spark"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2052,&quot;href&quot;:&quot;https:\\\/\\\/spark.apache.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251009215151\\\/https:\\\/\\\/spark.apache.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 00:11:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-14 03:24:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-17 05:06:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-20 07:19:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-23 14:10:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-26 19:03:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-30 13:05:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 13:25:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-05 14:08:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-09 10:16:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 11:04:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-15 17:09:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-18 18:39:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-21 19:15:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-26 04:14:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-29 05:32:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-01 07:55:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 10:44:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-07 12:28:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-11 00:52:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-14 12:51:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-17 14:17:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 17:49:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 04:42:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 06:25:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-02 08:44:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-05 10:27:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 11:13:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 12:04:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 12:32:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 01:16:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 21:29:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-25 06:37:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-28 07:59:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 10:36:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-04 11:16:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 18:11:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-11 05:09:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 06:26:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 15:58:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-22 11:10:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-27 06:59:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-30 12:38:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-03 15:24:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-06 17:05:30&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 12:07:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-14 23:33:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-19 11:27:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-23 02:59:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-29 05:05:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 06:55:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-04 20:59:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-08 05:37:55&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-08 05:37:55&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<h2>1. Objective<\/h2>\n<p><span style=\"font-weight: 400\">Today, in this Spark tutorial, we will learn the Data type mapping between <a href=\"https:\/\/data-flair.training\/blogs\/r-programming-tutorial\/\"><strong>R<\/strong><\/a> and<a href=\"https:\/\/data-flair.training\/blogs\/apache-spark-for-beginners\/\"><strong> Spark<\/strong><\/a>. Before, them we will also learn a brief introduction to<a href=\"https:\/\/data-flair.training\/blogs\/sparkr\/\"><strong> SparkR<\/strong><\/a>.\u00a0<\/span><\/p>\n<p>So, let&#8217;s start Data Type Mapping Between R and Spark.<\/p>\n<div id=\"attachment_5692\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5692\" class=\"wp-image-5692 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01.jpg\" alt=\"Data type mapping between R and Spark\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-1024x536.jpg 1024w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-5692\" class=\"wp-caption-text\">Data type mapping between R and Spark<\/p><\/div>\n<h2>2. What is SparkR?<\/h2>\n<p>Apache Spark 1.4 releases <strong>SparkR<\/strong>. One of the major components\u00a0of SparkR is <strong><a href=\"https:\/\/data-flair.training\/blogs\/sparkr-dataframe\/\">SparkR DataFrame<\/a><\/strong>. Basically, it is nothing but fundamental <strong><a href=\"https:\/\/data-flair.training\/blogs\/data-structures-in-r\/\">data structure for data processing in R<\/a><\/strong>. Moreover, <a href=\"https:\/\/data-flair.training\/blogs\/apache-spark-sql-dataframe-tutorial\/\"><strong>DataFrames<\/strong><\/a> concept extends to other languages with libraries, for example, Pandas etc.<br \/>\nIn addition, <a href=\"https:\/\/data-flair.training\/blogs\/career-growth-in-r-programming\/\"><strong>R<\/strong><\/a>\u00a0offers several software facilities for data manipulation, calculation, and graphical display. Therefore, the\u00a0key concept behind SparkR was to explore different techniques to integrate the usability of R with the scalability of Spark. Basically, it is the R package.\u00a0Also gives light-weight frontend to use Apache Spark from R.<br \/>\nMoreover, Using SparkR is beneficial in the following ways:<\/p>\n<h3>a.\u00a0SparkR Data Sources API<\/h3>\n<p>Basically, API SparkR can read in data from a variety of sources. It is possible by tying into <a href=\"https:\/\/data-flair.training\/blogs\/spark-sql-tutorial\/\"><strong>Spark SQL\u2019s<\/strong><\/a> data sources. For example, <a href=\"https:\/\/data-flair.training\/blogs\/apache-hive-tutorial\/\">Hive tables<\/a>, JSON files, Parquet files etc.<\/p>\n<h3>b. SparkR Data Frame Optimizations<\/h3>\n<p>Moreover, it inherits\u00a0all the optimizations made to the computation engine. That is in terms of code generation, memory management.<\/p>\n<h3>c. SparkR Scalability to Many Cores and Machines<\/h3>\n<p>Although, those operations which execute on SparkR DataFrames get distributed across all the cores and machines\u00a0over the<a href=\"https:\/\/data-flair.training\/blogs\/r-clustering-tutorial\/\"><strong>Spark cluster<\/strong><\/a>. Therefore, SparkR DataFrames can run on terabytes of data and clusters with thousands of machines.<\/p>\n<h2>3. Data type mapping between R and Spark<\/h2>\n<table>\n<tbody>\n<tr>\n<td><b>R<\/b><\/td>\n<td><b>Spark<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">byte<\/span><\/td>\n<td><span style=\"font-weight: 400\">byte<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">integer<\/span><\/td>\n<td><span style=\"font-weight: 400\">integer<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">float<\/span><\/td>\n<td><span style=\"font-weight: 400\">float<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">double<\/span><\/td>\n<td><span style=\"font-weight: 400\">double<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">numeric<\/span><\/td>\n<td><span style=\"font-weight: 400\">double<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">character<\/span><\/td>\n<td><span style=\"font-weight: 400\">string<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">string<\/span><\/td>\n<td><span style=\"font-weight: 400\">string<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">binary<\/span><\/td>\n<td><span style=\"font-weight: 400\">binary<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">raw<\/span><\/td>\n<td><span style=\"font-weight: 400\">binary<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">logical<\/span><\/td>\n<td><span style=\"font-weight: 400\">boolean<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">POSIXct<\/span><\/td>\n<td><span style=\"font-weight: 400\">timestamp<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">POSIXlt<\/span><\/td>\n<td><span style=\"font-weight: 400\">timestamp<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Date<\/span><\/td>\n<td><span style=\"font-weight: 400\">date<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">array<\/span><\/td>\n<td><span style=\"font-weight: 400\">array<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">list<\/span><\/td>\n<td><span style=\"font-weight: 400\">array<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">env<\/span><\/td>\n<td><span style=\"font-weight: 400\">map<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>So, this was all in Spark and R data type mapping. Hope you like our explanation.<\/p>\n<h2>4. Conclusion<\/h2>\n<p>Hence, we have learned about Data type mapping between <strong><a href=\"https:\/\/data-flair.training\/blogs\/why-you-should-learn-r-programming\/\">R<\/a> <\/strong>and <strong><a href=\"https:\/\/data-flair.training\/blogs\/limitations-of-apache-spark\/\">Spark<\/a><\/strong>. Also, learned about SparkR. However, if any query occurs, feel free to ask in the comment section. I assure you that\u00a0we will get back to you.<br \/>\nBest Books for <strong><a href=\"https:\/\/data-flair.training\/blogs\/best-apache-spark-scala-books\/\">learning Spark<\/a><\/strong>.<br \/>\n<strong><a href=\"https:\/\/spark.apache.org\/\">For reference<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective Today, in this Spark tutorial, we will learn the Data type mapping between R and Spark. Before, them we will also learn a brief introduction to SparkR.\u00a0 So, let&#8217;s start Data Type&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":6418,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[1793,16596,11147,16597,15967],"class_list":["post-5691","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spark","tag-benefits-of-sparkr","tag-data-type-mapping-in-spark-and-r","tag-r-and-spark","tag-spark-and-r","tag-what-is-sparkr"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Data Type Mapping Between R and Spark | Learn R and Spark - DataFlair<\/title>\n<meta name=\"description\" content=\"Data type mapping between R and Spark,what is SparkR,SparkR Benefits:Data Sources API,Data Frame Optimizations,SparkR Scalability to Cores and Machines\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Data Type Mapping Between R and Spark | Learn R and Spark - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Data type mapping between R and Spark,what is SparkR,SparkR Benefits:Data Sources API,Data Frame Optimizations,SparkR Scalability to Cores and Machines\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-16T14:19:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-18T05:13:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Data Type Mapping Between R and Spark | Learn R and Spark - DataFlair","description":"Data type mapping between R and Spark,what is SparkR,SparkR Benefits:Data Sources API,Data Frame Optimizations,SparkR Scalability to Cores and Machines","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:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/","og_locale":"en_US","og_type":"article","og_title":"Data Type Mapping Between R and Spark | Learn R and Spark - DataFlair","og_description":"Data type mapping between R and Spark,what is SparkR,SparkR Benefits:Data Sources API,Data Frame Optimizations,SparkR Scalability to Cores and Machines","og_url":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-01-16T14:19:25+00:00","article_modified_time":"2018-09-18T05:13:37+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-2.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Data Type Mapping Between R and Spark | Learn R and Spark","datePublished":"2018-01-16T14:19:25+00:00","dateModified":"2018-09-18T05:13:37+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/"},"wordCount":377,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-2.jpg","keywords":["benefits of SparkR","data type mapping in Spark and R","R and Spark","Spark and R","what is SparkR"],"articleSection":["Apache Spark Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/","url":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/","name":"Data Type Mapping Between R and Spark | Learn R and Spark - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-2.jpg","datePublished":"2018-01-16T14:19:25+00:00","dateModified":"2018-09-18T05:13:37+00:00","description":"Data type mapping between R and Spark,what is SparkR,SparkR Benefits:Data Sources API,Data Frame Optimizations,SparkR Scalability to Cores and Machines","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-2.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/01\/Data-type-mapping-between-R-and-Spark-01-2.jpg","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/data-type-mapping-between-r-and-spark\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Apache Spark Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/spark\/"},{"@type":"ListItem","position":3,"name":"Data Type Mapping Between R and Spark | Learn R and Spark"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/5691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=5691"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/5691\/revisions"}],"predecessor-version":[{"id":34500,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/5691\/revisions\/34500"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/6418"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=5691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=5691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=5691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}