Displaying 20 results from an estimated 7000 matches similar to: "combining large list of data.frames"
2017 Jun 08
1
Math ops behaviour with multiple classes
Thanks Bert, I think we agree on the current behaviour, but I'm still not sure if it's desirable. The mode isn't used for method dispatch. In the following example, I have to write `log.foo` in order for the correct method to be called.
> x <- seq.int(5)
> class(x) <- c("integer", "foo")
> half <- function(x) UseMethod("half")
>
2017 Jun 08
3
Math ops behaviour with multiple classes
I would expect that several math operations should always return values
with a class of numeric. If the input is defined with multiple classes,
however, the class attribute is preserved. I would think this may have
some unintended side-effects. Here's an example:
> sessionInfo()$R.version$version.string
[1] "R version 3.4.0 (2017-04-21)"
> x <- seq.int(5)
>
2017 Jun 08
0
Math ops behaviour with multiple classes
I think you may be confusing (S3) class and ?mode.
> x <- seq.int(1:3)
> class(x)
[1] "integer"
> mode(x)
[1] "numeric"
> class(x+.5) ## coercion
[1] "numeric"
> mode(x+.5)
[1] "numeric"
But note:
> y <- as.integer(1)
> class(y)
[1] "integer"
> class(y) <- "foo"
> mode(y)
[1] "numeric"
>
2012 May 29
1
lattice: add a marginal histogram on top of the colorkey of a levelplot?
Lattice experts:
Can you think of a way to produce a levelplot as below and then add a histogram of the z variable to the top margin of the plot that would sit on top of the color key?
x <- seq(pi/4, 5 * pi, length.out = 100)
y <- seq(pi/4, 5 * pi, length.out = 100)
r <- as.vector(sqrt(outer(x^2, y^2, "+")))
grid <- expand.grid(x=x, y=y)
grid$z <- cos(r^2) *
2010 Apr 12
1
lattice garphs: combining multiple scatterplots and adding legend
Dear List members,
its me again, fighting with lattice graphics. I am trying to plot a world map, add some points on different locations with different colors and add a legend, but did not succeed yet with the legend. Here is my code:
library(fields)
# Data for demonstration
data_x = c(0,50,60)
data_y = c(0,0,0)
cols???= c(1,2,3)
data(world.dat)
#print map
all=xyplot(world.dat$y? ~
2010 Jul 08
1
plotting lines when data has missing/NA values
Howdy,
I have done many searches and can't seem to find a way around this.
I am reading in a .csv file where each row is a dataset and each
column represents a position. The values are sparse (there are 2003
positions but usually only 100-200 values) and the idea is to be able
to plot each dataset (row) and overlay them in different combinations.
What I would like to do is have a plot
2012 Nov 18
2
[lattice] format and rotation of strip text
Thanks to the lattice gurus on this list, and having reference to the
excellent open-access Sarkar 2008
ISBN 978-0-387-75968-5
e-ISBN 978-0-387-75969-2
http://dx.doi.org/10.1007/978-0-387-75969-2
I now know how to label lattice panels by variable value: see thread
starting @
https://stat.ethz.ch/pipermail/r-help/2012-November/329450.html
(and demonstrated below). This allows me to use
2012 Sep 25
1
mapping data from table to .csv template
I have a .csv table named mailing.csv as below. It consist a receiver,
subject and sender.
Receiver subject sender
1 Adrian Cole RE: [WHIRR-117] Composable services Tom White
2 Adrian Cole RE: [WHIRR-117] Composable services Tom White
3 Adrian Cole RE: [WHIRR-117] Composable services Adrian Cole
4 Adrian Cole RE: [WHIRR-117]
2007 Feb 22
4
Sorting rows of a binary matrix
Hallo,
The command:
x <- 3
mat <- as.matrix(expand.grid(rep(list(0:1), x)))
generates a matrix with 2^x columns containing the binary representations
of the decimals from 0 to (2^x-1), here from 0 to 7. But the rows are not
sorted in this order.
How can sort the rows the ascending order of the decimals they represent,
preferably without a function which converts binaries to decimals
2005 Sep 21
4
Rails controller with Win32 COM object calls
Has anyone had any experience with making calls to Win32 COM object in a
rails controller. I have no problem making the calls using the WIN32
module, however I do seem to have some memory leaks, when the COM object
being called at some point makes use of SafeArrays. The same method
calls in VB,Visual C++ don''t produce the same memory leaks. I realize
this might seem a little odd, but
2016 Apr 27
2
Re: stream finish throws exception via python API
On 04/27/2016 04:26 AM, Daniel P. Berrange wrote:
> On Tue, Apr 26, 2016 at 03:17:19PM -0400, Cole Robinson wrote:
>> On 04/26/2016 02:56 PM, Nir Soffer wrote:
>>> On Tue, Apr 26, 2016 at 4:37 PM, Cole Robinson <crobinso@redhat.com> wrote:
>>>> On 04/26/2016 09:35 AM, Shahar Havivi wrote:
>>>>> On 26.04.16 15:30, Shahar Havivi wrote:
2015 Feb 24
2
intercalar elementos de vectores
Excelente! Ahora corre muy rápido. No conocía ese método, creo que me va a
resultar muy útil.
Muchas gracias y saludos.
Fernando Macedo
El 24/02/15 a las 10:51, Jorge I Velez escribió:
Fernando,
Podrias intentar
R> a <- rep('a', 5)
R> b <- rep('b', 5)
R> a
[1] "a" "a" "a" "a" "a"
R> b
[1] "b"
2019 Sep 11
2
Re: About vhost-user-blk support
ok,thanks. Suh HUA SU 邮箱:suhua.tanke@gmail.com 签名由 网易邮箱大师 定制 On 09/11/2019 02:59, Cole Robinson wrote: On 8/25/19 10:21 PM, Su Hua wrote: > Hi, everyone, ask a question, which version can fully support the device type > of qemu hw/block/vhost-user-blk.c? If so, what should the format of the xml > file look like? > Hi, libvirt does not currently support vhost-user-blk - Cole
2019 Sep 11
1
Re: About vhost-user-blk support
You need to extend docs/schemas/domaincommon.rng which is what is used
for the validation virsh is reporting. Do a 'git log' on that file for
other examples of patches adding new qemu command line options. If you
plan to submit it to libvir-list you will also want to add tests/
- Cole
On 9/11/19 2:16 AM, Su Hua wrote:
> Hi, I added libvirt4.5.0 support for vhost-user-blk, which can
2016 Apr 11
2
Re: [Bug 1325687] network type="ethernet" not supported with LXC
Thanks Cole.
I need to use network type="ethernet" with LXC instead of Qemu.
I have reopened my bug.
On Mon, Apr 11, 2016 at 8:25 PM, Cole Robinson <crobinso@redhat.com> wrote:
> On 04/11/2016 09:24 AM, abhishek jain wrote:
> > Hi Team
> >
> > I'm trying to launch LXC VM with libvirt 1.2.12 having commit
> >
2020 Jul 10
2
lapply and vapply Primitive Documentation
The documentation of ?lapply includes:
> lapply and vapply are primitive functions.
However, both evaluate to FALSE in `is.primitive()`:
is.primitive(vapply)
#FALSE
is.primitive(lapply)
#FALSE
It appears that they are not primitives and that the documentation
might be outdated. Thank you for your time and work.
Cole Miller
P.S. During research, my favorite `help()` is
2012 Sep 26
1
Write table with data in other .csv template
Hi,
I have a table with data, as below:
dput(table):
structure(list(Adrian.Cole = c(0L, 0L, 0L, 0L, 0L, 0L), Alison.Wong =
c(0L, 0L, 0L, 0L, 0L, 0L), Andrei.Savu = c(0L, 0L, 0L, 0L, 0L, 0L),
Bruno.Dumon = c(0L, 0L, 0L, 0L, 0L, 0L), Edward.J..Yoon = c(0L, 0L, 0L,
0L, 0L, 0L), Eugene.Koontz = c(0L, 0L, 0L, 0L, 0L,
0L), Jakob.Homan = c(0L, 0L, 0L, 0L, 0L, 0L), Kelvin.Kakugawa =
c(0L, 0L,
2017 Nov 01
1
Creating Tag
i want to tag categories to its menuname.
i have a csv containing menu item name and in other csv i have a column
containing some strings,
i want to pick that strings from categories and look into menu items if
any menu item containing that string i want to create a new column next to
menu item name flagged as 1 otherwise 0
and the only condition is once a menu item flagged as 1 i don't need
2012 Jul 11
4
Help with loop
Hi,
I have two dataframes:
The first, df1, contains some missing data:
cola colb colc cold cole
1 NA 5 9 NA 17
2 NA 6 NA 14 NA
3 3 NA 11 15 19
4 4 8 12 NA 20
The second, df2, contains the following:
cola colb colc cold cole
1 1.4 0.8 0.02 1.6 0.6
I'm wanting all missing data in df1$cola to be replaced by the value of
df2$cola.
2016 Mar 23
2
Re: /proc/meminfo
On 03/23/2016 09:19 AM, Cole Robinson wrote:
> On 03/23/2016 12:10 PM, Peter Steele wrote:
>> Has anyone seen this issue? We're running containers under CentOS 7.2 and some
>> of these containers are reporting incorrect memory allocation in
>> /proc/meminfo. The output below comes from a system with 32G of memory and
>> 84GB of swap. The values reported are