A Lot moRe Than Fifty Shades of Gray

R has 108 shades of grey with an 'e', and 116 shades of gray with an 'a'. Fully 34% of named colors are gray/grey of some kind.

So when can we expect R, the movie?

# Blog appendix
> temp = colors()
> length(temp) #657
[1] 657
>
> temp2 = grep("grey",temp)
> length(temp2) #108
[1] 108
> #temp[temp2]
>
> temp3 = grep("gray",temp)
> length(temp3) #116
[1] 116
> (108+116)/657
[1] 0.3409437
> round((108+116)/657,2)
[1] 0.34

Filed Under
Subscribe to R