Displaying 2 results from an estimated 2 matches for "avprix16".
Did you mean:
avprix
2010 May 11
1
merging data frame
...y/10"), class = "factor"), POSITION = c(3, 4, 3, 10,
1, 1, 3, -1, 6), prix = c(1089.75, 328.48, 256.53, 13860, 1843.3,
993, 51.24, -16.85, 2881.5)), .Names = c("DESCRIPTION", "POSITION",
"prix"), class = "data.frame", row.names = c(NA, 9L))
avprix16 <-
structure(list(DESCRIPTION = c("COPPER May/10", "CORN May/10",
"COTTON NO.2 Jul/10", "CRUDE OIL miNY May/10", "GOLD Jun/10",
"ROBUSTA COFFEE (10) Jul/10", "SILVER May/10", "SOYBEANS Jul/10",
"SPCL HIGH GRA...
2010 May 20
6
writing function
Dear group,
I am trying to write functions, but as a beginner, everything is not so
obvious.
Let's say I want the results in a list of elemts like this :
tot1, tot2, etc
Here is a function:
toto <-
function(x,y)
{
for(i in x:y){
paste(c("tot",i),collapse="")<-(i*2)
}
}
If I type this :
>toto(1,5)
I get this message error:
Error in paste(c("tot",