Displaying 20 results from an estimated 10000 matches similar to: "What is "print print print" ?"
2007 May 07
1
looking for equivalent of matlab's medfilt1 function
Dear all,
I have several files with Matlab code, which I am translating to R.
For the zero-level approach, I took the very old shell script from R-help
archives, which has made some obvious leg-work such as replacement of "="
with "<-".
Now I am translating indexing, matrix operations and function call using
this table
http://37mm.no/mpy/octave-r.html
The problem is, I
2007 May 22
2
Please, remind a function name
Sorry, I'm stuck. :)
I am writing a function, which would fit either one linear model or another
one, depending on its argument model.type.
And I don't want to use several if's, because R allows doing it with much
more beauty.
That is I am looking for prettier alternative to the following
AB2C<-function(a,b,model.type="S") { # or HK, and return NULL if this
argument has
2007 Oct 16
3
Updating R-Software without complete new installation
Hallo,
as I see there is a new version for R available. Can anyone tell me how
I can update my version 2.5.0 under Windows? The last times I just
uninstalled the old version and installed the new one. Afterwards I had
to install also all needed packages again. All in all it cost me half a
day until my system works fine again. Is there a quicker option? If yes
please tell me the commands.
Thanks,
2007 Apr 04
5
how to image.plot a XY grid file into a lat-lon map
Hi All,
I have a netcdf gridded file with LCC projection. I can easily use
image.plot to visualize it. However, as the axises are in X,Y, not Lat and
Lon, I could not add state or country maps onto it (or lat lon information).
I do have a grid2d file that describes the lat and lon for each (X,Y) grid,
but the lat and lon are not regularly spaced, so I could not use image.plot.
Does anyone know
2007 Aug 15
4
Possible to "import" histograms in R?
Hi,
I have a large amount of data that I would like to create a histogram of and
plot and do things with in R. It is pretty much impossible to read the data
into R, so I have written a program to bin the data and now have a list of
counts in each bin. Is it possible to somehow import this into R and use
hist(), so I can, for instance, plot the probability density? I have looked
at the help page
2007 Apr 26
3
adding a column to a matrix
i would like to add a variable to an existing matrix by manipulating 2 previous variables eg for the data
m
treat strata censti survTime
[1,] 1 2 284.684074 690.4961005
[2,] 1 1 172.764515 32.3990335
[3,] 1 1 2393.195400 24.6145279
[4,] 2 1 30.364771 8.0272267
[5,] 1 1 523.182282 554.7659501
l
2006 Jul 27
3
how to resample (or resize) matrix?
Dear r-help,
I have a matrix, suppose, 10x10, and I need the matrix 5x5, having
in each cell a mean value of the cells from the initial matrix.
Please, point me to a function in R, which can help me doing that.
Digging the documentation and mail archives didn't give me a result.
Thank you.
---
Best regards,
Vladimir mailto:wl at eimb.ru
2006 Oct 18
1
strange error in mtrace
Dear useRs,
I am experiencing very strange error with Mark Bravington's package "debug".
I haven't seen them before.
Here is the sample session
> library(debug)
Loading required package: mvbutils
MVBUTILS: no "tasks" vector found in ROOT
Loading required package: tcltk
Loading Tcl/Tk interface ... done
> x<-function() return(1)
> mtrace(x)
> x()
Error
2007 Jan 29
1
how to explore contents of R data file from command line?
Dear all,
I have a directory with my research project, containing files
.RData
and
inflow.RData
I am just curious, is there any way to explore contents of inflow.RData from
command line without affecting .RData and without copying inflow.RData to
another location?
I can see names and character attributes (of something in the file) in a 3rd
party raw file viewer.
--
View this message in
2007 May 15
3
qr.solve and lm
Dear R experts,
I have a Matlab code which I am translating to R in order to examine and
enhance it.
First of all, I need to reproduce in R the results which were already
obtained in Matlab (to make sure that everything is correct).
There are some matrix manipulations and '\' operation among them in the
code.
I have the following data frame
> ABS.df
Pro syn
2007 Jan 24
2
how to trace what crashes R
I am writing bindings to the C library (neural network simulator SNNS).
DLL was produced with the command
R CMD SHLIB [source with C-wrappers, callable from R with .C and all
sources from the snns kernel]
I used latest MinGW.
The problem is. R crashes with the "segmentation violation".
Tracing with the insight and with simple Rprintf's gave me that crash occurs
on the call of the
2007 Feb 04
1
Fwd: Re: Calling C code from R
Hi!
Thanks in advance.
Thanks to all of you who have responded to me on above. This is one of the responses I received on above.
I have installed perl (with path C:\Perl\bin\;) an MinGW (with path C:\MinGW\bin; C:\MinGW;).
At the Command Prompt (C:\R-2.4.0\bin) I have typed:
C:\R-2.4.0\bin>Rcmd SHLIB useC1.c
(No error and useC1.dll file has not been created)
2009 Nov 26
13
How to display an image on RGL plot?
Hi all.
It's been a long time since I wrote to this list. Glad to see the R project
well and working.
I am working with a 3D plot similar to this:
http://old.nabble.com/file/p26525177/rgl-device.png rgl-device.png
The underlying picture is a JPEG image, loaded with the rimage package and
coerced to the matrix.
Spheres denote control points, collected from this picture and must be
2006 Sep 21
1
plot correlation matrix
Dear useRs,
While exploring new R packages, I have found the Rattle.
This screenshot http://rattle.togaware.com/rattle-correlation.png
is very interesting
(others are in http://rattle.togaware.com/rattle-screenshots.html ).
Which function was used to produce this plot?
Is such plotting of the correlation matrix a unique Rattle's feature?
Unfortunately I have some weird problems with RGtk2
2006 Nov 03
1
would like to see R plots on local X display
Dear useRs,
Sorry, if this is a FAQ.
I just need the direction to dig.
I am working on the linux box (its DNS name is raccoon, to be
definite), Fedora Core 3.
I connect with ssh to another linux box (Debian, dns name chena) and run R on it.
When I call a plotting function from the R command line, it produces the file Rplots.ps,
containing the required plot.
I am running X on the raccoon.
When
2006 Sep 26
2
package usage statistics.
Dear useRs,
Is it possible to get the R package usage statistics?
That is, does R contain any tools to estimate which packages were
used and how often?
I am going to temporary change the workplace and packing the data
and their processing scripts on my computer in order to continue my
projects.
During my work on the current workplace I periodically have had installed
new R
2007 May 08
1
Piecewise cubic Hermite interpolation
Which function implements the piecewise cubic Hermite interpolation?
I am looking for equivalent of matlab's interp1 with the method = 'pchip'
Here is the reference
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/interp1.html&
--
View this message in context:
2006 Nov 03
1
something wrong with the R repository USA(WA) (fhcrc.org)
I have temporarily changed my working place and now checking for updates the R
repository at the University of Washington, closest to me.
It doesn't give updates.
call update.packages(ask=FALSE) with repository USA(WA) didn't do anything, but
call update.packages(ask=FALSE) with repository Austria has updated the lattice
package.
2007 May 25
1
private variables in package.
I am sorry, my previous questions about hiding variables from users in a
package were obscure and vague, and would like to clarify them.
This should be a basic question.
I am writing my first package.
It has several functions, which should be callable by users.
These functions use several variables, and I would like to hide these
variables from users.
How can I do it?
For example, the package
2007 Apr 06
1
how to exclude some packages from help.search() ?
I have installed RGTk2 to satisfy other package requirements.
I am not planning to use it in my own work.
Occasionally I search through the R help using the help.search() function,
and every time it returns me lots of references to the functions in the
RGtk2 package, which I don't need.
I would like to avoid them.
At present, I have renamed the file hsearch.rds in the RGtk2 directory.
This