Displaying 20 results from an estimated 2000 matches similar to: "A very good R Tips page -- why no link to it?"
2001 Apr 10
2
clear R-objects inside a function?
Using RedHat Linux 7.0, R-1.2.2, R-hdf5-1.2 library,
I want to load a dataset, do some stuff with it, then erase its objects,
get an other, repeat. My friend wrote a function which tried to clear
away all the objects. At the end, it uses rm() to remove objects. This
is the same way we do it interactively, from the R prompt:
testLoadSeveralHDF <- function(numFiles) {
for (i in
2000 Aug 31
0
Re: R-Gnome. I don't want abuse!
I'm getting some abuse for asking about R-Gnome and I don't think it is
fair. I did not create that project, I was just asking how it was going
and whether that other project would help out.
Now I'm getting some email that says some of you don't want a GUI
interface because you think interfaces like that are inconvenient. OK.
I agree, in most cases. I think GUIs for model
2002 Feb 17
3
Little graph questions!
I'm working up a set of small working examples in R to show what various
distributions are and the beauty of the central limit theorem. Those
example programs are in this directory:
http://lark.cc.ukans.edu/~pauljohn/R/ExampleCode/
You can feel free to use those if you want, or you can send me other
small working example code for R. The key here is small, self contained
things that
2002 May 02
0
tab complete for R under ESS
> System info:
> R Version 1.4.1 (2002-01-30) on Windows 2000
> ESS v. 5.1.20 using emacs ver. 21.1.1
Colleagues
Some time ago I asked about tab complete functionality for R under
ESS on windows. I never got it working as well as I might have liked until
today. It is still slow the first time while all the environments are checked
but after that it works well.
The solution below
2002 Jun 26
0
AW: sapply() and Monte Carlo
What about "Rtips" at http://lark.cc.ukans.edu/~pauljohn/R/statsRus.html ?
Regards,
Heinrich.
> -----Urspr?ngliche Nachricht-----
> Von: rossini at blindglobe.net [mailto:rossini at blindglobe.net]
> Gesendet: Mittwoch, 26. Juni 2002 14:48
> An: r.hankin at auckland.ac.nz
> Cc: r-help at stat.math.ethz.ch
> Betreff: Re: [R] sapply() and Monte Carlo
>
>
>
2000 Aug 09
1
Trying to make plot of several time series in same graph
Dear Friends in R:
On RedHat linux, R-1.1, I've gotten far enough to create the graph that
shows on the screen with 3 lines, but I have some trouble. Here is the
way I created the three "overlaid" graphs:
data<-read.table("DataCulture0",header=T,as.is = TRUE)
attach(data)
tmp1<-plot(acquaint~T,type='l', ylim=c(0,1),ylab="average
2002 Jan 06
0
New RH7.2 rpms for R-hdf5 support available
HDF5 is a high quality data storage format from NCSA
(http://hdf.ncsa.uiuc.edu/index.html) Marcus Daniels of the Swarm
Development Group has made available an R library called hdf5 which
allows loading and saving of data in hdf5 format. The source for his
library is here:
ftp://ftp.swarm.org/pub/swarm/src/testing/hdf5_1.4.7.tar.gz
I prefer to use RPMs to maintain software across many linux
2001 Aug 08
2
box doesn't surround words in legend in printed output
I have made a plot with a legend and on the screen it looks fine, but
when I save as jpg or pdf, or print, the legend box is too small, it
cuts through the words on the right side.
I put an example here:
http://lark.cc.ukans.edu/~pauljohn/R/apdftest.pdf
Is there a work around?
--
Paul E. Johnson email: pauljohn at ukans.edu
Dept. of Political Science
1999 Apr 21
0
R RPMS and HDF5
Greetings
I'm new to R. I became interested in it because my friends at the Swarm
Development Team at the Santa Fe Institute have been using/developing R
to work as a front end for HDF5 datasets.
>From looking at the RPMS for R, I got the idea they were compiled
without support for HDF5. Correct?
If you are interested in the HDF5 data format and R, on my page I have
RPMS for HDF5 and
1999 Oct 06
1
uploaded hdf5 and R 0.65.1 RPMs
Dear everybody:
HDF5, a dataset formatting library, and R that is built with it, have
been uploaded to ftp://ftp-fis.iarc.fr/pub/incoming. The R RPM uses the
spec file created by Martyn Plummer as a starting point, and makes only
a few trivial changes.
-rw-rw-r-- 1 ftp 100 3416612 Oct 6 17:45
R-base-with-hdf5-0.65.1-1.i386.rpm
-rw-rw-r-- 1 ftp 100 2300453 Oct 6 17:48
2002 Aug 05
3
Formatting POSIXt values in plot axis labels
Hello.
I have an XYY series that I would like to graph with matplot() or some
other single function that will do the trick.
The X in question is a vector of POSIXt values obtained from strptime().
Is it possible to tell matplot() how to handle POSIXt x values?
I have examined the examples at
http://lark.cc.ukans.edu/~pauljohn/R/statsRus.html#5.22 , but would
prefer not have to overlay the
2000 Aug 06
1
Trying to "pretty up" output from R job
Running R 1.1 on RedHat Linux 6.2.
I need to write a shell script that goes through a bunch of directories
of simulation output, creating summary files that have the mean and
standard deviation of the variables found in the data files in each
directory. I've got the R code doing almost the right thing. It reads
in data, then gets the mean and standard deviation for the numeric
variables,
2001 Nov 20
0
Time series count model?
You may want to take a look at a paper by Julia Kelsall and Scott Zeger in
JRSS(C) - 1999, pp. 331-344. This paper describes a frequency domain
approach to log-linear regression modeling of poisson-distributed count
data, accounting for correlation and over-dispersion. There are also some S
functions available to implement the methodology.
Ravi.
-----Original Message-----
From: pauljohn at
2002 Apr 13
2
trouble getting output from graphs, again
It seems like every time I try to do something a little different, I
cannot get output saved just right.
This is on RedHat 7.2 with R 1.4.1.
The png output looks fine, but the eps output has the problem that the
bounding box on the legend cuts the legend in half. I put a copy of a
bad one here:
http://lark.cc.ukans.edu/~pauljohn/ResearchPapers/meanProtest-box.eps
When I asked about these
2000 Mar 09
1
What is XGobi and what is it for?
I've seen XGobi come up in here from time to time, and I wonder what is
it, what is it for, do I need it? How about throwing me a bone here!
--
Paul E. Johnson email: pauljohn at ukans.edu
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785)
2001 Jun 20
0
recordPlot usage: add snaps to a list.
I have trouble understanding the R list object and how to add objects
and get them out. I''m trying to collect snapshots with recordPlot and
replay them.
Got great help from everybody here yesterday on my histogram function,
works fine to make the pictures:
histomatic <- function (s1,s2,s3,var){
if (is.numeric (s2[[var]])) {
par(mfrow=c(3,1));
rz <- range(s1[[var]],
1999 Sep 09
0
Any RPMS for R 0.65.0?
I'm trying to build an RPM for R 65 that has support for the hdf5 data
format. In the past this was easy because I used the SPEC file from your
SRPM. Now in the CRAN sites I find no RPM for 0.65.0 and there is some
monkey business with a patch for LIBINDEX that I can't seem to get
straight in my effort to graft the 0.64.0 spec file onto the 0.65.0
release of R.
I was able to edit the
2000 Aug 15
0
getting eps into MS Word documents
Remember that thread a long time ago about how to get R graphics into Ms
Word? I'm looking at it now because my coauthor is a Windows User, I
use RedHat linux. I output some eps files from R. I found one
relatively painless route to get these figures into a Word document:
View in GSview, copy to clipboard, then paste into document. I've not
seen this one mentioned, and it has the
2000 Sep 22
0
what do you do for 2SLS or 3SLS
For 2 or 3 stage least squares, what do you R folks do?
Follow-up question. My student wants to estimate this. 2 variables are
governed by a system of difference equations. His theory is like so.
Y_t and X_t are
state variables, we want estimates for a, g, b, and h.
X_(t+1) = 1 + a X_t + (a/K)* (X_t)^2 - g Y_t X_t
Y_(t+1) = b Y_t + h* X_t * Y_t
K is perhaps something to estimate, but it
2001 Oct 18
0
Numerical precision of hist densities or cumsum?
Today I wanted to experiment with different distributions an to see the
hazard rates they imply. So I eventually ended up with this, which uses
the hist object's handy $density and the cumsum function in R:
x <- c(rweibull(21000,0.5,0.7))
#create "breaks" vector to go into histogram
#need last break bigger than max(x)
y <- seq(0,max(x)+2)
histx <-