Show newer

My card game Siva Afi: The Fireknife Dance of Samoa has cards for the River of Fire technique, where you spin the knife fast enough to fling a line of fuel onto the ground.

The realtor who left everybody a business card and a box of sparklers is going to wake up in a cold sweat in the middle of the night when she remembers that all fireworks are illegal in the city.

(Yes, sparklers are among the least dangerous fireworks and the landscape happens to be significantly less crispy than this time last year, but the joke stands.)

If you replace an element of an list with NULL, it shortens the list.

Well, sometimes.

> a = list(1, 2, 3, 4, 5)
> b = list(8, NULL, 10)
> length(a)
[1] 5
> a[2:4] = b
> length(a)
[1] 5
> a
[[1]]
[1] 1

[[2]]
[1] 8

[[3]]
NULL

[[4]]
[1] 10

[[5]]
[1] 5

> a[3] = NULL
> length(a)
[1] 4

@data_science

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.