Displaying 20 results from an estimated 20 matches for "g1enn".
Did you mean:
g11n
2009 Feb 13
4
PCA functions
Hi All, would appreciate an answer on this if you have a moment;
Is there a function (before I try and write it !) that allows the input of a
covariance or correlation matrix to calculate PCA, rather than the actual
data as in princomp()
Regards
Glenn
[[alternative HTML version deleted]]
2009 Jan 14
6
Removing duplicates from a list
For a list say;
list1<-{1,2,3,4,5,2,1}
How do I remove the duplicates please?
My real list is 20,000 obs long of dates with many duplicates
Regards
Glenn
[[alternative HTML version deleted]]
2009 Jan 19
3
Month tick marks on a plot()
Hi All,
I have a small dataframe [dates, values) I am plotting with
plot(df,type=²l²)
And the date date covers a year. The graph only have marks at Œ2008¹ and
Œ2009¹.
How do I get the months labeled at the bottom please
Thanks as always
Glenn
[[alternative HTML version deleted]]
2009 Jan 10
1
<no subject>
Very simple questions if anyone can help:
(1) what is the value in saving workspaces, which is offered at every close?
I thought it might save the set up of the GUI but I cant work out what it
does I run a script that loads the packages I need at the start of every
session.
(2) mathematica has a term (%) that when typed means the last returned
value, so > % + 1 say would return the last
2009 Jan 18
1
Combinations
Hi All, some help on this would be appreciated;
Understood combinations(7,4) returns all the possible 4 part combinations
out of 7. Is is possible to substitute the ³7² for a list of stuff you would
like to see the mix of; c(³a²,...,²g²) say ?
Thanks
Glenn
[[alternative HTML version deleted]]
2009 Feb 06
2
does R plus 3.3 need vista ?
Hi all - has anyone ot and experienced problems with R+.
Have downloaded the trail and it will not work -does it need vista (like it
says on the box!)
Thanks
glenn
[[alternative HTML version deleted]]
2009 Feb 09
1
sapply
Newbie question sorry (have tried the help pages I promise)
I have a dataframe (date,stockprice) say and looking how I might get the
return of: dataframe (difference in days, change in stock price) using
sapply - I require a very simple function and don't really want to go down
the zoo and quant mod route
Regards
glenn
[[alternative HTML version deleted]]
2009 Feb 09
1
standardize
Very quick newbie question sorry;
How do I standardize a list of data please (other than do the calculation of
course). Is there a quick way please ?
glenn
[[alternative HTML version deleted]]
2009 Jan 14
2
List of Lists
Dear All;
Is it possible to create a list of lists (I am sure it is) along these
lines;
I have a dataframe data02 that holds a lot of information, and the first
column is ³date²
I have a list of dates in;
data03<-c(date1,.....,daten)
And would like to create a list;
data04 <- subset(data02, date == data03[1,])
Ie. data04 holds the data from data02 that matches a date in data03
How do
2009 Feb 09
2
subsets problem
Help with this much appreciated
I have a large dataframe that I would like to subset where the constraint
Test1 <- subset(df, date == uniques[[1]]), where uniques is a list of dates
that must be matched to create Test1.
I would like to perform an operation on Test1 that results in a single
column of data. So far so good.
How do loop through all values in the uniques list (say
2008 Dec 29
0
Serial Correlation Test for Short Time Series
....uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
------------------------------
Message: 38
Date: Mon, 22 Dec 2008 23:07:29 +0000
From: glenn roberts <g1enn.roberts at btinternet.com>
Subject: [R] Integrate function
To: "r-help at R-project.org" <r-help at R-project.org>
Message-ID: <C575CE31.4DB%g1enn.roberts at btinternet.com>
Content-Type: text/plain
Quick One if any one can help please.
On use of integration function inte...
2009 Jan 28
2
t.test in a loop
Hi All,
I've been having a little trouble with creating a loop that will run a a
series of t.tests for inspection,
Below is the code i've tried, and some checks i've looked at.
I've used the get(paste()) idea as i was told previously that the use of the
eval should try and be avoided.
I've run a single syntax to check that my systax is correct and works
without any problems
2008 Dec 16
1
Applying a function to a dataframe
Another Newbie Question sorry:
I am trying to apply a function a dataframe and could use some help:
Assuming, dim(df) = (10,2) say, I would like to apply a function that looks
at each row in turn and returns a list (dim =(10,1)) using the columns as
inputs to the function, but with no INDEX stuff that the by() function
refers to.
For a simple function x+y I know in Mathematica it would be
2008 Dec 18
1
Newbie "if" problem
I have got a general problem when applying a function to a dataframe using
the function;
Apply(df,1,myfunct)
Where myfunct has an IF statement in it along the lines of;
If (z == 0)
X = 1
If (z ==0)
Z = 1
I.e. Two If statements
Is there something I am missing or have a just formed the if statements
wrong just checking there is not some trick you have to use when using
apply with functions
2008 Dec 18
0
NLS problem
Would appreciate some help on this problem please:
Using nls to solve for 5 parameters to a set of data, and for particular
mixes of the parameters the function can yield NaN and infinity returns.
Is is making nls fall over I have tried starting values, lower and upper
bounds to no avail. New to R and not sure how to put constraints into this
function, the parameters have constraining
2009 Jan 18
1
Multiplication of dataframes
If I have 2 data frames;
df1: dim(df1) = (1,10)
df2: dim(df2) = (2000,10)
Both with column header names, how do I multiply them together please. I.e
create a dateframe dim() = (2000,1)
Many Thanks in advance
Glenn
[[alternative HTML version deleted]]
2009 Jan 24
2
Run Script at Start Up
Dear All,
A very quick newbie question sorry.
I am running R on Windows and would like to know if I can store a .R file in
a location that it gets run on start up. Or is there some file I can alter
please?
Regards
Glenn
[[alternative HTML version deleted]]
2009 Feb 13
1
(no subject)
Very quick one please team;
How do I return the number of possible unique subsets in a data set (not
combinations i.e. not (1,2,3,4) and (4,3,2,1)) please ?
e.g. In a list of integers 1 to 12, there is 495 sets with 4 elements in
regards
glenn
[[alternative HTML version deleted]]
2009 Jan 18
2
Minimization Problem
Dear All,
Could someone give me some pointers (just a guide as to what functions I
need to look at would be fine)
as to how I go about this simple problem please;
The problem looks like this;
Choose x1 to x4 such that you minimize the MAXIMUM ABSOLUTE value returned
in the vector result of this matrix problem;
[x1,x2,x3,x4].[ -0.38 -0.52 0.68 -0.29 ]
[ -0.39 -0.42
2009 Feb 09
2
(no subject)
Is there a general method for finding out what "something" is in R please.
I have a list (bycontract) that;
> is.list(bycontract3)
[1] TRUE
And an element of this list would be this say;
> bycontract3[[1]]
[1] 22 3.2 -8 -17 49 3
[7] 30 -3 -21 8 3 12
[13] 49 19 -13 -2 25 39
[19] -12 -90 -1 15 -87 30
I can not seem to see what type of object