Displaying 20 results from an estimated 20000 matches similar to: "as.Date() , feature or bug?"
2017 Mar 02
2
[PATCH-v4-RESEND 1/4] vsock: track pkt owner vsock
From: Peng Tao <bergwolf at gmail.com>
Date: Wed, 1 Mar 2017 11:56:24 +0800
> So that we can cancel a queued pkt later if necessary.
>
> Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com>
> Signed-off-by: Peng Tao <bergwolf at gmail.com>
> ---
> include/linux/virtio_vsock.h | 2 ++
> net/vmw_vsock/virtio_transport_common.c | 7 +++++++
>
2017 Mar 02
2
[PATCH-v4-RESEND 1/4] vsock: track pkt owner vsock
From: Peng Tao <bergwolf at gmail.com>
Date: Wed, 1 Mar 2017 11:56:24 +0800
> So that we can cancel a queued pkt later if necessary.
>
> Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com>
> Signed-off-by: Peng Tao <bergwolf at gmail.com>
> ---
> include/linux/virtio_vsock.h | 2 ++
> net/vmw_vsock/virtio_transport_common.c | 7 +++++++
>
2005 May 24
5
How to break an axis?
Dear list,
I need to plot four almost horizontal lines with y-values around
1,3,4, 400. If I plot them directly, the first three lines will be
indiscernible so I am thinking of breaking y-axis into two parts, one
with range (0,5), another (395,400). Is there an easy way to do this?
I can think of two ways:
1. use two plots and draw axes manually. The plot margins, are however
difficult to
2004 Apr 02
1
R1,9,0beta: strange summary of Date object
Hola!
Any explanation of the following:
> summary(as.Date(rep(NA,20)))
Min. 1st Qu. Median Mean 3rd Qu.
Max.
NA NA NA NA NA
NA
NA's
"1970-01-21"
Where does this 1970 date come from?
Kjetil Halvorsen
2005 Jul 04
3
How difficult is it to wrap a large C++ library with R?
Dear list,
I have developed a forward-time population genetics simulation
environment simuPOP, which is a set of C++ (template)
classes/functions wrapped by SWIG as Python libraries. R is used
extensively as plotting and statistical analysis engine through RPy
package.
I use Python to wrap simuPOP since most the following can be easily
done using SWIG or Python C API. However, since Python is
2006 Jan 09
3
R plot display problem under windows when using python rpy module.
Dear list,
Rpy is a python module that provides python interface to R. The
following simple commands
>>> from rpy import *
>>> r.plot(0)
is supposed to create a window that displays the result of plot(0).
However, we observe that
1. Under *nix, rpy+R+python work as expected
2. Under windows, python + pythonWin32 (a python GUI provided by the
pywin32 module), work as expected
2016 Dec 08
1
[PATCH v2 1/4] vsock: track pkt owner vsock
On Wed, Dec 07, 2016 at 11:14:09PM +0800, Peng Tao wrote:
> So that we can cancel a queued pkt later if necessary.
>
> Signed-off-by: Peng Tao <bergwolf at gmail.com>
> ---
> include/linux/virtio_vsock.h | 2 ++
> net/vmw_vsock/virtio_transport_common.c | 7 +++++++
> 2 files changed, 9 insertions(+)
>
> diff --git a/include/linux/virtio_vsock.h
2016 Dec 08
1
[PATCH v2 1/4] vsock: track pkt owner vsock
On Wed, Dec 07, 2016 at 11:14:09PM +0800, Peng Tao wrote:
> So that we can cancel a queued pkt later if necessary.
>
> Signed-off-by: Peng Tao <bergwolf at gmail.com>
> ---
> include/linux/virtio_vsock.h | 2 ++
> net/vmw_vsock/virtio_transport_common.c | 7 +++++++
> 2 files changed, 9 insertions(+)
>
> diff --git a/include/linux/virtio_vsock.h
2005 Jun 21
2
efficiency of sample() with prob.
Dear list,
A while ago, Vadim asked opinions on improving efficiency of sample()
with prob, e.g. sample with replacement with weight. (
https://stat.ethz.ch/pipermail/r-devel/2004-September/030844.html ) He
did not post what he ended up with this problem though.
I am having exactly the same problem. I need to sample with
replacement from a population of size 10 million with fitness values
for
2003 Mar 20
1
R-1.6.2: installation problem on Solaris 2.8
Hello,
I tried to compile R-1.6.2 from source on Solaris 2.8. There is no
problem with configure and make. However, `make test' fails with error
message:
helpdesk at stat007:~/trial/R-1.6.2 % make check
make[1]: Entering directory `/home/helpdesk/trial/R-1.6.2/tests'
make[2]: Entering directory `/home/helpdesk/trial/R-1.6.2/tests'
make[3]: Entering directory
2008 Mar 18
4
cut.Date and cut.POSIXt problem
cut.Date and cut.POSIXt indicate that the breaks argument
can be an integer followed by a space followed by "year", etc.
but it seems the integer is ignored.
For example, I assume that breaks = "3 months" is supposed
to cut it into quarters but, in fact, it cuts it into months as if
3 had not been there.
> d <- seq(Sys.Date(), length = 12, by = "month")
>
2016 Dec 07
8
[PATCH v2 0/4] vsock: cancel connect packets when failing to connect
Currently, if a connect call fails on a signal or timeout (e.g., guest is still
in the process of starting up), we'll just return to caller and leave the connect
packet queued and they are sent even though the connection is considered a failure,
which can confuse applications with unwanted false connect attempt.
The patchset enables vsock (both host and guest) to cancel queued packets when
a
2016 Dec 07
8
[PATCH v2 0/4] vsock: cancel connect packets when failing to connect
Currently, if a connect call fails on a signal or timeout (e.g., guest is still
in the process of starting up), we'll just return to caller and leave the connect
packet queued and they are sent even though the connection is considered a failure,
which can confuse applications with unwanted false connect attempt.
The patchset enables vsock (both host and guest) to cancel queued packets when
a
2020 Jul 15
3
[PATCH 1/4] drm: remove optional dummy function from drivers using TTM
Implementing those is completely unecessary.
Signed-off-by: Christian K?nig <christian.koenig at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 -----
drivers/gpu/drm/drm_gem_vram_helper.c | 5 -----
drivers/gpu/drm/qxl/qxl_ttm.c | 6 ------
drivers/gpu/drm/radeon/radeon_ttm.c | 5 -----
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 11 -----------
2004 Jun 14
4
Quirks with system.time and simulations
I tried the code that Richard O'Keefe posted last week, to wit:
library(chron)
ymd.to.POSIXlt <-
function (y, m, d) as.POSIXlt(chron(julian(y=y, x=m, d=d)))
n <- 100000
y <- sample(1970:2004, n, replace=TRUE)
m <- sample(1:12, n, replace=TRUE)
d <- sample(1:28, n, replace=TRUE)
system.time(ymd.to.POSIXlt(y, m, d))
[1] 8.78 0.10
2006 Jan 16
1
Provide both shlib and standard versions of R?
Dear list,
To operate R from python via a Python package rpy, R has to be
compiled with --enable-R-shlib. This is troublesome since none of the
binary distributions (except for windows?) is built with this option
so rpy users have to build R from source. This can be quite a
challenge, especially on platforms like macOSX.
Is it possible to provide both standard and shlib version of R by
default?
2006 Jul 11
4
Date Format
Hi everybody,
I need your precious help for, I think, a simple request, but I do not manage to solve this.
When I use a "table" function with dates in the rows, the rows are coerced to number after the table function.
So I need to transform the row names into date format. But I do not manage.
Therefore, for an example, I manage to write this :
datetest<-"06/01/2001"
2006 Jul 11
4
Date Format
Hi everybody,
I need your precious help for, I think, a simple request, but I do not manage to solve this.
When I use a "table" function with dates in the rows, the rows are coerced to number after the table function.
So I need to transform the row names into date format. But I do not manage.
Therefore, for an example, I manage to write this :
datetest<-"06/01/2001"
2006 Apr 27
2
as.factor: changed behaviour for Date class
Dear all,
I have noticed a little change in the behaviour of as.factor from R-2.2.1 to
R-2.3.0, and can't find it in the NEWS.
In R-2.3.0:
> times <- 1:5
> class(times) <- "Date"
> as.factor(times)
[1] 1 2 3 4 5
Levels: 1 2 3 4 5
In R-2.2.1:
> as.factor(times)
[1] 1970-01-02 1970-01-03 1970-01-04 1970-01-05 1970-01-06
Levels: 1970-01-02 1970-01-03 1970-01-04
2006 Apr 27
2
as.factor: changed behaviour for Date class
Dear all,
I have noticed a little change in the behaviour of as.factor from R-2.2.1 to
R-2.3.0, and can't find it in the NEWS.
In R-2.3.0:
> times <- 1:5
> class(times) <- "Date"
> as.factor(times)
[1] 1 2 3 4 5
Levels: 1 2 3 4 5
In R-2.2.1:
> as.factor(times)
[1] 1970-01-02 1970-01-03 1970-01-04 1970-01-05 1970-01-06
Levels: 1970-01-02 1970-01-03 1970-01-04