for(i in 0:3) {
for (j in quantile(0:80,probs=c(0,0.33,0.67,1))) {
print(paste(i,j,sep=","))
}
}
生成:
"0,0"
"0,26.4"
"0,53.6"
"0,80"
"1,0"
"1,26.4"
.
.
.
以下のように生成するのはどうですか:
"0,0"
"1,26.4"
"2,53.6"
"3,80"
?