Comment detail

LL Golf Hole 4 - 文章から単語の索引を作る (Nested Flatten)

This comment is reply for 7072 kkobayashi: コード内にURLが出るかでないかで長さが...(LL Golf Hole 4 - 文章から単語の索引を作る ). Go to thread root.

ちょっと短くしました。

1
2
f <- 'http://www.gnu.org/licenses/gpl.txt'
sapply(unique(unlist(strsplit((l<-readLines(f)),"\\W+"))),grep,l)

Index

Feed

Other

Link

Pathtraq

loading...