{"id":21535,"date":"2019-10-14T10:28:51","date_gmt":"2019-10-14T14:28:51","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=21535"},"modified":"2024-05-14T11:30:12","modified_gmt":"2024-05-14T15:30:12","slug":"tech-dividends-part-i","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/","title":{"rendered":"Tech Dividends &#8211; Part I"},"content":{"rendered":"\n<p>In a&nbsp;<a href=\"https:\/\/www.reproduciblefinance.com\/2019\/07\/10\/dividend-discovery\/\">previous post<\/a>, we explored the dividend history of stocks included in the SP500. Today we\u2019ll extend that anlaysis to cover the Nasdaq because, well, because in the previous post I said I would do that. We\u2019ll also explore a different source for dividend data, do some string cleaning and check out ways to customize a tooltip in&nbsp;<code>plotly<\/code>. Bonus feature: we\u2019ll get into some animation too. We have a lot to cover, so let\u2019s get to it.<\/p>\n\n\n\n<p>We need to load up our packages for the day.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>library(tidyverse)\nlibrary(tidyquant)\nlibrary(janitor)\nlibrary(plotly)<\/code><\/pre>\n\n\n\n<p>First we need all the companies listed on the Nasdaq. Not so long ago, it wasn\u2019t easy to import that information into R. Now we can use&nbsp;<code>tq_exchange(\"NASDAQ\")<\/code>&nbsp;from the&nbsp;<code>tidyquant<\/code>&nbsp;package.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nasdaq &lt;-\n  tq_exchange(\"NASDAQ\")\n\nnasdaq %>% \n  head() <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># A tibble: 6 x 7\n  symbol company     last.sale.price market.cap ipo.year sector  industry  \n  &lt;chr>  &lt;chr>                 &lt;dbl> &lt;chr>         &lt;dbl> &lt;chr>   &lt;chr>     \n1 YI     111, Inc.              2.69 $219.66M       2018 Health\u2026 Medical\/N\u2026\n2 PIH    1347 Prope\u2026            4.85 $29.16M        2014 Finance Property-\u2026\n3 PIHPP  1347 Prope\u2026           25.7  $17.96M          NA Finance Property-\u2026\n4 TURN   180 Degree\u2026            2.09 $65.04M          NA Finance Finance\/I\u2026\n5 FLWS   1-800 FLOW\u2026           15.3  $983.42M       1999 Consum\u2026 Other Spe\u2026\n6 BCOW   1895 Banco\u2026            9.33 $45.5M         2019 Finance Banks     <\/code><\/pre>\n\n\n\n<p>Notice how the&nbsp;<code>market.cap<\/code>&nbsp;column is of type character? Let\u2019s coerce it to a&nbsp;<code>dbl<\/code>&nbsp;with&nbsp;<code>as.numeric<\/code>&nbsp;and while we\u2019re at it, let\u2019s remove the periods in all the column numes with&nbsp;<code>clean_names<\/code>&nbsp;from the&nbsp;<code>janitor<\/code>&nbsp;package.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nasdaq %>% \n  clean_names() %>%\n  mutate(market_cap = as.numeric(market_cap)) %>% \n  select(symbol, market_cap) %>% \n  head()<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># A tibble: 6 x 2\n  symbol market_cap\n  &lt;chr>       &lt;dbl>\n1 YI             NA\n2 PIH            NA\n3 PIHPP          NA\n4 TURN           NA\n5 FLWS           NA\n6 BCOW           NA<\/code><\/pre>\n\n\n\n<p>Not exactly what we had in mind. The presence of those&nbsp;<code>M<\/code>,&nbsp;<code>B<\/code>&nbsp;and&nbsp;<code>$<\/code>&nbsp;characters are causing&nbsp;<code>as.numeric()<\/code>&nbsp;to coerce the column to NAs. If we want to do any sorting by market cap, we\u2019ll need to clean that up and it\u2019s a great chance to explore some&nbsp;<code>stringr<\/code>. Let\u2019s start with&nbsp;<code>str_remove_all<\/code>&nbsp;and remove those non-numeric characters. The call is&nbsp;<code>market_cap %&gt;% str_remove_all(\"\\\\$|M|B\")<\/code>, and then an&nbsp;<code>arrange(desc(market_cap))<\/code>&nbsp;so that the largest cap company is first.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nasdaq %>% \n  clean_names() %>%\n  mutate(market_cap = market_cap %>% str_remove_all(\"\\\\$|M|B\") %>% as.numeric()) %>%\n  arrange(desc(market_cap)) %>% \n  head()<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># A tibble: 6 x 7\n  symbol company    last_sale_price market_cap ipo_year sector  industry   \n  &lt;chr>  &lt;chr>                &lt;dbl>      &lt;dbl>    &lt;dbl> &lt;chr>   &lt;chr>      \n1 CIVBP  Civista B\u2026            66      667920        NA Finance Major Banks\n2 ASRVP  AmeriServ\u2026            29.6    621600        NA Finance Major Banks\n3 ESGRP  Enstar Gr\u2026            26.6    425920        NA Finance Property-C\u2026\n4 AGNCN  AGNC Inve\u2026            26.0    337870        NA Consum\u2026 Real Estat\u2026\n5 SBFGP  SB Financ\u2026            15.8    237221.       NA Finance Major Banks\n6 ESGRO  Enstar Gr\u2026            26.4    115984        NA Finance Property-C\u2026<\/code><\/pre>\n\n\n\n<p>Well, that wasn\u2019t too bad!<\/p>\n\n\n\n<p>Wait, that looks weird, where\u2019s AMZN and MSFT shouldn\u2019t they be at the top of the market cap? Look closely at&nbsp;<code>market_cap<\/code>&nbsp;and notice it\u2019s been coerced to a numeric value as we intended but we didn\u2019t account for the fact that those&nbsp;<code>M<\/code>&nbsp;and&nbsp;<code>B<\/code>&nbsp;letters were abbreviating values and standing place for a whole bunch of zeroes. The first symbol above,&nbsp;<code>CIVBP<\/code>, didn\u2019t have an&nbsp;<code>M<\/code>&nbsp;or&nbsp;<code>B<\/code>&nbsp;because it\u2019s market cap is low, so it didn\u2019t have any zeroes lopped off of it.<\/p>\n\n\n\n<p>We need a way to remove the&nbsp;<code>M<\/code>&nbsp;and the&nbsp;<code>B<\/code>&nbsp;account for those zeroes that got removed. Here\u2019s how I chose to tackle this.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Find all the cells that do not have an&nbsp;<code>M<\/code>&nbsp;or a&nbsp;<code>B<\/code>, remove the&nbsp;<code>$<\/code>&nbsp;sign, convert to numeric and divide by 1000. We do that with&nbsp;<code>if_else(str_detect(market_cap, \"M|B\", negate = TRUE), str_remove_all(market_cap, \"\\\\$\") %&gt;% as.numeric() %&gt;%<\/code>\/<code>(1000)<\/code>.<\/li><li>Find all the cells that have a&nbsp;<code>B<\/code>, remove the&nbsp;<code>B<\/code>&nbsp;and the&nbsp;<code>$<\/code>&nbsp;sign, convert to numeric and multiply by 1000. We do that with&nbsp;<code>if_else(str_detect(market_cap, \"B\"), str_remove_all(market_cap, \"\\\\$|B\") %&gt;% as.numeric() %&gt;%<\/code>*<code>(1000)<\/code>.<\/li><li>Find all the cells that have an&nbsp;<code>M<\/code>, remove the&nbsp;<code>M<\/code>&nbsp;and the&nbsp;<code>$<\/code>&nbsp;sign, convert to numeric and don\u2019t multiply or divide. We do that with&nbsp;<code>str_remove_all(market_cap, \"\\\\$|M\") %&gt;% as.numeric()))<\/code>.<\/li><\/ol>\n\n\n\n<p><em>Stay tuned for the next installment, in which Jonathan will continue coding this  tibble in R.<\/em> <em>To download the full R script, visit his blog <\/em> <a href=\"https:\/\/www.reproduciblefinance.com\/2019\/08\/25\/tech-dividends\/\"><em>https:\/\/www.reproduciblefinance.com\/2019\/08\/25\/tech-dividends\/<\/em><\/a><em> <\/em>.<\/p>\n\n\n\n<p>Any stock, options or futures symbols displayed are for illustrative purposes only and are not intended to portray recommendations.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jonathan Regenstein explores a source for dividend data, does some string cleaning and checks out ways to customize a tooltip in plotly.<\/p>\n","protected":false},"author":198,"featured_media":5676,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,338,341,352,344,342],"tags":[806,4619,2857,1043,1410,487,508,1044,1045,2536],"contributors-categories":[13681],"class_list":{"0":"post-21535","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-ibkr-quant-news","10":"category-quant-development","11":"category-quant-north-america","12":"category-quant-regions","13":"category-r-development","14":"tag-data-science","15":"tag-gganimate","16":"tag-ggplot","17":"tag-monte-carlo","18":"tag-plotly","19":"tag-r","20":"tag-rstudio","21":"tag-tidyquant","22":"tag-tidyverse","23":"tag-visualization","24":"contributors-categories-reproducible-finance"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Tech Dividends &#8211; Part I | IBKR Quant<\/title>\n<meta name=\"description\" content=\"Jonathan Regenstein explores a source for dividend data, does some string cleaning and checks out ways to customize a tooltip in plotly.\" \/>\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.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/21535\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tech Dividends - Part I - Jonathan Regenstein on IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Jonathan Regenstein explores a source for dividend data, does some string cleaning and checks out ways to customize a tooltip in plotly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-14T14:28:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-14T15:30:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/05\/R-article.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jonathan Regenstein\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan Regenstein\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Jonathan Regenstein\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/9cd381f16f92f1f8cf23b43318d0561e\"\n\t            },\n\t            \"headline\": \"Tech Dividends &#8211; Part I\",\n\t            \"datePublished\": \"2019-10-14T14:28:51+00:00\",\n\t            \"dateModified\": \"2024-05-14T15:30:12+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/\"\n\t            },\n\t            \"wordCount\": 532,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/R-article.jpg\",\n\t            \"keywords\": [\n\t                \"Data Science\",\n\t                \"gganimate\",\n\t                \"ggplot\",\n\t                \"Monte Carlo\",\n\t                \"plotly\",\n\t                \"R\",\n\t                \"RStudio\",\n\t                \"tidyquant\",\n\t                \"tidyverse\",\n\t                \"Visualization\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Quant\",\n\t                \"Quant Development\",\n\t                \"Quant North America\",\n\t                \"Quant Regions\",\n\t                \"R Development\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/\",\n\t            \"name\": \"Tech Dividends - Part I - Jonathan Regenstein on IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/R-article.jpg\",\n\t            \"datePublished\": \"2019-10-14T14:28:51+00:00\",\n\t            \"dateModified\": \"2024-05-14T15:30:12+00:00\",\n\t            \"description\": \"Jonathan Regenstein explores a source for dividend data, does some string cleaning and checks out ways to customize a tooltip in plotly.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/tech-dividends-part-i\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/R-article.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/R-article.jpg\",\n\t            \"width\": 600,\n\t            \"height\": 300,\n\t            \"caption\": \"R Programming\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/9cd381f16f92f1f8cf23b43318d0561e\",\n\t            \"name\": \"Jonathan Regenstein\",\n\t            \"description\": \"Jonathan Regenstein - Reproducible Finance by way of Alpha Architect\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/jonathanregenstein\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Tech Dividends &#8211; Part I | IBKR Quant","description":"Jonathan Regenstein explores a source for dividend data, does some string cleaning and checks out ways to customize a tooltip in plotly.","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.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/21535\/","og_locale":"en_US","og_type":"article","og_title":"Tech Dividends - Part I - Jonathan Regenstein on IBKR Quant Blog","og_description":"Jonathan Regenstein explores a source for dividend data, does some string cleaning and checks out ways to customize a tooltip in plotly.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/","og_site_name":"IBKR Campus US","article_published_time":"2019-10-14T14:28:51+00:00","article_modified_time":"2024-05-14T15:30:12+00:00","og_image":[{"width":600,"height":300,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/05\/R-article.jpg","type":"image\/jpeg"}],"author":"Jonathan Regenstein","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan Regenstein","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/"},"author":{"name":"Jonathan Regenstein","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/9cd381f16f92f1f8cf23b43318d0561e"},"headline":"Tech Dividends &#8211; Part I","datePublished":"2019-10-14T14:28:51+00:00","dateModified":"2024-05-14T15:30:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/"},"wordCount":532,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/05\/R-article.jpg","keywords":["Data Science","gganimate","ggplot","Monte Carlo","plotly","R","RStudio","tidyquant","tidyverse","Visualization"],"articleSection":["Data Science","Programming Languages","Quant","Quant Development","Quant North America","Quant Regions","R Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/","name":"Tech Dividends - Part I - Jonathan Regenstein on IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/05\/R-article.jpg","datePublished":"2019-10-14T14:28:51+00:00","dateModified":"2024-05-14T15:30:12+00:00","description":"Jonathan Regenstein explores a source for dividend data, does some string cleaning and checks out ways to customize a tooltip in plotly.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/tech-dividends-part-i\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/05\/R-article.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/05\/R-article.jpg","width":600,"height":300,"caption":"R Programming"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/9cd381f16f92f1f8cf23b43318d0561e","name":"Jonathan Regenstein","description":"Jonathan Regenstein - Reproducible Finance by way of Alpha Architect","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/jonathanregenstein\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/05\/R-article.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/21535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/198"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=21535"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/21535\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/5676"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=21535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=21535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=21535"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=21535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}