storing via for (k in 1:100) {}

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

storing via for (k in 1:100) {}

Stefan Semmeling
daer list,

i want to save a result as mentioned above.

for (i in 1:100) {
    a[i] <- write.table(a[i], "C:/.../result"i"")
}

how is the correct way to save the results?

thank you

stefan

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: storing via for (k in 1:100) {}

Henrik Bengtsson-2
See ?sprintf and/or ?paste.

/Henrik

On 3/18/06, Stefan Semmeling <[hidden email]> wrote:

> daer list,
>
> i want to save a result as mentioned above.
>
> for (i in 1:100) {
>     a[i] <- write.table(a[i], "C:/.../result"i"")
> }
>
> how is the correct way to save the results?
>
> thank you
>
> stefan
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>


--
Henrik Bengtsson
Mobile: +46 708 909208 (+1h UTC)

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html