条件を満たす行を取り除く
Posted feedbacks - R
1 2 3 4 5 | remove.comment <- function(infile, outfile){
sink(outfile)
cat(grep("^[^#]", scan(file=infile, what=character(0), sep="\n"), value=TRUE), sep="\n")
sink()
}
|
条件を満たす行を取り除く
1 2 3 4 5 | remove.comment <- function(infile, outfile){
sink(outfile)
cat(grep("^[^#]", scan(file=infile, what=character(0), sep="\n"), value=TRUE), sep="\n")
sink()
}
|
にしお
#3366()
Rating0/0=0.00
サンプル入力
サンプル出力[ reply ]