Displaying 20 results from an estimated 10000 matches similar to: "Replacing data from one data frame to another"
2004 Oct 07
3
Remove Indeterminate Level
Hi,
I have imported some data to R from stata and my factor variables have
an Indeterminate level which I don't really want. For example the
variable sex has the levels Male, Female and Indeterminate. There are
no 'Indeterminate' values in the data. Can somebody tell me how to get
rid of this level as it restricting my cox ph model.
Thanks
Neil
2004 Aug 25
5
Adding labels to variables
Hi,
Is it possible to add labels to variables in R (so as to have a better
description of what the variables represent)?
Thanks,
Neil
2004 Oct 18
2
Recoding factors
I'm having a bit of trouble recoding factors in a fields.
I have a field which has the factors Singleton, Twin and Triplet.
I want to recode the field to have only the factors Singleton and
Multiple.
Any advice?
Cheers,
Neil
2018 Mar 25
4
[PATCH v2 0/2] drm: Replace list_entry
Replace list_entry with list_{next/prev}_entry.
Arushi Singhal (2):
gpu: drm/lease:: Use list_{next/prev}_entry instead of list_entry
gpu: drm: nouveau: Use list_{next/prev}_entry instead of list_entry
drivers/gpu/drm/drm_lease.c | 2 +-
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
changes in v2
*All the
2006 Nov 20
1
sem package subscript out of bounds error
I'm having the most curious error while using the sem package. For
the model I'm working with, I keep getting the following error:
Error in J[cbind(1:n, observed)] <- 1 : subscript out of bounds
I''ve used debug=TRUE with sem, and there don't appear to be any
problems with model - there are no latent variables in this model.
The variables in the covariance matrix
2010 Oct 07
3
reshape from wide to long, ordering of "varying"
Hello,
I have data in the following form
age sex Int.Prev.Est.1 Int.Prev.Est.2 Int.Prev.Est.3
Int.Prev.Est.4 Int.Prev.Est.5
93110 93 0 23.75482 57.86592 9.755003
4.343534 4.280714
93610 93 1 53.36475 39.47247 4.381618
1.622119 1.159044
94110 94 0 23.47514 58.23936 10.789339
3.690415 3.805741
94610 94 1
2004 Aug 27
1
Keyboard input into functions
?readline
HTH
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Neil Leonard
Sent: Friday, August 27, 2004 2:04 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Keyboard input into functions
Hi,
Does anybody know if it is possible to have keyboard input into
functions? Kind of like 'scanf()' in C.
I want to
2004 Sep 03
1
Printing output on Plot
Hi,
I'm trying to print the p-values from the output of a CPH test onto a
Kaplan Meier plot. Can this be done? I only really want the p-values
from the CPH test to appear but if this can't be done I am willing to
have the entire CPH output.
This is what I am currently trying: (it doesn't print the CPH output)
plot_KM <- function(field)
{
library(survival)
y =
2012 Mar 15
2
Integrate inside function
Dear R users,
first I take this opportunity to greet all the R community for your
continuous efforts.
I wrote a function to calculate the pdf and cdf of a custom distribution
(mixed gamma model).
The function is the following:
pmixedgamma3 <- function(y, shape1, rate1, shape2, rate2, prev)
{
density.function<-function(x)
{
shape1=shape1
rate1=rate1
shape2=shape2
2012 Oct 25
2
[LLVMdev] A question about pointer aliasing rules in LLVM
Hi,
I have the following IR code
</snippet>
%prev = getelementptr inbounds %struct.myStruct* %node, i32 0, i32 1
%1 = load %struct.myStruct** %prev, align 4, !tbaa !0
%next1 = getelementptr inbounds %struct.myStruct* %1, i32 0, i32 0
store %struct.myStruct* %0, %struct.myStruct** %next1, align 4, !tbaa !0
%2 = load %struct.myStruct** %prev, align 4, !tbaa !
</snippet>
myStruct is
2012 Dec 17
0
[LLVMdev] BasicBlock back()
On 12/17/12 10:34 AM, Alexandru Ionut Diaconescu wrote:
> Hello,
>
> I am a beginner of LLVM. I am trying to move among the instructions of
> a BasicBlock and I cannot. In this particular example, I try to get
> the previous instruction of the end instruction. I am trying 2 methods:
>
>
>
> 1. I have the following sequence of code:
>
> bool
2012 Dec 18
1
[LLVMdev] BasicBlock back()
PS:
I works when I use Instruction* prev = current->getPrevNode();
But then I have runtime error Stack dump that is very frequent...
On Mon, Dec 17, 2012 at 6:20 PM, John Criswell <criswell at illinois.edu>wrote:
> On 12/17/12 10:34 AM, Alexandru Ionut Diaconescu wrote:
>
> Hello,
>
> I am a beginner of LLVM. I am trying to move among the instructions of a
>
2009 May 25
2
[PATCH 03/11] qemu: add routines to manage PCI capabilities
Add routines to manage PCI capability list. First user will be MSI-X.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
hw/pci.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
hw/pci.h | 18 +++++++++++-
2 files changed, 106 insertions(+), 10 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 5dcfb4e..6bc3819 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@
2009 May 25
2
[PATCH 03/11] qemu: add routines to manage PCI capabilities
Add routines to manage PCI capability list. First user will be MSI-X.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
hw/pci.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
hw/pci.h | 18 +++++++++++-
2 files changed, 106 insertions(+), 10 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 5dcfb4e..6bc3819 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@
2012 Dec 17
4
[LLVMdev] BasicBlock back()
Hello,
I am a beginner of LLVM. I am trying to move among the instructions of a
BasicBlock and I cannot. In this particular example, I try to get the
previous instruction of the end instruction. I am trying 2 methods:
1. I have the following sequence of code:
bool patternDC::runOnBasicBlock(BasicBlock &BB) {
...
if (BB.getTerminator())
{
Instruction* current =
2005 Sep 26
1
Make check fails on d-p-q-r-tests.R...
Hi,
R-2.1.1
OS: OpenBSD-current (3.8) on i386
Compiler:gcc version 3.3.5 (propolice)
Thread model: single
configure \
--with-readline \
--with-tcltk \
--with-tcl-config=/usr/local/lib/tcl8.4/tclConfig.sh \
--with-tk-config=/usr/local/lib/tk8.4/tkConfig.sh \
--with-libpng \
--with-jpeglib \
--with-zlib \
--with-bzlib \
--with-pcre \
--with-libiconv-prefix=/usr/local/
2012 Aug 10
2
creating a contingency table from a data.frame automatically (NOT BY HAND)
Hello there!
I am still struggling with a binomial response over all categorical
variables (some of them with 3 levels, most with 2 levels). After
initial struggles with glm's (struggle coming from the data, not the
actual analysis) I have decided to prefer contingency tables. I have my
data such as:
response:
2009 Jun 05
1
[PATCHv3 03/13] qemu: add routines to manage PCI capabilities
Add routines to manage PCI capability list. First user will be MSI-X.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
hw/pci.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
hw/pci.h | 18 +++++++++++-
2 files changed, 106 insertions(+), 10 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 361d741..ed011b5 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@
2009 Jun 05
1
[PATCHv3 03/13] qemu: add routines to manage PCI capabilities
Add routines to manage PCI capability list. First user will be MSI-X.
Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
hw/pci.c | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
hw/pci.h | 18 +++++++++++-
2 files changed, 106 insertions(+), 10 deletions(-)
diff --git a/hw/pci.c b/hw/pci.c
index 361d741..ed011b5 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@
2009 Mar 05
0
[LLVMdev] Fwd: PPC Nightly Build Result
Hi Bill,
this might be a latent bug related to PPC. I have no such
machine to access atm., but I shall be able to reproduce the
problem when back at home. (In about 4 hours).
I keep you informed.
Cheers,
Gabor
On Mar 4, 7:57 pm, Bill Wendling <wendl... at apple.com> wrote:
> Something last night broke the build on Darwin PPC. Possible Gabor's
> check-in?
>
> -bw