Displaying 20 results from an estimated 7000 matches similar to: "a series of 1's and -1's"
2006 Jan 09
6
R newbie example code question
Sometimes I print out a package
and read about it and there
are sometimes nice examples
that I would like to run myself.
Is there a way to bring them
into R from the package or
are they only meant to be typed
in manually ? If manual is the
only way, that's fine. I was
just checking whether there was
a quicker way. Thanks.
Mark
2006 Jan 04
1
R newbie configuration
I think I did enough reading on my
Own about startup ( part of the morning
And most of this afternoon )
to not feel uncomfortable asking
for confirmation of my understanding of this startup stuff.
Obviously, the startup process is more complicated
Than below but, for my R newbie purposes,
It seems like I can think of the startup process as follows :
Suppose my home directory =
2006 Jan 03
5
newbie R question
I'm sorry to bother everyone with a stupid
question but, when I am at an R prompt in Windows,
is there a way to see what packages
you already have installed from the R site so
that you can just do library(name_of_package)
and it will work.
I've looked at help etc but I can't find
a command like this. Maybe there
isn't one which is fine.
2005 Dec 29
1
R and read.irts
I thought r-help let you
attach asci files but
I don't think it does now
so below is a sample of my data set.
Thanks again.
09:40:08.5238,67.00,33
09:40:09.1968,67.00,2
09:40:09.7945,67.00,2
09:40:09.7975,67.00,2
09:40:09.8318,66.99,-3
09:40:17.6335,66.95,3
09:41:09.3393,66.95,6
09:41:11.1482,66.95,-1
09:42:07.4552,66.90,-5
09:42:12.5823,66.85,-5
09:42:14.4329,66.80,-2
2005 Dec 28
1
FW: R and read.irts
I have never worked with R before so I am
sorry if this is a bad question but I've
tried and tried ( all day ) and I can't figure this
problem out. I have the code below and I included the
data file as an attachment.
The code works in term of reading in the data
correctly but when the graph gets
created, the xaxis is really strangely/incorrectly
labelled. I have been trying
to understand
2006 Jan 12
1
I think not so hard question
I'm sorry to bother this list so much
But I haven't programmed in
A while and I'm struggling.
I have a vector in R of 1's and -1's
And I want to use a streak of size Y
To predict that the same value will
Be next.
So, suppose Y = 3. Then, if there is a streak of three
ones in a row, then I will predict that the next value is
a 1. But, if there is a streak of 3 -1's in
2006 Jan 05
0
.Rprofile files (was R newbie configuration)
Thanks a lot. setHook is
Currently not in my knowledge set
But it's great to save these
Thing so I can look them up
When I feel more comfortable.
Just to add to that Stata versus R discussion :
I believe, anyone who uses
any other package than R, is probably missing
out in the long run. It's truly unbelievable
what has been done here. I feel like I
fell asleep for 5 years ( by not using
2004 Jun 09
1
Re: R equivalent of Splus rowVars function
Mark Leeds <mleeds at mlp.com> wrote (to S-News):
> does anyone know the R equivalent of the SPlus rowVars function ?
Andy Liaw <andy_liaw at merck.com> replied:
> More seriously, I seem to recall David Brahms at one time had created an R
> package with these dimensional summary statistics, using C code. (And I
> pointed him to the `two-pass' algorithm for variance.)
2005 Dec 30
1
ESS and Emacs
I have been using the document written by John Fox titled
Sn Introduction to ESS + XEmacs for Windows
Users of R.
It's a very nice document and
I went through it carefully but I got
an error when I finished it and launched XEmacs.
The error is "cannot open load file : ess-site".
So, I did more investigation
and it seems like there is a folder
Program
2006 Jan 06
1
Using R in a production /real time windows environment
I just had a question for anyone who has done this.
I am currently using R in a research environment
but I was wondering if anyone has had experience using
it in a production/real time environment where data
is coming in quite quickly ( every second or so ) and
things have to be calculated quickly and sent
back out to some kind of front end.GUI environment
Was this successful or difficult and
2006 Jan 12
1
I think simple R question
I have a vector x with #'s ( 1 or -1 in them ) in it and I want to
"mark" a new vector with the sign of the value of the a streak
of H where H = some number ( at the next spot in the vector )
So, say H was equal to 3 and
I had a vector of
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]
1 -1 1 1 1 -1 1 1 -1 -1
then, I would want a function to
2004 Jan 22
4
customising installed libraries
hello
I am returning to some libraries that I had previously customised by amongst
other things adding additional functions. I had simply typed these new
functions into the file in library/R/thelibrary. These however do not seem
to be loaded now as they previously were under older versions of R.
What's changed and what do i need to do?
Thanks
Stephen
2007 Jun 21
4
FW: Suse RPM installation problem
Hello
I am trying to install the R RPM for Suse 10.0 on an x86_64 PC. However
I am failing a dependency for "libpng12.so.0" straight away
PC5-140:/home/rmgzshd # rpm -i R-base-2.5.0-2.1.x86_64.rpm
error: Failed dependencies:
libpng12.so.0(PNG12_0)(64bit) is needed by R-base-2.5.0-2.1.x86_64
I do seem to have this file
PC5-140:/home/rmgzshd # whereis libpng12.so.0
2006 Jan 11
1
complex matrix manipulation question
I've done stuff like this before but
it's been a while and I'm stuck.
Suppose I have a matrix with one
column x and another column y
and both are numeric and let the
row index of the matrix be i
Starting at index i ( i would equal on the first iteration )
when the cumulative sum of x_i+1 - x_i
is greater than W = some constant, I want to mark that spot in the
row, call it i^* and
2003 Aug 31
3
Problem and Question regarding R
Hi,
I'm just about to install the Precompiled Binary Distribution of R from
CRAN for SuSE Linux 8.2: R-base-1.7.1-1.i386.rpm
My system is SuSE Linux 8.2 Professional Edition on a Pentium 4:
# uname -a
Linux linux 2.4.20-4GB #1 Mon Mar 17 17:54:44 UTC 2003 i686 unknown
unknown GNU/Linux
1) Problem:
I've tried to install the above base rpm archive with the command:
# rpm -i
2006 Mar 31
1
mutual information for two time series
Hi I hope this is going to the right place. I am trying to write a program
which uses KernSmooth library to estimate mutual information between two
time series at various different lags. At the moment it’s producing negative
values, which is supposed to be impossible (something is fishy). I am
summing across one row of the matrix to get p(value is in bin x) and summing
across the columns to get
2007 May 23
2
Fonts do not display properly on Red Hat
Hi
I'm using R version 2.3.1 on Red Hat Enterprise Server 3.
When I run a simple:
plot(1:10,1:10)
The plot comes out great, but the fonts are displayed wrongly:
http://coxpress.sourceforge.net/test.jpg
I realise this is probably not an R problem per se, but before I go
messing about with my fonts, can someone tell me which fonts R (or X11)
is trying to display, where they might be
2006 Jan 17
2
Installing a package yet it will not work.
I want R to read my Microsoft Access database or maybe even a Sybase
database. I installed RODBC or at least thought I did. Then I issued the
following command:
library(RODBC)
And got
Error in lazyLoadDBfetch(key, datafile, compressed, envhook) :
ReadItem: unknown type 241
In addition: Warning message:
package 'RODBC' was built under R version 2.3.0
Error: package/namespace
2006 Apr 27
2
Incomplete Trio in TDT analysis
I am involved in a study where, as in most of life, men demonstrate
themselves to be recalcitrant. So while we have many probands and most of
their mothers we only have about 50% of the trios being complete.
I have been running tdt and trio.types. It appears as if it is ignoring the
duos. Sometimes a duo can be informative. For instance
Father ..missing
Mother 1/2
Proband 1/1
This duo shows that
2003 Apr 24
3
Missing Value And cor() function
Hi r lovers!
I 'd like to apply the cor() function to a matrix which have some missing values
As a matter of fact and quite logically indeed it doesn't work
Is there a trick to replace the missing value by the mean of each variable or by any other relevant figures ?
Or should I apply a special derivate of the cor() function, (I don't have any idea if it exists and have some trouble to