@jospueyo@fosstodon.org avatar

jospueyo

@jospueyo@fosstodon.org

GeographeR & AbuseR. Defender of Open Science. https://github.com/jospueyo

Researcher at the Catalan Institute for Water Research.

Father of two beloved kids.

Human towers hobbyist.

He/him, Catalan, European, CIS, white and in my fourties. I am aware I am in a position of privilege and try to remind this in my daily life to somehow mitigate it.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

aeryn_thrace, to random
@aeryn_thrace@mastodon.social avatar

Disquieting thought:

Accelerating scientific development depends on substantially slowing the rate of research paper publication.

jospueyo,
@jospueyo@fosstodon.org avatar

@aeryn_thrace Great ideas need time to think! Fully agree with that.

jonny, to random
@jonny@neuromatch.social avatar
jospueyo,
@jospueyo@fosstodon.org avatar

@jonny I must say that this is quite the same than using fill() from {tidyr} in . The problem, IMHO, is not explaining this on the paper.

Sometimes, it makes sense filling missing values with neighbours. Sometimes.

jospueyo, to random Catalan
@jospueyo@fosstodon.org avatar
ChristosArgyrop, to php
@ChristosArgyrop@mstdn.science avatar

I think I am 50% done finding a quadrafecta : a simultaneous hit piece against & .

This one only manages to trash talk and , so it has some ways to go.

https://stefanoborini.com/why-r-is-the-new-perl/

PS 1Gotta admit that the point about the object systems in R is somewhat spot on
PS 2 gets a dishonorable mention
PS3 I will continue to find ways to continue using all 4 of the aforementioned languages, as they are all performant and deliver in complementary ways.

jospueyo,
@jospueyo@fosstodon.org avatar

@ChristosArgyrop We got it. You hate . However, your opinion is based on a poor knowledge of the ecosystem. But more important, you were irrespective to the thousands of @rstats developers to devote their time to open source software.

jospueyo,
@jospueyo@fosstodon.org avatar

@ChristosArgyrop @rstats In that case, I would recommend using {renv} to create virtual environments, and {box} for importing modules and packages preserving namespace. Also {targets} for your pipelines. With this you will overpass some of the shortcomings you mentioned in your post.

jospueyo,
@jospueyo@fosstodon.org avatar

@landesfeind @ChristosArgyrop @rstats You're absolutely right. Please, accept my apologies.

atoponce, to linux
@atoponce@fosstodon.org avatar

Optimist: the glass is half full

Pessimist: the glass is half empty

user: water is bloat

jospueyo,
@jospueyo@fosstodon.org avatar

@atoponce windows users: :loading:

jorgeapenas, to random

We do the writing. We do the editing. We do the reviewing. We do the formatting (we typeset everything in LaTeX). We do the proofreading. We correct the mistakes introduced by proofreaders.

What do publishers do? They make us sign silly copyright forms, stamp their logo on our papers, and then proceed to charge us (either as authors or readers) ridiculous amounts.

People think academics/scientists are clever. We might be. But we are also stupid. And vain.

jospueyo,
@jospueyo@fosstodon.org avatar

@jorgeapenas I believe initatives such as Open Research Europe are leading the way to a new paradigm in scientific publications.

https://open-research-europe.ec.europa.eu/

terence, to random
@terence@fosstodon.org avatar

Day 22: North is not always up. Tried a few ideas that didn't work. Then learned that NASA's Blue Marble image was originally "south pole-up" but they flipped it so people wouldn't flip out. I chose not to do that here.

adventures, an tale

video/mp4

jospueyo,
@jospueyo@fosstodon.org avatar

@terence I believe that is turning in the reverse order, isn't it?

njtierney, to random
@njtierney@aus.social avatar

New post: "How to get good with R", where I ramble on some ideas on getting better with R - keen to hear what people think I've missed and discuss the topic!

https://www.njtierney.com/post/2023/11/10/how-to-get-good-with-r/

#rstats

jospueyo,
@jospueyo@fosstodon.org avatar

@njtierney For me, the most useful way is reading the websites of packages and engaging in discussions here under the hashtag.

terence, to random
@terence@fosstodon.org avatar

How do we get the complement (don't know the correct term so I'm borrowing from set theory) of a shapefile within a bounding box in ? I want the stuff outside the shapefile's boundaries but within its extent.

Would appreciate any help!

jospueyo,
@jospueyo@fosstodon.org avatar

@terence If I understood well, you need st_difference from {sf}. https://r-spatial.github.io/sf/reference/geos_binary_ops.html

jospueyo,
@jospueyo@fosstodon.org avatar

@terence You can share a reprex here or in stackoverflow and I will take a look at it.

rachwhatsit, to random

hi can anyone point me to a good resource to explaining lasso regression to non-specialists?

jospueyo,
@jospueyo@fosstodon.org avatar

@rachwhatsit I believe this is a good book to introduce yourself in statistics. It helped me a lot. https://www.statlearning.com/

DataAngler, to random
@DataAngler@vis.social avatar

Is it possible to set a code chunk in to execute only if a variable has a specific value? I am setting up parameterized reports and some code blocks are extraneous for some reports in which sets of variables have missing values.

