Add tags

Add tags to the following comment

R的にはループを使わない方向で。

1
2
3
4
5
6
bytes.pretty <- function(n){
  u <- c('', 'k', 'M', 'G', 'T')
  r <- 1024^(1:length(u)-1)
  i <- which.min(abs(512-n/r))
  sprintf("%.1f%s", n/r[i], u[i])
}

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...