Rewrote the #rstats#shinyapps in #svelte with #typescript. Loads much faster and feels much snappier now π Also mobile responsive π«
Served entirely statically via GitHub Pages:
π https://t.co/dU7n8gua1n
The #rstats#shinyapp for exploring some German regional data is now available at https://t.co/VOj2dpWVw0 β¨
Both content and interface will keep getting updated! (Still only in German, but your browser can translate it into English π )
@TeslaDuBois I think the easiest way to do this would be to scale the state geometries around the region centroids using affine transformations (https://t.co/17wB4qIbrf), which can be done with {sf}. Minimal example:
Inspecting nested lists in #rstats can be daunting, so I've created a small package {listviewerlite} (inspired by listviewer) that creates a collapsible tree view of R lists using only #html and #css, without the need for #javascript
https://t.co/FECDIUqDNz
Acknowledgement: π§΅
@von_skopnik@TimTeaFan Yes :) the font is Cascadia Code (https://t.co/i9L1hSByo3) with the 'ss01' OpenType font feature enabled for the cursive italics.
For the screenshots, I use VS Code with the CodeSnap add-on. VS Code theme is Everforest https://t.co/H5HtDq3tCK
Over the past year, a @CorrelAid team of @long39ng, @Kov_Zoran, Dorian Le Jeune, Johannes Ritter and me have developed {restatis}. The first version of this #RStats API wrapper for accessing the GENESIS database of @destatis is now available on #CRAN.
https://t.co/tP8zCyrUIw
@TimTeaFan I see your point. Maybe a named list for the dict, where names are data column names and elements are value-label data frames? Then the value columns in the different dict data frames don't have to have the same type
@TimTeaFan And fwiw, I think an expr(as_integer_if_possible(label)) can be passed to the RHS when creating the formulas for case_match() to replicate your approach with recode() π€
@TimTeaFan Not that it matters much here, but plucking from a list should have better performance than filtering a data frame and the list structure would also correspond more to the dict/map data structure in other languages
@TimTeaFan Also, I think using case_match() is type-safer because it would only accept values of the same type as the original value column on the LHS of the formulas, whereas names of a vector are always character π€
Introducing {remmy}, a minimal API package for the Reddit alternative Lemmy (https://t.co/AipdrTWnhn) in #RStats
π¦ https://t.co/KbXJFCMw4f π¦
(All function code and documentation are programmatically generated from the official JavaScript client source π»π)