jospueyo,
@jospueyo@fosstodon.org avatar
Mehrad, to datascience
@Mehrad@fosstodon.org avatar

I'm trying to integrate some public air quality data into my study. During a sanity check of the data I realized 3 of the measurement columns contain negative values! Does anyone have any idea if having negative value in such measurements is valid and how they should be interpreted?

Contacting the data manager is not as easy and might take me a week or two of emailing to get some answer. I wonder if folks here on fediverse have a quick answer.

jospueyo,
@jospueyo@fosstodon.org avatar

@Mehrad @tomstafford if all negative values are exactly -1, it can be the method to express missing values.

jospueyo, (edited ) to firefox Catalan
@jospueyo@fosstodon.org avatar

Finally, today I did the step and migrated from chrome to in my laptop and in my phone. I had been kidnapped by google and suffering stockholm syndrome.

A small step for me, I big step for my privacy.

robinlovelace, (edited ) to datascience
@robinlovelace@fosstodon.org avatar

R users and developers: which integrated development environment do you use for writing R code?

jospueyo,
@jospueyo@fosstodon.org avatar

@robinlovelace @opengeohub It seems copilot is coming to Rstudio. Already available in some daily builds I believe. https://github.com/rstudio/rstudio/issues/10148

brodriguesco, to random
@brodriguesco@fosstodon.org avatar

Found this on LinkedIn (haven't tested yet though): "Faucet is a new runtime for Plumber that enables async requests. Built with Rust, it guarantees the correct managment and distribution of HTTP requests across different Plumber workers."

https://youtu.be/1uXFe2fUYSA

Looks like the author is not on Mastodon. Link to github repo https://github.com/andyquinterom/Faucet

jospueyo,
@jospueyo@fosstodon.org avatar

@brodriguesco I think this is similar to valve, also written in Rust, by @josiah https://github.com/JosiahParry/valve

jospueyo, to vscode Catalan
@jospueyo@fosstodon.org avatar

I don't get people that is trying to replace by for arguing ethical reasons. AFAIK, vscode is Microsoft, isn't it?

hrbrmstr, to javascript
@hrbrmstr@mastodon.social avatar

[ | ] and/or folks:

before I rabbit hole this, is there a resource/tutorial/package out there where if I have a point on a 🇺🇸 map that I can

(a) enter a "max travel time" value (say, "45 minutes”) into a function to then get an radius for a circle overlay? i grok this will be an approximation.

(b) get the approximate population of said circular area?

Trying to build a "what if” simulator that will be FOSS.

If this exists already, def open to that too.

jospueyo,
@jospueyo@fosstodon.org avatar

@hrbrmstr provides network tools to do this. Even considering the speed limits, so not a circle, as long as you provide it with a network of roads.

https://docs.qgis.org/latest/en/docs/docs/training_manual/vector_analysis/network_analysis.html

jospueyo,
@jospueyo@fosstodon.org avatar

@hrbrmstr Maybe you can use the algorithms via API to avoid yourself programming them from scratch.

smach, to random
@smach@fosstodon.org avatar

The {polars } 📦 “gives users access to a lightning fast Data Frame library written in Rust. [Its] parallel execution, cache efficient algorithms and expressive API makes it perfect for efficient data wrangling, data pipelines, snappy APIs and so much more. Polars also supports ‘streaming mode’ for out-of-memory operations. This allows users to analyze datasets many times larger than RAM.”
Not yet on CRAN. By Søren Welling & others
https://rpolars.github.io/

jospueyo,
@jospueyo@fosstodon.org avatar

@smach I use polars for node.js. However, I don't see the point in with the plethora of amazing mature packages such as {dplyr}, {data.table}, {arrow}, {tidytable}, and so on. Is polars faster than data.table or arrow? Is its interface more intuitive than dplyr?

odr_k4tana, to random

Dear community, I have a problem.
I have a df with multiple char columns which I want to coerce to factors and a list of pre-defined factor level orders (vectors) that I want to apply in the process. Now apparently this isn't a wide-spread thing to do. I am using code.

My approach of
df <- df |> mutate(across(all_of(charvars), ~factor(., levels= levellist[[which(factors==cur_column())]]))
throws me an error telling me it "cant compute the first column ("who")" followed by "internal error"...backtrace attached. My problem is: I used the same approach literally 3 lines above on different subsets before and it works!

I'm stuck. Help would be very appreciated.

jospueyo,
@jospueyo@fosstodon.org avatar

@odr_k4tana @DrSundar Better prepare a reprex and post to stackoverflow.

https://reprex.tidyverse.org/

Private
jospueyo,
@jospueyo@fosstodon.org avatar
Private
jospueyo,
@jospueyo@fosstodon.org avatar

@adriangadientbruegger @rOpenSci @rstats @alexh Now I realized that I had already included {tenzing} as a related package following the suggestion of one reviewer. 😅

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • tacticalgear
  • magazineikmin
  • khanakhh
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • ethstaker
  • InstantRegret
  • thenastyranch
  • JUstTest
  • ngwrru68w68
  • cisconetworking
  • cubers
  • osvaldo12
  • modclub
  • GTA5RPClips
  • tester
  • Durango
  • provamag3
  • anitta
  • Leos
  • normalnudes
  • lostlight
  • All magazines