Displaying 20 results from an estimated 10000 matches similar to: "newbie R question"
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 11
2
a series of 1's and -1's
Does anyone know of a simple test
in any R package that given
a series of negative ones and positive
ones ( no other values are possible in the series )
returns a test of whether the series is random or not.
( a test at each point would be good but
I can use the apply function to implement
that ) ?
thanks.
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 =
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
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
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 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
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 04
2
newbie where to look question
I don't want to bother anyone
with specific questions
because I am a R newbie and
I see that there is TON ( emphasis on
Ton ) of documentation
out there but could
someone just tell me the
best placed to look/read
for learning about ( for R-2-2.1 in Windows )
.Rprofile
.REnviron.
.Rdata
.First function ( analogous to the one in Splus ).
Analog of Splus Chapter
Basically, I want to
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 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
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.)
2001 Jul 18
1
Rd2dvi - script (PR#1029)
Full_Name: Ole Christensen
Version: 1.3.0
OS: Solaris
Submission from: (NULL) (130.225.48.2)
I have discovered a problem with script Rd2dvi for R-1.3.0 on our Solaris
machines.
When writing R CMD Rd2dvi Name_of_Package, then things go wrong with the
conversion to Latex of the DESCRIPTION file in the package.
Having discussed the problem with our system administrator, he constructed a
script
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
2001 Aug 29
2
(not necessarily R-related) help with data presentation
I have a question which is not necessarily related to R.
I want to use a distorted political map of the world with certain countries increased in size according to a certain variable (an idea similar to the homunculi usually found in psychology textbooks) to demonstrate the coverage of particular countries in a news service. Does anyone have any idea of how to approach this? I don't think
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
2005 Oct 12
3
Newbie problem with read.table
Hi R,
I have a seemingly simple problem. I have a table in following format
(tab seperated)
Njets NBjets NElec NMuon Meff HT HT3j HE Aplan
Plan
1 4 3 2 0 366.278 253.642 87.7473 1385
0.0124566 0.376712
2 3 1 1 0 235.19 157.688 18.2852
574.253 0.00064187 0.00528814
I read in with:
>