Displaying 3 results from an estimated 3 matches for "sonchawan".
2002 Apr 09
6
matrix dimension and for loop
...n my function.
Example of x is a vector.
> x<-rnorm(10)
> y=2
> Z<-matrix(0,NROW(x),NROW(y))
> for (j in 1:NROW(y)) Z[,j]<-x[,j]*y[j]
Error in x[, j] : incorrect number of dimensions
Could anyone please help me to solve these problem?
Thank you very much for your kindness.
Sonchawan Tamkaew
__________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the &...
2002 May 03
2
delete rows
...ike this:
DATE,'yyyy,ww' TRD_AMT
1 2001,01 57.99330
2 2001,01 59.52926
3 2001,03 61.31018
4 2001,04 59.07095
5 2001,05 62.29583
6 2001,06 63.96679
It's weekly data and I would like to plot it. How could I do that?
Many thanks,
Sonchawan
_________________________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(...
2002 Apr 25
2
install a package from CRAN
Hi,
I've tried to install package "tseries" on my computer (on Windows) but it
doesn't work so far. I have Perl but no compilers (C or Fortran) installed.
So could anyone who happens to have them please mail me the binaries?
Many thanks in advance,
Sonchawan
_________________________________________________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(i...