Displaying 12 results from an estimated 12 matches for "lord12".
Did you mean:
load12
2010 Sep 07
5
how to you output a vector to a column in excel?
What is the syntax for this?
If you have: vector = c(1,2,3,4), how would you output this to column A of
an excel spreadsheet?
--
View this message in context: http://r.789695.n4.nabble.com/how-to-you-output-a-vector-to-a-column-in-excel-tp2530470p2530470.html
Sent from the R help mailing list archive at Nabble.com.
2010 Sep 14
4
for loop help
If you have:
Name Value
A 2
A 3
A 4
B 5
B 6
B 7
In R how do you assign one value to the name:
A:9
B:18
--
View this message in context: http://r.789695.n4.nabble.com/for-loop-help-tp2539621p2539621.html
Sent from the R help mailing list archive at Nabble.com.
2010 Sep 05
8
R time series analysis
I have a data file with a given time series of price data and I would like to
split the time series into a test set and training set. I would then like to
build an ARIMA model on the training set and apply this model on test set.
Below is some code:
[CODE]
data= read.table("A.txt",sep=",")
attach(data)
training = data[1:120, 6]
test = data[121:245, 6]
ts1 = ts(training)
ts2 =
2010 Oct 03
5
How to iterate through different arguments?
If I have a model line = lm(y~x1) and I want to use a for loop to change the
number of explanatory variables, how would I do this?
So for example I want to store the model objects in a list.
model1 = lm(y~x1)
model2 = lm(y~x1+x2)
model3 = lm(y~x1+x2+x3)
model4 = lm(y~x1+x2+x3+x4)
model5 = lm(y~x1+x2+x3+x4+x5)...
model10.
model_function = function(x){
for(i in 1:x) {
}
If x =1, then the list
2010 Nov 03
2
How to unquote string in R
s= "Hey"
a = "Hello"
table = rbind(s,a)
write.table(table,paste("blah",".PROPERTIES",sep = ""),row.names =
FALSE,col.names = FALSE)
In my table, how do I output only the words and not the words with the
quotations?
--
View this message in context: http://r.789695.n4.nabble.com/How-to-unquote-string-in-R-tp3025654p3025654.html
Sent from the R
2010 Oct 17
4
how to convert string to object?
temp = "~aparch("
temp1 = paste(temp,1, sep = "")
temp2 = paste(temp1,1, sep = ",")
temp3 = paste(temp2, ")",sep = "")
temp 3 is a character but I want to convert to formula object. How do I do
this?
--
View this message in context: http://r.789695.n4.nabble.com/how-to-convert-string-to-object-tp2999281p2999281.html
Sent from the R help mailing
2010 Sep 14
3
extracting objects from lists
If you have 5 data frames and you append them to a list, how do you access
the first data frame, not the first value of the first data frame while
iterating in a for loop?
list = c(d1,d2,d3,d4,d5) where d1..d5 are dataframes.
for(i in 1: length(list)){
print(list[1])
}
--
View this message in context: http://r.789695.n4.nabble.com/extracting-objects-from-lists-tp2539412p2539412.html
Sent from
2010 Sep 06
2
how do I transform this to a for loop
arima1 = arima(data.ts[1:200], order = c(1,1,1))
arima2 = arima(data.ts[5:205], order = c(1,1,1))
arima3 = arima(data.ts[10:210], order = c(1,1,1))
arima4 = arima(data.ts[15:215], order = c(1,1,1))
arima5 = arima(data.ts[20:220], order = c(1,1,1))
arima6 = arima(data.ts[25:225], order = c(1,1,1))
arima7 = arima(data.ts[30:230], order = c(1,1,1))
arima8 = arima(data.ts[35:235], order = c(1,1,1))
2010 Oct 07
1
how to convert list to language object
If I have a list:
list = c(~garch(1,1), ~arma(1,1)) and I run
typeof(list[1]), the output is a list object. But I want each element in the
list to be a language object. How do I transform these list objects to
language objects?
--
View this message in context: http://r.789695.n4.nabble.com/how-to-convert-list-to-language-object-tp2966813p2966813.html
Sent from the R help mailing list archive at
2010 Oct 15
0
nomianl response model
...teve Swope)
54. Re: Pasting function arguments and strings (Peter Langfelder)
55. Re: Pasting function arguments and strings (William Dunlap)
56. Re: "Memory not mapped" when using .C, problem in Mac but not
in Linux (William Dunlap)
57. Extracting index in character array. (lord12)
58. Re: Extracting index in character array. (Christian Raschke)
59. [OT] (slightly) - OpenOffice Calc and text files
(Schwab,Wilhelm K)
60. Re: Read Particular Cells within Excel (Henrique Dallazuanna)
61. Re: bootstrap in pROC package (?ukasz R?c?awowicz)
62. Re: [OT] (slightly)...
2010 Sep 11
0
outputting arima models
sseq <- c(1, seq(5, 120, by = 5))
for(i in 1:length(sseq)){
assign(paste("arima", i, sep=""), arima0(data.ts[sseq[i]:(sseq[i]+115)],
order=c(1,1,1)))
}
pred1 = predict(arima1, n.ahead = 5, se.fit = TRUE)$pred
how do I traverse the arima models so I repeat the above prediction
procedure(bold) on all arima models. Also, how do i automatically create
one huge vector of the
2010 Oct 06
3
How to run own R functions in JRI
Suppose I have implemented my own R function. How do I call this function in
Eclipse using JRI?
--
View this message in context: http://r.789695.n4.nabble.com/How-to-run-own-R-functions-in-JRI-tp2965288p2965288.html
Sent from the R help mailing list archive at Nabble.com.