Swap first and last… letter

November 6, 2023 | Numbers around us

Excel BI’s Excel Challenge #317 — solved in RDefining the Puzzle:Today we are move single letters from starts to end of words. But with some exceptions.Swap the first and last letter of each words in given names. But if either first or last letter or b...
[Read more...]

Even Fibonacci numbers

November 6, 2023 | Numbers around us

Excel BI’s Excel Challenge #316 — solved in RDefining the Puzzle:Probably everyone of us have heard of Fibonacci Numbers. It is a sequence that property is that next number is a sum of two previous. But this time ExcelBI asked us to generate… first 20 ...
[Read more...]

Grouped Sequences in dplyr

November 4, 2023 | R on Alan Yeung

For a piece of work I had to calculate the number of matches that a team plays away from home in a row, which we will call days_on_the_road. I was not sure how to do this with dplyr but it’s basically a ‘grouped sequence’. For this ... [Read more...]

Bad map

November 4, 2023 | Michael

Bad Kreuznach, Germany – CC-BY-NC by Billy Wilson Day 4 of 30DayMapChallenge: « Bad map » (previously). A map of all populated places containing the word “Bad” from Geonames. library(tidyverse) library(leaflet) library(httr) library(fs) gn_file leaflet() |__ addCircleMarkers(popup = ~ name) |__ addTiles() Figure 1: Bad map So we have 471 “Bad” populated places…
[Read more...]

FAQs on mixed-effects models

November 3, 2023 | R on Pablo Bernabeu

I am dealing with nested data, and I remember from an article by Clark (1973) that nested should be analysed using special models. I’ve looked into mixed-effects models, and I’ve reached a structure with random intercepts by subjects and by items. ... [Read more...]

Clustering points to polygons

November 3, 2023 | Michael

Female lynx posing on the dead tree – CC-BY-ND by Tambako The Jaguar Day 3 of 30DayMapChallenge: « Polygons » (previously). Using data from a previous post on lynx occurrences. So we mapped the sightings of lynx, but there are a lot of outliers; how can we map the core habitat of the species? ...
[Read more...]

OSM Guadeloupe trail relation

November 2, 2023 | Michael

Guadeloupe – CC-BY-SA by SnippyHolloW Day 2 of 30DayMapChallenge: « Lines » (previously). Using data from Openstreetmap we will map the GR G1 trail (fr) crossing Guadeloupe. We could use {osmdata} (see this post), but in this case it’s easier to just grab a GPX file from Waymarked Trail (see the link in ...
[Read more...]
1 37 38 39 40 41 2,094