Displaying 20 results from an estimated 10000 matches similar to: "Is it valid to do x == Inf?"
2010 Feb 04
1
how to plot single frames as a movie?
Dear users,
1. Is there a way to create a movie file to play a sequence of single frames
(e.g. plots) at a specified time delay between frames?
2. If making a movie file is not possible, then how can I incorporate in a
loop some delay between the frames to be plotted so I can change the playing
speed?
Sorry if this questions was already in the forum, but I couldn?t find it.
Thanks in advance
2010 Jan 28
2
Missing argument error message
Back in the days of R 2.6, if you did this, you got this:
> z=function(x){x*2}
> z()
Error in z() : argument "x" is missing, with no default
But now in this decade we get (for R 2.9 and 2.10):
> z=function(x){x*2}
> z()
Error in z() :
element 1 is empty;
the part of the args list of '*' being evaluated was:
(x, 2)
Now I can see (after thinking about it)
2010 Feb 11
2
difftime result for days not an integer?
Anybody have an idea why I would get a non-integer value for the
number of days here?
> difftime('2004-08-05','2001-01-03',units='days')
Time difference of 1309.958 days
Would you just round off?
Best,
Jon
2012 Jul 20
1
Dissolve polygon
Hi,
I am working with a SpatialPolygonsDataFrame of many islands. There are a
lot of polygons (islands) composing my SpatialPolygonsDataFrame.
I want to extract the elevation of each island.
I need to separate the different polygons (like dissolve function in
arcgis), to have the elevation of each island.
Do you have any idea how can I do that ?
I already read a lot of forum, and read the
2010 Jan 11
1
interfacing R with RFC2445
R Developers,
I cannot seem to find an R package that can read/write iCalendar (RFC2445) files.
I have found the libical library at sourceforge. I've used it briefly so it may be what I need, but again no R interface. I may have to connect the dots myself.
I'm guessing this might be useful for someone other than myself (scrubbing files, performing temporal analysis on events, etc).
2010 Feb 03
1
Package Directory Hierarchy: Recursive inclusion of *.R possible?
Hello,
I would like to organize the "R" directory in my home-grown package into
sub-directories, but "R CMD --build" doesn't seem to find *.R files below
the actual source directory. Is there any way around that?
Thanks, Joh
2010 Jan 21
1
use R from python
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100121/95fb8869/attachment.pl>
2010 Feb 15
1
Which method is called in command like "class(x)='something'"?
> x=3
> `class<-`(x,'something')#this command prints
[1] 3
attr(,"class")
[1] "something"
> x=3
> class(x)='something'#this command doesn't print anything
The first of the above two commands print the content of 'x' but the
second doesn't, although both of them set the argument 'x'. I'm
wondering which is method is
2010 Apr 20
2
shift and pop equivalent in R
Dear All,
I am wondering is there any shift (or pop or push or unshift) equivalent in R?
For example,
shift(x) # should return x[1], and x becomes x[-1]
Thanks a lot.
Best Regards,
Xie Chao
2012 Apr 09
1
slanted stacked bar graphs?
Hello R users,
I would like to generate "slanted" stacked bar graphs like those on
the bottom of pages 1 and 2 in this document:
http://www.wssinfo.org/fileadmin/user_upload/resources/JMP-Snapshot-SWA-HLM.pdf
. I've also attached the file to this email (pdf). Does anyone know if
this is possible in R? I have tried googling and searching the R help
archives, and it seems like ggplot2
2010 Feb 19
1
How to use same function for diffrent input values
Dear R helpers
I have written some function (the actual code I have pasted at the end of mail) like say
indiv_rate = function(n, rate_name, rate, rate_rf1, rate_rf2, rate_rf3, rateprob1, rateprob2, rateprob3)
{
........some R commands
return(data.frame(rate_name, rates = round(rate_data, digits = 4)))
}
## INPUT
rates = indiv_rate(n = read.csv('number.csv')$n, rate_name =
2010 Jan 09
4
parsing pdf files
I have a pdf file that I would like to parse into R:
http://www.williams.edu/Registrar/geninfo/faculty.pdf
For now, I open the file in Acrobat by hand, then save it "as text"
and then use readLines(). That works fine but a) I am concerned that
some information may be lost and b) I may be doing this a lot, so I
would rather have R grab the information from the pdf file directly.
So: is
2010 Jan 24
2
Error in plot.new()
Dear all,
I have received the following error message since R 2.10.1 for the first
time and I am not able to draw graphics any more:
> plot(1:5,1:5)
> plot(1:5,1:5)
Error in plot.new() : figure margins too large
In addition: Warning message:
Display list redraw incomplete
> sessionInfo()
R version 2.10.1 (2009-12-14)
i486-pc-linux-gnu
locale:
[1] LC_CTYPE=en_US.UTF-8
2010 Feb 07
2
convert R plots into annotated web-graphics
Dear all,
I would like to make a large scatter plot created with R available as an interactive web graphic, in combination with additional text-annotations for each data point in the plot. The idea is to present the text-annotations in an HTML-table and inter-link the data points in the plot with their corresponding entries in the table, i.e. when clicking on a data point in the plot, the
2010 Oct 06
2
Pointing to a specific place on the x-axis with an arrow
Hi all,
I am trying to do something simple, but which is deviling me. I want to add an
up-arrow to the x-axis, pointing to a specific location on the axis. I want the
arrow to be as large as possible.
Here is where I'm at with my code:
#this part if from the ?plot example:
require(stats)
plot(cars)
lines(lowess(cars))
#I am trying to use mtext to add the arrow... but I don't know how
2010 Apr 15
3
Exporting an rgl graph
Hi the list,
I use rgl to produce a 3D graph. I would like to "show" this graph to
some collaborator. Is there a way to save it and send it to someone
else?
Christophe Genolini
2010 Mar 05
2
CRAN nearly down?
Is CRAN having trouble or is it just me? (The web interface is very
slow and install.packages() is timing out and giving me "service not
available").
Paul
====================================================================================
La version française suit le texte anglais.
------------------------------------------------------------------------------------
This email
2010 Jan 27
2
Randomly rearranging elements of sets
Hi
I've recently been trying to solve some probability questions in R, but am
having trouble.
This is one question thats been causing some hair loss:
Given the set of integers S = {1,2,3,4,5,6,7,8,9,10}, create a function F(S)
that uniformly and randomly rearranges these integers.
For example, in one instance, we might have F(S) = {2,3,9,7,5,6,1,8,10,4}.
2010 Mar 05
2
Improved Nelder-Mead algorithm - a potential replacement for optim's Nelder-Mead
Hi,
I have written an R translation of C.T. Kelley's Matlab version of the Nelder-Mead algorithm. This algorithm is discussed in detail in his book "Iterative methods for optimization" (SIAM 1999, Chapter 8). I have tested this relatively extensively on a number of smooth and non-smooth problems. It performs well, in general, and it almost always outperforms optim's
2010 Jan 15
5
advice/opinion on "<-" vs "=" in teaching R
Hi R People:
I'm teaching a statistical computing class using R starting next week
(yay!) and I have an opinion type question, please.
I'm old school and use "<-" in an assignment.
However, I'm starting to see the "=" in the literature.
Which should I use or does it matter, please?
Thanks for your input!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor