Ben Black

52 posts

Ben Black banner
Ben Black

Ben Black

@Blen_Back

PhD @PLUS_ETH | All about environmental modelling, open science, and cruising by bicycle | he/him

Zurich, Switzerland Katılım Ağustos 2022
82 Takip Edilen31 Takipçiler
Sabitlenmiş Tweet
Ben Black
Ben Black@Blen_Back·
A paper on land use change modelling without a single map in it: IMPOSSIBLE! Well we did it with our latest article in Environmental Modelling & Software in which we highlight the benefits of thinking outside the 'status quo' for model calibration: doi.org/10.1016/j.envs… A 🧵
English
1
1
5
0
Ben Black retweetledi
Janna Hoppe
Janna Hoppe@Janna_Hoppe·
🌍 Our new research shows that climate policies have had a real impact in reducing GHG emissions, scaling up renewables & energy efficiency, & protecting forests. While current policies are far from sufficient, they put us in a much better position compared to a world w/out them
Janna Hoppe tweet media
English
2
74
267
37.5K
Ben Black
Ben Black@Blen_Back·
HI @Eurostar I requested a bicycle reservation for an upcoming trip via email 9 days ago. It would be great to have a response so I can plan subsequent travel. Surely it can't be that hard to confirm?
English
1
0
0
2.1K
Ben Black retweetledi
Janna Hoppe
Janna Hoppe@Janna_Hoppe·
Finally out: An investigation into public support for phasing out conventional cars (ICEVs) in Germany - finding that many people are in favour of phasing out ICEVs completely by 2040. Good news? Well, yes and no. 🧵👇
Janna Hoppe tweet media
English
1
10
32
3K
Ben Black
Ben Black@Blen_Back·
@awunderground @rstatstweet @posit_pbc What changes it makes do you find annoying? I have found when switching between source and visual editor views it changes html <div>’s which can break the code. Wonder if it is possible to turn off this feature?
English
0
0
0
15
Aaron R. Williams
Aaron R. Williams@awunderground·
If one person on a project uses the RStudio/@posit_pbc visual editor it forces everyone to use the visual editor and it has annoying behavior about changing the underlying source code. RStudio is awesome but this behavior is not. #rstats
English
1
1
2
1.1K
Ben Black
Ben Black@Blen_Back·
@matloff @adamTford Thanks for a good read with very succinct points esp. re: vectors. I began with an intro to R course that only taught Tidy but since branching out on my own I use 99% base R, however I want to at least know/understand the Tidy dialect too.
English
1
0
1
80
Adam ™ Ford
Adam ™ Ford@adamTford·
I want to replace the value in a cell in something the kids are calling a 'tibble'. In baseR, it was a simple 1 liner for a dataframe: df[column#,row#]=newvalue What's the Tidy version? #RStats #BaseRforLife #AntiVerse
English
6
2
7
9.9K
Ben Black
Ben Black@Blen_Back·
@mukesh_ray @rstatstweet But as others have mentioned, depending on your operation/operating system parallelisation might not result in big benefits because of the overhead time, especially on Windows which is not capable of forking.
English
0
0
0
36
Ben Black
Ben Black@Blen_Back·
@mukesh_ray @rstatstweet I compared multiple parallelisation packages in R and by far the easiest to get start with is the future package and the family of future_apply functions. In your case perhaps applying over a list of rasters or layers in a stack?
English
1
0
3
208
Ruben Dario Palacio, Ph.D.
Ruben Dario Palacio, Ph.D.@rdpalacio·
Here's how to organize your research for improved productivity and reproducibility I will show screenshots of my own research for illustrative purposes. Follow along here👇
English
5
29
213
59.5K
Ben Black
Ben Black@Blen_Back·
@aetiologic @rstatstweet Unless you really want to avoid a list why not use split(DF, df$col) followed by names(unique(df$col))?
English
0
0
1
38
Aetiologic
Aetiologic@aetiologic·
#rstats Is there a way to take a large dataframe and generate N child dfs, each child named for, and holding only, records with 1 unique value of a categorical variable, i.e. magic_function(diamonds, color) yields dfs: E I J H F G D, where "E" df has only color=="E" values ?
English
3
1
2
1.1K
Ben Black
Ben Black@Blen_Back·
@researchremora @rstatstweet Nice! I’m just getting started with rayshader, I’m struggling with lighting in the final scene with render_highquality. Have you posted your code for this?
English
1
0
0
2.2K
terence
terence@researchremora·
As requested over DM, today's population density map is the Netherlands. Lots of labels here so I hope they're all correct! #rayshader adventures, an #rstats tale
terence tweet media
English
26
122
848
203.1K
Ben Black
Ben Black@Blen_Back·
@moaziz_tweets @JUrbina10 @rstatstweet Regex <- paste(“pattern1”, “pattern2”, collapse = “|”) DF$new_column <- sapply(DF$old_column, function(x) grep(x, Regex, value = TRUE)) Others could probably make it even neater/shorter.
English
1
0
1
58
Ben Black
Ben Black@Blen_Back·
@mammaldreams @rstatstweet All scripts named numerically with a master script that calls them with source() (useful if sharing alongside a research paper). Git for version control. I think using collapsible code sections to organise tasks within scripts really improves readability: support.posit.co/hc/en-us/artic…
English
0
0
3
0
Leah White 🌎🔥
Leah White 🌎🔥@mammaldreams·
Attn #rstats: this is a "mostly self-taught" question. How do y'all organize your scripts? How many Tasks do you have a single script do, and how many scripts do you end up with in a single project? I'm winging it, but I'm sure there are some hard-learned lessons out there.
English
5
1
8
0
Ben Black
Ben Black@Blen_Back·
As a PhD I often feel pressure to be pursuing research goals which can lead to neglecting other learning. Today, I took the time to go through a great resource on version control with GitHub from @ResulUmit: #1" target="_blank" rel="nofollow noopener">resulumit.com/teaching/git_w…. I will be recommending this to all colleagues!
English
0
0
1
0
Ben Black
Ben Black@Blen_Back·
10/10 Big thanks to all collaborators who helped in this project! All analysis was conducted with #RStats and because #OpenScience is the way to go, data and code will be available here: doi.org/10.5281/zenodo… Next up: Future land use simulations for Switzerland 🇨🇭 until 2060
English
0
2
1
0
Ben Black
Ben Black@Blen_Back·
9/10 We suggest that what is needed is a universal protocol for the calibration of statistical models as part of CAs that is generalisable across the popular software applications. Encouraging more consideration of direct validation without overwhelming practictioners ⚖️
English
1
0
1
0
Ben Black
Ben Black@Blen_Back·
A paper on land use change modelling without a single map in it: IMPOSSIBLE! Well we did it with our latest article in Environmental Modelling & Software in which we highlight the benefits of thinking outside the 'status quo' for model calibration: doi.org/10.1016/j.envs… A 🧵
English
1
1
5
0