April 2020

New R Package ‘foo’ — Updated

April 24, 2020 | daniel murphy

# RUN THESE LINES IN ONE SESSION ... # Navigate where you want your folder to be locatedsetwd("C:/Users/myhandle/Documents/Github")# Run create_package in 'usethis' package and read below what happensusethis::create_package("foo")# A bunch of stuff shows up in the console including line below.# ✔ Opening 'foo/' in ...
[Read more...]

WrightMap Tutorial 1

April 24, 2020 | R on WrightMap

Plotting Unidimensional/Dichotomous Models Updated Fri 24-Apr-2020 Setup and basics This is an introduction to the wrightMap function in the WrightMap package. The wrightMap function creates Wright Maps based on person estimates and item parameters produced by an item response analysis. The CQmodel function reads output files created using ConQuest ...
[Read more...]

U is for Useful Trick

April 24, 2020 | Unknown

This will be a very short post for a line of code I've found unbelievably useful as I analyze data for work. I'm working with datasets containing millions of rows of data. (The most recent one I worked with had about 13 million records.) Because R load...
[Read more...]

Free Springer Books during COVID19

April 24, 2020 | Paul van der Laken

Book publisher Springer just released over 400 book titles that can be downloaded free of charge following the corona-virus outbreak. Here’s fhe full overview: https://link.springer.com/search?facet-content-type=%22Book%22&package=mat-covid19_textbooks&facet-language=%22En%22&sortOrder=newestFirst&showAll=true Most of these books will normally set you back about $50 ...
[Read more...]

Risk premia

April 23, 2020 | R on OSM

Our last post discussed using the discounted cash flow model (DCF) as a method to set return expectations that one would ultimately employ in building a satisfactory portfolio. We noted that if one were able to have a reasonably good estimate of the cash flow growth rate of an asset, ...
[Read more...]

Evaluating Mass Muni CAFR Textract Results – Part 5

April 23, 2020 | R on Redwall Analytics

# Libraries
packages <- 
  c("data.table",
    "reticulate",
    "paws.machine.learning",
    "paws.common",
    "keyring",
    "pdftools",
    "listviewer",
    "readxl"
    )

if (length(setdiff(packages,rownames(installed.packages()))) > 0) {
  install.packages(setdiff(packages, rownames(installed.packages())))  
}

invisible(lapply(packages, library, character.only = TRUE))

knitr::opts_chunk$set(comment=NA, fig.width=12, fig.height=8, out.width = '100%')
Introduction In Evaluating Mass Muni CAFR Tabulizer Results - Part 3, we showed how to use pdftools and tabulizer to subset a group of PDFs, the AWS paws SDK package to store the PDF in s3, and Textract machine learning to extract a block response object using its “asynchronous” process. ... [Read more...]

Le Monde puzzle [#1139]

April 23, 2020 | xi'an

A weekly Monde current mathematical puzzle that reminded me of an earlier one (but was too lazy to check): The integer n=36 enjoys the property that all the differences between its ordered divisors are also divisors of 36. Find the only 18≤m≤100 that enjoys this property such that all its prime ...
[Read more...]

T is for Themes

April 23, 2020 | Unknown

One of the easiest ways to make a beautiful ggplot is by using a theme. ggplot2 comes with a variety of pre-existing themes. I'll use the genre statistics summary table I created in yesterday's post, and create the same chart with different themes.libr...
[Read more...]

Apple’s COVID Mobility Data

April 23, 2020 | R on kieranhealy.org

Apple recently released a batch of mobility data in connection with the COVID-19 pandemic. The data is aggregated from requests for directions in Apple Maps and is provided at the level of whole countries and also for a selection of large cities around the world. I folded the dataset into ... [Read more...]

Munging and reordering Polarsteps data

April 22, 2020 | Roel M. Hogervorst

This post is about how to extract data from a json, turn it into a tibble and do some work with the result. I’m working with a download of personal data from polarsteps. A picture of Tokomaru Wharf (New Zealand) I was a month in New Zealand, birthplace of ...
[Read more...]

10 Commands to Get Started with Git

April 22, 2020 | R Views

Roland Stevenson is a data scientist and consultant who may be reached on Linkedin. Git and its online extensions like GitHub, Bitbucket, and GitLab are essential tools for data science. While the emphasis is often on collaboration, Git can also be very useful to the solo practitioner. The RStudio IDE ...
[Read more...]
1 3 4 5 6 7 17

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)