Displaying 8 results from an estimated 8 matches for "trimtabs".
2006 Jan 15
8
/ Operator not meaningful for factors
Folks,
I have a very basic question. The solution eludes me perhaps because
of my own lack of creativity. I am not attaching a fully reproducible
session because the issue may well be becuase of the way the data file
is, and the data file is large (and I don't know whether I can legally
distribute it). If people can suggest things that might be wrong in my
data or the way that I am reading it,
2010 May 10
2
tapply function with NA
Hi R users,
I have a matrix "m" of the type:
m
X4.20.2010 X4.19.2010 X4.16.2010
[1,] 0.008319468 0.00000000 -0.008250825
[2,] 0.005574136 0.01816118 0.073081608
[3,] -0.047830688 0.01612903 -0.030239833
[4,] NA NA NA
[5,] 0.008746356 0.02848576 -0.025566107
[6,] -0.007990868 0.00000000 -0.026666667
I want to get the sum of each column. Normally
2011 Apr 20
2
Saving run time in loop
Hi r users,
I am trying to compute the "moving variance" of a large matrix. I now use a
loop but I am looking for a faster solution. Here is a sample of the code.
Source= matrix(rnorm(400),ncol=100)
variances= matrix(rep(NA,4*100),ncol=100)
for (i in 1:80) {variances[,i]=apply(Source[,i:(i+80)],1,var)}
any idea? Many thanks in advance.
Vincent.
--
View this message in context:
2010 Jul 27
3
Right digits of a floating number
Hi all,
I am dealing with very large numbers but I am only interested in their last
digits.
> 244^244
[1] Inf
As far as I can tell, the largest number R can take has 308 digits (1+E308).
Is there a way I could see the last digits only of 244^244?
Many thanks for your help.
Vincent Deluard, CFA.
--
View this message in context:
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...petr.pikal at precheza.cz> wrote:
> From: Petr PIKAL <petr.pikal at precheza.cz>
> Subject: Re: [R] / Operator not meaningful for factors
> To: "John Kane" <jrkrideau at yahoo.ca>
> Cc: r-help at r-project.org, "vincent.deluard" <vincent.deluard at trimtabs.com>
> Received: Tuesday, May 4, 2010, 3:38 AM
> Hi
>
> r-help-bounces at r-project.org
> napsal dne 04.05.2010 00:50:00:
>
> >? I think that you are correct.? R has the
> annoying habit of converting
> > character data to factors when you don't want it to...
2010 May 06
1
How to rank matrix data by deciles?
Hi R users,
I have a matrix of data similar to:
> y=matrix(rnorm(55),ncol=5)
I would like to know to which decile each number belongs compared to the
numbers in its column.
Say y[1,1] is the third decile among y[1:11,1] and y[2,1] is in the second
decile
I would like get a matrix that would return their ranks in decile, i.e.,
y[1,1] -> 3
y[2,1] -> 2
Your help is much appreciated!
2010 Oct 25
1
Panel regression
Hi,
I am trying to run a panel regression where I have a matrix of observations
and a matrix of independant variables - examples would trying to predict
countries's GDP with their data on education, FDI, tax rates, over time.
For the purpose of simplicity, my data would be:
dep = matrix(rnorm(50),ncol=5)
indep1 = matrix(rnorm(50),ncol=5)
indep2 = matrix(rnorm(50),ncol=5)
>From what I
2010 May 05
3
Read data from .csv file as a matrix
Hi R-users,
I have a csv file that contains weather observation (rows) by days (in
columns).
I open using:
> temp = read.csv("Weather.csv", sep=",")
and read:
X X1.Jan X2.Jan X3.Jan X4.Jan
1 Min 2 3 4 1
2 Max 6 10 8 6
3 Forecast Min 3 1 1 3
4 Forecast Max 8 7