Posts with the R tag
10 February, 2022
– We can use RStudio's open-source version of Shiny Server to host our own Shiny apps on a Ubuntu 20.04 cloud server.
2 February, 2022
– It's a fairly common warning message, but usually nothing to worry about. I'll describe why it occurs, and what you might want to do about it, here.
19 January, 2022
– I like to check the number of NA values in my data frames so frequently that I've written a very simple function to do so.
4 September, 2021
– It's possible to generate random variables from a specific distribution by using the inverse of the cumulative distribution function. We'll see how to do this with a few specific examples in R.
9 July, 2021
– This is a super brief post demonstrating an easy way to filter several variables on the same condition in R, using dplyr's across function.
24 June, 2021
– Mean squared error (MSE) is an important measure of models that predict continuous variables. When we're using it to evaluate our model, however, we need to be careful that we're using the test MSE rather than the training MSE. We'll go over the differences here, using some examples in R.
28 May, 2021
12 July, 2020
– An easy way to add further interactivity to Leaflet maps rendered in R Shiny apps is to enable zoom-to-point functionality for your polygons. There currently isn't an out-of-the-box solution for this, but it's pretty easy ...
8 June, 2020
– C:\this\is\a\typical\filepath\ that\I\find\myself\copying\ and\pasting\into\R. If you've ever done the same, you'll know how fun it is going through and substituting the backslashes for forward slashes ..
4 February, 2020 (updated 2 November, 2022)
– I see this question pop up on Stack Overflow all the time. How do you tie together multiple selectInputs (or selectizeInputs), making the child input dependent on the parent input, but still allowing the user to bypass the first input? In other ...
8 January, 2020
– It turns out that capturing and displaying in a Shiny app the warning and error messages generated by ggplot isn't as simple as you might think. In order to discover why that is, we need to know a little bit about what happens behind the scenes ...