Displaying 2 results from an estimated 2 matches for "some_other_stuff".
2009 Oct 08
2
how do I name data frames and files according to the index of a for loop?
...ntro-level
experience with other languages.
I am writing a program that performs a certain set of calculations on
each row of a list of data, and here's what I have so far:
for (i in 1:2858) {
Calc_1 <- some_stuff
Calc_2 <- some_more_stuff
Calc_3 <- some_other_stuff
Data_frame_name <- data.frame(Calc_1, Calc_2, Calc_3)
write.table(Data_frame_name,file="~/file/goes/here.csv", append
= FALSE, sep = "\t",row.names = FALSE, col.names = c("Calc_1", "Calc_2",
"Calc_3"),qmethod = "double...
2006 Mar 14
8
The RoR equivalent of out.write() in JSP?
All,
In JSP, I can output strings in the Web page by either
<%= foo %> //foo is a string or returns a string
or
<% out.write("test") %> //write directly to the output stream.
What is the method of "writing to the output stream" in RoR? Basically,
what is the equivalent of out.write()?
I have an if then statement that I want to put around a call to
h