Displaying 20 results from an estimated 20000 matches similar to: "Return a list"
2008 Sep 25
2
Exclusion of elements in a vector
Dear R Users,
I want to exclude elements in a vector by:
vector[-exclude]
is it intended to cause an error if no elements are excluded?
> vector <- 1:10
> exclude <- NULL
> vector[-exclude]
Error in -exclude
or am I just definig exclude wrong, if no elements should be excluded?
with kind regards,
Stefan Fritsch
2005 Nov 15
3
Darstellung mit Nachkommastellen
Hi!
I got a rather stupid question (I think):
Is there ANY option that makes R display numericals not like
"1e-8"
but as
"0.00000001"
by default ?
And I need the outcome to be really numerical, so formatC(...) which produces a
character or something like this won't be acceptable.
Any help on this would be appreciated, thanx.
Marc
2014 Sep 21
2
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
On Sunday 21 September 2014 11:09:14, Michael S. Tsirkin wrote:
> On Thu, Sep 18, 2014 at 09:18:37PM +0200, Stefan Fritsch wrote:
> > On Monday 01 September 2014 09:37:30, Michael S. Tsirkin wrote:
> > > Why do we need INT#x?
> > > How about setting IRQF_SHARED for the config interrupt
> > > while using MSI-X? You'd have to read ISR to check that the
>
2014 Sep 21
2
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
On Sunday 21 September 2014 11:09:14, Michael S. Tsirkin wrote:
> On Thu, Sep 18, 2014 at 09:18:37PM +0200, Stefan Fritsch wrote:
> > On Monday 01 September 2014 09:37:30, Michael S. Tsirkin wrote:
> > > Why do we need INT#x?
> > > How about setting IRQF_SHARED for the config interrupt
> > > while using MSI-X? You'd have to read ISR to check that the
>
2006 Jun 23
7
PowerPoint
Dear All,
I am looking for the best way to use graphs from R (like xyplot, curve ...) for a presentation with powerpoint. I used to save my plot as pdf and after to copy them as image in powerpoint but the quality is not optimal by so doing.
Another completely independent question is the following: when I use "main" in the xyplot, the main title is very close to my plot,
2008 May 30
4
Request: Documentation of formulae
In working through material on p.272 of MASS (4th ed.), I came
across the following model formula:
pet1.lm <- lm(Y ~ No/EP - 1, Petrol)
I was at a loss to understand the use of "/" until I looked in
"An Introduction [!] to R," where I found the explanation.
My request is that more complete material on model formulae be
lifted from "Introduction to R" (or
2003 Oct 18
2
Oceanographic lattice plots?
R 1.8.0 on Windows XP Professional. A huge THANK YOU to the R Team for
this marvelous software.
I am making lattice plots of oceanographic data. The usual layout does not
conform to plotting conventions that marine scientists use when depth is
the independent variable. Under those conventions, plots are made with the
origin at the upper left, depth on the vertical axis (increasing as it
2004 Jul 15
3
More on global environment
To follow up on my previous question, suppose a user R session wants to
unload one workspace and load another within an R session. Is the
following the correct sequence?
1. save.image() to save the current workspace as .Rdata in the current
working directory.
2. rm(list=ls()) to remove everything from the workspace.
3. setcwd("xxx") to set the new working directory.
4.
2010 Feb 15
1
Non-monotonic spline using splinefun(method = "monoH.FC")
Hi,
In my version of R, the stats package splinefun code for fitting a
Fritsch and Carlson monotonic spline does not appear to guarantee a
monotonic result. If two adjoining sections both have over/undershoot
the way the resulting adjustment of alpha and beta is performed can give
modified values which still do not satisfy the required constraints. I
do not think this is due to finite precision
2007 Jan 24
4
Text position in Traditional Graphics
R 2.4.1 on Windows XP.
Question: In traditional graphics, is it possible to find out
the height of a line of text in units that can be used in
arithmetic and then in calls to text()?
Context: I have written a function that draws a plot and then,
depending on whether some arguments are TRUE or FALSE, draws
various lines of text in the plot. The text lines may be turned
on or off individually
2008 Jul 18
3
Change font-face in title
Dear List,
Is there a possibility to change the font-face for a part of the title
of a plot?
For example I have the following...
plot(nirs, type="l", xlab="Wellenl?nge [nm]", col="darkslategray",
main = "Spektrum Deschampsia caespitosa")
...and I would like to change the part of the title-string "Deschampsia
caespitosa" to italics? Is
2002 Dec 23
1
Plot scales
I remember reading somewhere that locations on plots (in my case, arguments
x and y for legend()) can be specified in several scales besides the usual
data scale. I would like to set x and y as proportions of total plot size
or something similar. Can anyone steer me to documentation on how to do it?
--
Michael Prager, Ph.D. <Mike.Prager at noaa.gov>
NOAA Center for
2008 Dec 31
3
Plotmath with values?
I hope to use the plotmath facility to print titles that mix
math and values of R variables.
The help for "plotmath" has an example, which after repeated
reading, I find baffling. Likewise, I have read the help file
for "substitute" (wqhich seems to be needed) without ever
understanding what it does, other than being used in some magic
incantations.
I would like to do
2005 Dec 20
4
Installing packages into updated R
A minor inconvenience in updating an R installation is remembering which
packages were installed previously. Has anyone written a script to
inspect a previous installation, then get & install the same packages
into the new installation?
--
Michael Prager
NOAA Center for Coastal Fisheries and Habitat Research
Beaufort, North Carolina 28516
Opinions expressed are personal, not official.
2001 Jan 18
3
BSafe toolkits for implementing RSA public key algorithm
Has anyone had any experience with any of the BSafe toolkits that are
available and contain support for the RSA public key algorithms? I would
like to use one of RSA's toolkits in a port of a Windows OpenSSH client that
I am working on, in order to avoid any licensing issues from RSA. Can anyone
recommend a good toolkit? I understand that there a number of them, such as
BSafe SSL-C, SLPlus,
2009 Jan 09
3
Programming Question (setting ylim generally)
library(StreamMetabolism)
day <- (structure(c(10.08, 10.08, 10.05, 10.03, 10, 9.98, 9.96, 9.95,
9.95, 9.96, 9.96, 9.98, 10.01, 10.05, 10.06, 10.09, 10.11, 10.11,
10.13, 10.13, 10.15, 10.15, 10.13, 10.14, 10.11, 10.13, 10.14,
10.13, 10.12, 10.13, 10.14, 10.16, 10.18, 10.19, 10.23, 10.27,
10.33, 10.37, 10.45, 10.57, 10.6, 10.66, 10.73, 10.77, 10.84,
10.86, 10.87, 10.94, 10.98, 11.01, 11.05,
2014 Sep 18
3
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
On Monday 01 September 2014 09:37:30, Michael S. Tsirkin wrote:
> Why do we need INT#x?
> How about setting IRQF_SHARED for the config interrupt
> while using MSI-X? You'd have to read ISR to check that the
> interrupt was intended for your device.
The virtio 0.9.5 spec says that ISR is "unused" when in MSI-X mode. I
don't think that you can depend on the device to
2014 Sep 18
3
[PATCH RFC] virtio-pci: share config interrupt between virtio devices
On Monday 01 September 2014 09:37:30, Michael S. Tsirkin wrote:
> Why do we need INT#x?
> How about setting IRQF_SHARED for the config interrupt
> while using MSI-X? You'd have to read ISR to check that the
> interrupt was intended for your device.
The virtio 0.9.5 spec says that ISR is "unused" when in MSI-X mode. I
don't think that you can depend on the device to
2002 Aug 08
1
PR #1833 Clarification (PR#1890)
This is (correctly) filed under "non-reproducible."
The corresponding notes say "solved by re-installing Windows (private
comm)." I would like to clarify that this was solved by re-installing the
patch known as "Windows 2000 Service Pack 2," not by reinstalling Windows
itself. Perhaps my original message was not clear.
I point this out because installing the
2008 Nov 24
4
Replace NaN with zero
I need help with replacing NaN with zero (the value '0') in my dataset.
The reason is that I can't get it to graph because of the NaN in the
dataset. I have tried:
data[is.nan(data)] <- 0
that others have suggested in the help archives but this does nothing so
I am not sure what I am doing wrong.
Thanks in advance for your help.
[[alternative HTML version deleted]]