Displaying 20 results from an estimated 10000 matches similar to: "graphics question"
2003 May 28
1
Numbers that look equal, should be equal, but if() doesn't see as equal (repost with code included)
Hi!
Apologies for sending the mail without any code. Apparently somewhere along
the way the .R attachments got filtered out. I have included the code below
as clean as possible. My original mail is below the code.
Thank you again for your time.
regards,
Paul
vincentize <- function(data, bins)
{
if ( length(data) < 2 )
{
stop("The data is really short. Is that ok?");
}
2003 Oct 15
1
is.na(v)<-b (was: Re: Beginner's query - segmentation fault)
I think the thread ended up with several people (not only me)
feeling certain they didn't like `is.na<-` but with the
developers defending it and me not really understanding
why.
Uwe Ligges was going to come up with an example of
`<- NA` going wrong (sorry Brian R, I mean behaving
unexpectedly), but never did, and I think the problem
has been fixed. It was apparently a problem with
2004 Feb 24
1
Accessing columns in data.frame using formula
Hello!
I'm trying the hard way to use a formula, in a function, to specify the
names of several important columns in a data.frame. Maybe I'm just battling
to figure out the right search terms :-( This is on XP, R 1.8.1.
So, for instance,
wery[1:5,]
V1 V2 V3 V4 V5 congr V7 V8 V9 ok RT
1 1 1 960 520 1483 c 1 r r 1 760
2 1 2 1060 450 3753 c 1 r r 1 555
2004 Aug 26
1
library(car) Anova() and Error-term in aov()
Dear all,
Type III SS time again. This case trying to reproduce some SPSS (type III)
data in R for a repeated measures anova with a betwSS factor included. As I
understand this list etc, if I want type III then I can do
library(car)
Anova(lm.obj, type="III")
But for the repeated measures anova, I need to include an Error-term in the
aov() call (Psychology-guide from Jonathan Baron)
2003 Oct 16
1
Cbind warning message
Hello!
I'm not grasping why cbind (in the code below) warns that
Warning message:
number of rows of result
is not a multiple of vector length (arg 2) in: cbind(z, p)
when I do
sections <- function(length, parts)
{
p <- 1:parts
q <- length %/% parts
z <- array(p, dim=c(parts,q))
r <- length %% parts
if ( r > 0 )
{
p[r+1:length(p)] <- NA
z <-
2004 Jun 16
1
subset(..., drop=TRUE) doesn't seem to work.
Hello!
If I read ?subset, the workings of the argument drop (to me) seem to imply
equivalence of A and B (R 1.9.0):
#A
dd <- data.frame(rt=rnorm(10), c=factor(gl(2,5)))
dd <- subset(dd, c==1)
dd$c <- dd$c[, drop=TRUE]
table(dd$c)
1
5
#B
dd <- data.frame(rt=rnorm(10), c=factor(gl(2,5)))
dd <- subset(dd, c==1, drop=TRUE)
table(dd$c)
1 2
5 0
So to lose the second level of
2003 May 27
2
Numbers that look equal, should be equal, but if() doesn't see as equal
Hi!
After a lot of testing and debugging I'm falling silent in figuring out
what goes wrong in the following.
I'm implementing the Vincentizing procedure that Ratcliff (1979) described.
It's about calculating RT bins for any distribution of RT data. It boils
down to rank ordering your data, replicating each data point as many times
as you need bins and then splitting up the
2008 Mar 27
1
Dynamic string as element name in a list
Dear all,
I have a piece of code along the lines of
f <- function(x) {
clipname <- "LK" # but is in real determined based on info in data.frame x
# other manipulations
return( list(clipname=list(....)))
}
My intention is to do
out <- f(dat)
and then (in this example) having/getting
out$LK
which is a list in itself.
Of course, it doesn't work like this, but
2006 Feb 08
1
invalid graphics state using dev.print (fwd)
On Mon, 6 Feb 2006 18:12, Simon Urbanek wrote:
> On Feb 6, 2006, at 5:24 PM, Paul Roebuck wrote:
>
>> Tried on R-Sig-Mac with no responses, but I need some kind
>> of answer.
>> [...]
>> Does the following work on your system?
>
> Interesting, no, it doesn't either. For png and pdf I use
> Quartz + quartz.save (it produces much nicer results) so
> I
2010 Aug 06
1
apply family functions
Hi all,
I would like to flag each record in the data according to certain conditions
as specified below.
For example,
If "Close_date" in *dat* is between ("Open" & "Close") or ("Open1" &
"Close1") or ("Open2" & "Close2") in *oc, *flag the records as "Valid",
otherwise "Invalid"
I would like to
2016 Jul 20
1
[PATCH] v2v: make virsh command quiet if v2v is quiet (RHBZ#1358142)
Pass -q to virsh if virt-v2v was run with -q, to reduce its output in
quiet mode.
Unfortunately this does not currently work in virsh as it should, see
RHBZ#1358179, so only after that bug is fixed this change can actually
take effect.
---
v2v/output_libvirt.ml | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/v2v/output_libvirt.ml b/v2v/output_libvirt.ml
2007 Jul 04
2
Adding data to existing plot with new=TRUE does not appear to work
Dear all,
I am trying to shove a number of cmdscale() results into a single plot
(k=1 so I'm trying to get multiple columns in the plot). From ?par I
learned that I can/should set new=TRUE in either par() or the plot
function itself. However with the following reduced code, I get only a
plot with a column of data points with x==2.
plot(1,10, xlim=range(0,3), ylim=range(0,10),
2002 Jul 12
1
Sweave problem with recursive call, Add.
This diff would be better.
Gunnar
-------------- next part --------------
268a269,270
>
> ocf <- character()
285,286c287,298
<
< tmpcon <- textConnection("output", "w")
---
>
> options(warn=-1)
> if (is.finite(max(as.integer(sub("output","",apropos("output"))),na.rm=TRUE))) {
2002 Jul 12
1
Sweave problem with recursive call, Add.
This diff would be better.
Gunnar
-------------- next part --------------
268a269,270
>
> ocf <- character()
285,286c287,298
<
< tmpcon <- textConnection("output", "w")
---
>
> options(warn=-1)
> if (is.finite(max(as.integer(sub("output","",apropos("output"))),na.rm=TRUE))) {
2013 Apr 24
2
Regression on stratified count data
Hi all:
For stratified count data,how to perform regression analysis?
My data:
age case oc count
1 1 1 21
1 1 2 26
1 2 1 17
1 2 2 59
2 1 1 18
2 1 2 88
2 2 1 7
2 2 2 95
age:
1:<40y
2:>40y
case:
1:patient
2:health
oc:
1:use drug
2:not use drug
My purpose:
Anaysis whether case and
2010 Jan 18
3
add spline to longitudinal data - preferably similar to SAS's 'I=SM50S' routine
Hi Ruser
I'm trying to replicate some SAS code. I have to add a spline to my
longitudinal spaghetti plot.
I have the plot, but I can't add the spline, a overall trend line. In
the SAS code they use the command 'I=SM50S' and I would prefer
something similar. I?m using R 2.10.1 on windows XP?
I have made this working example.
tolerance.pp <-
2016 Sep 15
1
[PATCH] v2v: -o libvirt: always write pool names (RHBZ#1141631)
When creating the XML for the new guest, always put the name of the pool
containing the disks, even when -os specified a pool UUID: libvirt does
not handle pool UUIDs for storage, but only names.
---
v2v/output_libvirt.ml | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/v2v/output_libvirt.ml b/v2v/output_libvirt.ml
index 5fa338f..e934335 100644
---
2004 Jun 08
1
level assignment
Hi,
i would like recocde some numeric variables in one
step, but hanging unexpected in a level asignment problem?
for(i in 2:length(msegmente))
{ msegmente[,i] <- as.factor(msegmente[,i])
}
Problem is that not every level is in every variable, so the
asignment is necessary!?
levels(LT.200301) <- c(1=AK,3=GC,10=OC,
29=AM,32=IA,38=ACH,52=ZBA,53=A9L,59=EHK)
Error: syntax error
>
2011 Jul 27
1
dovecot and tcpwrappers
Hi,
I used dovecot 1.x for quite a while and it worked fine. However, I used it
through inetd and used hosts.allow/deny to restrict access to only certain
groups of systems.
Since yesterday I have dovecot 2.0.13. But in version 2.0.13 it seems that
starting using inetd doesn't work anymore : I only get a strange error
message if I try to connect using telnet :
telnet localhost imap
2011 Mar 13
2
Problem implementing 'waldtest' when using 'mlogit' package
Hi all,
I have been working through the examples in one of the vignettes associated with the 'mlogit' package, 'Kenneth Train's exercises using the mlogit package for R.' In spite of using the code unchanged, as well as the data used in the examples, I have been unable to run a Wald test to test two models.
Specifically, I have run the following command, where mc and mi2 are