Advertisement · 728 × 90

Posts by zx8754

There are 2 types of people...

The "takes photos" person and the "always in photos" person.

And the two usually marry each other.

2 months ago 1 0 0 0
Post image
2 months ago 1 0 1 0

Strong urge to drop everything and try to recreate this in #rstats Anyone else? #challenge

3 months ago 3 0 0 0

Posted data.table version, not very familiar with dplyr.

3 months ago 2 0 1 0
Post image
3 months ago 1 0 0 0
Post image

🤖

3 months ago 0 0 0 0
Post image

I am enthusiastic about my job

3 months ago 9 0 3 0
Post image

Got the same result but with green frame *high-five* ✋

3 months ago 1 0 0 0
Advertisement

27 Club enters chat

3 months ago 1 0 0 0

be honest you love it.

4 months ago 0 0 0 0
library(crayon)

cat(blue("*********************\n") %+% 
    blue("*") %+%
    red(" Happy") %+% green(" Holidays") %+% red("!!! ") %+% 
    blue("*\n") %+%
    blue("*********************\n"))

library(crayon) cat(blue("*********************\n") %+% blue("*") %+% red(" Happy") %+% green(" Holidays") %+% red("!!! ") %+% blue("*\n") %+% blue("*********************\n"))

4 months ago 1 0 0 0

Mine is obsessed with Bershka.

4 months ago 1 0 1 0

Is it just a wrapper for match?

`%notin%` <- function(x, table) match(x, table, nomatch = 0L) == 0L

`%in%` <- function(x, table) match(x, table, nomatch = 0L) > 0L

4 months ago 0 0 0 0
https://yougov.co.uk/politics/articles/15796-how-britain-voted

Age is the other great fault line. Under-25s were more than twice as likely to vote Remain (71%) than Leave (29%). Among over-65s the picture is almost the exact opposite, as 64% of over-65s voted to Leave while only 36% voted to Remain. Among the other age groups, voters aged 24 to 49 narrowly opted for Remain (54%) over leave (46%) while 60% of voters between the ages of 50 and 64 went for Leave.

https://yougov.co.uk/politics/articles/15796-how-britain-voted Age is the other great fault line. Under-25s were more than twice as likely to vote Remain (71%) than Leave (29%). Among over-65s the picture is almost the exact opposite, as 64% of over-65s voted to Leave while only 36% voted to Remain. Among the other age groups, voters aged 24 to 49 narrowly opted for Remain (54%) over leave (46%) while 60% of voters between the ages of 50 and 64 went for Leave.

Highlight of this chart for me is the Dead ones. Leavers are old, old are usually conservative, old usually die.

4 months ago 0 2 0 0
Post image
4 months ago 2 0 0 0

Stack Overflow has slowed down since AI, but every so often I still come across a brilliant gem of an answer you can learn a lot from.

5 months ago 1 0 0 0
listogram plot - Histogram of three-letter words, with the words themselves shown on the plot.

listogram plot - Histogram of three-letter words, with the words themselves shown on the plot.

#rstats plot of the day - "Listogram" by r2evans

stackoverflow.com/a/79808261/6...

5 months ago 4 1 1 0
Advertisement
quote from the linked post: "my default assumption is nothing is going to work"

https://blog.genesmindsmachines.com/p/we-still-cant-predict-much-of-anything

quote from the linked post: "my default assumption is nothing is going to work" https://blog.genesmindsmachines.com/p/we-still-cant-predict-much-of-anything

"my default assumption is nothing is going to work" - @clauswilke.com

5 months ago 1 0 0 0

"if" only handles scalars, "ifelse" handles vectors. If condition is longer than 1, comparing them doesn't make sense, right?

5 months ago 2 0 1 0

as.integer(condition)

5 months ago 2 0 1 0

set.seed((\(x) sum(x %% 10) + length(x))(as.integer(charToRaw("Forty-two"))))

#rstats

5 months ago 4 0 0 0
Post image

Men with BRCA1 and BRCA2 mutations should get annual #ProstateCancer screening.

The IMPACT trial finds BRCA1 carriers are 3 times more likely to have aggressive prostate cancers than non-carriers.

Results from the international trial shared at @myesmo.bsky.social

www.icr.ac.uk/about-us/icr...

6 months ago 3 3 0 1

#rstats easier to compare the ratios

6 months ago 1 0 0 0
Post image

It had been gradually declining by about 5 million before the war, then dropped by another 5 million between 2022 and 2025.

6 months ago 2 1 0 0
Advertisement
Preview
Tuzla Municipality: Stop at the Crosswalk, Stop the Accidents • Ads of the World™ | Part of The Clio Network What if a pedestrian crossing could tell the story of every accident that happened on it? In Tuzla, Istanbul, the stripes of a crosswalk were transformed into a living accident chart. Each line visua...

Looks like it is real - www.adsoftheworld.com/campaigns/st...

I understand the awareness function, but I'd rather see humped crossings or traffic calming measures before the crossings. The issue isn't visibility, it's the driving culture of ignoring them that needs to change.

6 months ago 1 0 1 0

one day I will never master these

7 months ago 1 0 0 0
"Hence, in the R Core meetings in Toulouse in 2019, it was decided to move towards using stringsAsFactors = FALSE by default, ideally starting with the 4.0.0 release."

"Hence, in the R Core meetings in Toulouse in 2019, it was decided to move towards using stringsAsFactors = FALSE by default, ideally starting with the 4.0.0 release."

Blame these guys 🤪

blog.r-project.org/2020/02/16/s...

7 months ago 1 0 1 0
Screenshot of the answer at: https://unix.stackexchange.com/a/153662/16560

Screenshot of the answer at: https://unix.stackexchange.com/a/153662/16560

Ah, thought it was a hidden joke from devs, but it isn't

unix.stackexchange.com/a/153662/16560

7 months ago 2 0 0 1
Post image

I use Google as calculator, too. But recently discovered that the iPhone Notes app does the same:

7 months ago 0 0 1 0
Create a data.table row-wise
Aliases: rowwiseDT

Keywords:

### ** Examples

rowwiseDT(
  A=,B=, C=,
  1, "a",2:3,
  2, "b",list(5)
)
       A      B      C
   <num> <char> <list>
1:     1      a    2,3
2:     2      b      5

Create a data.table row-wise Aliases: rowwiseDT Keywords: ### ** Examples rowwiseDT( A=,B=, C=, 1, "a",2:3, 2, "b",list(5) ) A B C <num> <char> <list> 1: 1 a 2,3 2: 2 b 5

You can define a tibble row-by-row with tribble():

tribble(
  ~x, ~y,  ~z,
  "a", 2,  3.6,
  "b", 1,  8.5
)
#> # A tibble: 2 × 3
#>   x         y     z
#>   <chr> <dbl> <dbl>
#> 1 a         2   3.6
#> 2 b         1   8.5

You can define a tibble row-by-row with tribble(): tribble( ~x, ~y, ~z, "a", 2, 3.6, "b", 1, 8.5 ) #> # A tibble: 2 × 3 #> x y z #> <chr> <dbl> <dbl> #> 1 a 2 3.6 #> 2 b 1 8.5

#rstats #TIL I knew about tibble::tribble, but just discovered data.table::rowwiseDT.

"creates a data.table object by specifying a row-by-row layout. This is convenient and highly readable for small tables."

7 months ago 4 0 0 0