Hi all
I need to deal with a number (say, 5) of diferent ordered matrices
simultaneously in my computational work. I tried to define these matrices
through looping, but got an error message:
row - c(3,4,6,4,5)
mt - c()
for (i in 1:5){
mt[i] - matrix(nrow=row[i],ncol=4)
}
mt
Kindly help
Dear all,
Through the following code, I wanted to perform correlation test repetedly
(through loop) on different combinations of variables of a data set.
Code:
x=read.table(sample.txt,header=T,sep=\t)
out=corout.txt
sink(out)
nm = names(x)
print(nm)
nvr=3
# nvr=Total no. of variables in the
] Getting names of variables without quotes
To: [EMAIL PROTECTED]
Date: Sunday, 19 October, 2008, 9:29 PM
Amarjit Singh Sethi set_alt at yahoo.co.in
writes:
(Please do not use tabs when sending a data sample, these
must be
manually edited)
V1,V2,V3
15,10,4
6,4,7
10,5,2
8,6,6
)
summary(m)
}
)
names(res)= apply(comb,1,paste,collapse=/,sep=)
# Output in an external file
sink(C:/out.txt)
res
sink()
HTH,
Jorge
On Sun, Oct 19, 2008 at 11:38 AM, Amarjit Singh Sethi [EMAIL PROTECTED] wrote:
Dear Jorge/Dieter
Thank you very much for your help. I indeed have been
Â
Dear R-helpers,
hello
I am seeking your help in somehow getting names of variables without quotes (
).
Let us say, we have a table with 3 variables V1, V2 and V3. After the table is
read, I get names of the variables (thro' the following code) as under quotes
(like V1Â rather than the
Dear all
I am intrested in making iterative estimation (thro' loop statements) of, say,
linear regression model. For this purpose, I have written the following
programme and that I have made use of a sample data (viz., exp.txt):
Programme:
# Linear regression modelling with sample data
of the availbaility of suitable
package(s)/ code in the language. Can any one help me in letting me know of
appropriate package/procedural steps to undertake the anlaysis. Kindly let me
know as well, format of the input data file for such a package.
nbsp;
Regards
nbsp;
Amarjit Singh Sethi
Dear all,
I am quite new to R; facing certain problems:
Say, I have a text file( named as try):
YearC1 C2 C3 C4 C5 C6
Y1 3.5 13.89.5 6.8 0.4 24.2
Y2 3.8 13.99.9 7.6 0.7 12.8
Y3 4.5 14.514.29.2 0.6
8 matches
Mail list logo