Is this what you want ?
printCount <- function(N) {
for (i in 1:N) {
cat(i, "\n")
}
}
Depending on your platform, output from the print function may not
appear until after your function has finished. You can try using
flush.console() to give it a nudge...
printCount <- function(N) {
fo
Hi Ive written a script that loopes throu some data, but what I want to do is
to print to the cmd line how many times it has looped to the cmd line. And
as it is just a counter from 1 this should be quite easy :P
but ive tried things like print(counter) and so on but it dossent print
anything to
2 matches
Mail list logo