Looking back at 2019 and plans for 2020

December 11, 2019
By

[This article was first published on R on msperlin, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

I’m just about to leave for my vacation and, as usual, I’ll write about the highlights of 2019 and my plans for the year to come. First, let’s talk about my work in 2019.

Highlights of 2019

The year of 2019 was not particularly fruitful in journal publications. I only had two: Accessing Financial Reports and Corporate Events with GetDFPData, published in RBfin and A consumer credit risk structural model based on affordability: balance at risk published in JCR. Both are papers I wrote back in 2017 and 2018 and not new articles. Most of the papers I worked this year will be published in 2020 or 2021.

This year, I’m mostly proud of the publication of my book about investing in the fixed income markets Poupando e Investindo em Renda Fixa: Uma Abordagem Baseada em Dados. This was a special project, very different from the usual writing style of scientific research and, lots of fun to write. As a side effect, I learned a lot about the fixed income market in Brasil and it forced me to think objectively about a problem that is inherently subjective, personal finance and investing. Hopefully, in the future, I’ll write another book about the stock market and real state investing, a topic that I’m also very interested.

My main project this year is the work in the second edition of my R book Analyzing Financial and Economic Data with R. It took a major part of my working weeks and weekends, but its coming together. Soon I’ll be publishing it in Amazon. You can find more details about it in this previous post.

In the programming side, I wrote two new CRAN packages in 2019: simfinR and GetQuandlData. Both are featured in the new edition of my R book (soon to be published).

My blog posts in 2018

Let’s have a look at my blog posts so so far.

my.blog.folder <- '~/Dropbox/11-My Website/www.msperlin.com-blog/content/post/'
post.files <- list.files(path = my.blog.folder, pattern = '.Rmd')

post.files
##  [1] "2017-01-01-First-post.Rmd"                 
##  [2] "2017-01-02-GetHFData.Rmd"                  
##  [3] "2017-01-15-CalculatingBetas.Rmd"           
##  [4] "2017-01-30-Exams-with-dynamic-content.Rmd" 
##  [5] "2017-02-13-R-and-Tennis-Players.Rmd"       
##  [6] "2017-02-16-Writing-a-book.Rmd"             
##  [7] "2017-03-05-Prophet-and_stock-market.Rmd"   
##  [8] "2017-05-04-pafdR-is-out.Rmd"               
##  [9] "2017-05-09-Studying-Pkg-Names.Rmd"         
## [10] "2017-05-15-R-Finance.Rmd"                  
## [11] "2017-08-12-Switching-to-Linux.Rmd"         
## [12] "2017-09-14-Brazilian-Yield-Curve.Rmd"      
## [13] "2017-12-06-Package-GetDFPData.Rmd"         
## [14] "2017-12-13-Serving-shiny-apps-internet.Rmd"
## [15] "2017-12-30-Looking-Back-2017.Rmd"          
## [16] "2018-01-22-Update-BatchGetSymbols.Rmd"     
## [17] "2018-03-16-Writing_Papers_About_Pkgs.Rmd"  
## [18] "2018-04-22-predatory-scientometrics.Rmd"   
## [19] "2018-05-12-Investing-Long-Run.Rmd"         
## [20] "2018-06-12-padfR-ed2.Rmd"                  
## [21] "2018-06-29-BenchmarkingSSD.Rmd"            
## [22] "2018-10-10-BatchGetSymbols-NewVersion.Rmd" 
## [23] "2018-10-11-Update-GetLattesData.Rmd"       
## [24] "2018-10-13-NewPackage-PkgsFromFiles.Rmd"   
## [25] "2018-10-19-R-and-loops.Rmd"                
## [26] "2018-10-20-Linux-and-R.Rmd"                
## [27] "2018-11-03-NewBlog.Rmd"                    
## [28] "2018-11-03-RstudioTricks.Rmd"              
## [29] "2019-01-08-Looking-Back-2018.Rmd"          
## [30] "2019-01-12-GetDFPData-ver14.Rmd"           
## [31] "2019-03-09-pafdR-promotion.Rmd"            
## [32] "2019-03-10-pafdR-promotion_2.Rmd"          
## [33] "2019-03-23-Bettina-Case.Rmd"               
## [34] "2019-04-13-Parallel-BatchGetsymbols.Rmd"   
## [35] "2019-04-15-GetBCBData.Rmd"                 
## [36] "2019-05-01-MeanVariance.Rmd"               
## [37] "2019-05-17-R-in-Brazil.Rmd"                
## [38] "2019-05-20-Lindy-Effect.Rmd"               
## [39] "2019-07-01-ftp-shutdown.Rmd"               
## [40] "2019-08-08-ftp-NOT-shutdown.Rmd"           
## [41] "2019-10-01-new-package-GetQuandlData.Rmd"  
## [42] "2019-10-12-support-GetDFPData-shiny.Rmd"   
## [43] "2019-10-16-new-package-GetEdgarData.Rmd"   
## [44] "2019-11-01-new-package-simfinR.Rmd"        
## [45] "2019-11-25-feedback-TOC-afedR.Rmd"         
## [46] "2019-12-02-dynamic-exercises-afedR.Rmd"    
## [47] "2019-12-15-Looking-Back-2019.Rmd"

The blog started in january of 2017 and, over time, I wrote 47 posts, around 15.6666667 per year. Let’s get more information from the .Rmd files. I’ll write function read_blog_files and use it for all post files.

read_blog_files <- function(f.in) {
  require(tidyverse)
  my.front.matter <- rmarkdown::yaml_front_matter(f.in)

  df.out <- data_frame(post.title = my.front.matter$title,
                       post.date = lubridate::ymd(my.front.matter$date),
                       post.month = as.Date(format(post.date, '%Y-%m-01')),
                       tags = paste0(my.front.matter$tags, collapse = ';'),
                       categories = paste0(my.front.matter$categories, collapse = ';'),
                       content = paste0(read_lines(f.in), collapse = ' '))

  return(df.out)
}

df.posts <- dplyr::bind_rows(purrr::map(post.files, read_blog_files))
## Warning: `data_frame()` is deprecated, use `tibble()`.
## This warning is displayed once per session.
glimpse(df.posts)
## Observations: 47
## Variables: 6
## $ post.title  "My first post!", "Using R to download high frequency trad…
## $ post.date   2017-01-01, 2017-01-02, 2017-01-15, 2017-01-30, 2017-02-1…
## $ post.month  2017-01-01, 2017-01-01, 2017-01-01, 2017-01-01, 2017-02-0…
## $ tags        "about me", "R;GetHFData;B3;market microstructure;high fre…
## $ categories  "about me", "R;GetHFData;B3;market microstructure;high fre…
## $ content     "--- title: \"My first post!\" subtitle: \"A little bit ab…

First, let’s look at the frequency of posts over time.

df.posts <- df.posts %>%
  filter(post.date >= as.Date('2019-01-01'), 
         post.date <= as.Date('2020-01-01'))

print( ggplot(df.posts, aes(x = post.month)) + geom_histogram(stat='count') +
         theme(axis.text.x = element_text(angle = 90, hjust = 1)) +
         labs(y = 'Number of posts', x = ''))
## Warning: Ignoring unknown parameters: binwidth, bins, pad

Checking 2019’s plans

At the end of 2018, my plans for 2019 were:

New edition of “Analyzing Financial and Economic Data with R”
in progress!
Work on my new book: “Investing For the Long Term” (provisory title)
Done! The first idea was to write a book about investing in general. I soon realized I would not be able to complete such task within one year. So, I decided to first write about the fixed income market and later, perhaps, write about stock markets and real state.
Solidify my research agenda in Board Composition
In progress. I’ve got four papers in development, two already submitted and two in the pipeline.

Plans for 2020

Publish afedR (analyzing financial and economic data with R)
My expectation is to publish the book in the first months of the year. I believe it is quite doable, unless something unexpected happens.
Finish board papers
Also doable. The working papers are in a good shape and should be submitted soon.
Start “personal finance project”
I’m not yet sure how to call it, but I’ve got a couple of ideas for creating a project all about helping people with their finances.

To leave a comment for the author, please follow the link and comment on their blog: R on msperlin.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)