Displaying 20 results from an estimated 700 matches similar to: "LATTICE. On skip, index.cond with a formula like Y~X|A+B"
2012 Apr 10
2
substitution of the ASCII character "squared" AKA "^2" AKA (alt+0178) with a tractable one
Deae R helpers,
the problem I'm facing today is related to the manipulation of a string.
The string is coming from a a porosimeter, whose control is under a
complicate set-up of two computers
One (running on DOS) is controlling directly the hardware, while the
other (running on win XP) which process the data is connected to the
first one via serial. I get the data from this last computer.
2010 Jun 29
1
Sweave, xtable plus/minus sign
Dear R-users,
please consider the following minimal example:
\documentclass[a4paper,titlepage,onecolumn,12pt]{article}
\usepackage[italian]{babel}
\usepackage{amssymb}
\usepackage[utf8x]{inputenc}
\usepackage[pdftex]{graphicx}
\begin{document}
<<label=test, echo=FALSE, results=tex>>=
df.data1 <-
cbind.data.frame(A = rnorm(18),
B =factor(rep(LETTERS[1:6],
2010 Apr 22
1
Multicolor main title in a plot or mtext
Dear R-users, the problem I'm facing today is to write a
multicolor main title in a plot.
I would like to have 3/4 colors to help people in the
audience to visually realize what is what in a 4x2 plot array
On top of each plot I would like to have two lines.
The 1st line will indicate what is plotted
The 2nd line will indicate a a reference
Graphically speaking I would like a result similar
2010 Oct 19
2
superpose.polygon, panel.polygon and their colors
Dear R-helpers,
the problem I'm facing today is to convince lattice to paint some areas
in gray.
The areas I would like to have in gray, are confidence bands
I've googled around in the mailing list archives and eventually find
some clues.
This link is my starting point
http://tolstoy.newcastle.edu.au/R/e2/help/07/04/15595.html
I'm reproducing here the code for your convenience
est
2013 Jun 11
0
How to "source" a R script in a parent/parallel directory (win/linux)
Dear R users,
I would like to source a file independently from the operating system,
but I cannot figure out how.
I apologize for the verbosity of this mail,
but English is not my mother tongue, so I cannot be concise and precise
as I can be in my own language.
I'm writing a script which will be run by some people who are not
familiar with R.
I already tried to teach them some rudiments,
2010 May 27
3
rjags in Ubuntu 10.04
I've not been able to install rjags successfully in Ubuntu 10.04 :
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'rjags', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared library
'/home/scott/R/i486-pc-linux-gnu-library/2.11/rjags/libs/rjags.so':
libjags.so.2: cannot open shared object file:
2010 Nov 16
4
Simple error handling in R
Hi R experts,
I am looking for a simple error handling approach, whereby I could stop
function execution with a customized error message. For example:
for (i in 1:10) {
if (i == 5)
# I'd like to be able to stop right here with an error message I have
complete control over
}
The problem with stop() is that I cannot control completely what gets
printed to the terminal, even with
2003 Dec 09
1
arni.colors
Dear r-devel,
I have implemented a function to create color palettes with improved
contrast and logical order, compared with the built-in ones:
source("arni.colors.R") # code is given below
barplot(rep(1,100), col=arni.colors(100), space=0, border=0, axes=F)
par(mfrow=c(2,1)) # rainbow() has too much green...
barplot(rep(1,50), col=rev(rainbow(50,end=0.7)), space=0, border=0,
2006 Mar 31
10
ruby help / if (cond or cond)
Why this code doesn''t work as expected? It raises exceptions everytime.
Tried with || operator, too.
validates_each :x, :y do |record, attr|
record.errors.add (attr, ''between 1 and 100'') if (attr.to_i>100 or
attr.to_i<0)
end
--
They say money can''t buy happiness? Look at the smile on my face... ear to ear, baby!
2014 May 10
1
[PATCH] nv50/ir: make sure to reverse cond codes on all the OP_SET variants
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: "10.2 10.1" <mesa-stable at lists.freedesktop.org>
---
Found this while tracking a regression on nvc0 for my patch which fixes
ir_unop_any to emit or's instead of dp3's. (That patch is fine, this code was
always broken.)
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp | 3 ++-
1 file changed, 2
2011 Apr 14
1
if (cond) expr1 expr2 ??
hi , this can be done easily if (cond) expr
ex:
> for (i in 1: 4)+ {+ if(i==2) print("a")+ if(i==2) print("b")+ }
output : [1] "a"[1] "b"
but i want this
if (cond) expr1 expr 2
i tried this :
> for (i in 1: 4)+ {+ if(i==2) (print("b") && print("a"))+ }
output : [1] "b"Error in print("b") &&
2006 Aug 10
2
index.cond in xyplot
Dear R-users
I have 5 dependent variables (y1 to y5) and one independent variable (x) and
3 conditioning variables (m, n, and 0). Each of the conditioning variables
has 2 levels. I created 2*4 panel plots.
xyplot(y1+y2+y3+y4+y5 ~ x | m*n*o,layout = c(4,2))
I would like to reorder the 8 panels. I tried to use index.cond (e.g.,
index.cond = list(c(1,3,2,4,5,7,6,8)) but it didn't work out.
2011 Oct 19
0
[LLVMdev] Error when cond of select instruction is a vector
This is indeed a bug. I get a different error on my machine. Until we solve this bug, as a workaround, you can use the <4 x float> type for which the vselect works.
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Fan Dawei
Sent: Wednesday, October 19, 2011 10:10
To: LLVMdev at cs.uiuc.edu
Subject: [LLVMdev] Error when cond of select instruction is
2011 Oct 19
1
[LLVMdev] Error when cond of select instruction is a vector
Hi Rotem,
What do you mean by "you can use the <4 x float> type for which the vselect
works".
Do you mean that then back-end can correctly split the operands when it is a
four elements vector? I've try that, but it still fails.
On Wed, Oct 19, 2011 at 4:21 PM, Rotem, Nadav <nadav.rotem at intel.com> wrote:
> This is indeed a bug. I get a different error on my
2008 Apr 29
5
If(cond) statement
Why will this simple statement not work? I think I am following the
documentation for if(cond) statements, and I have tried wrapping the
cons.expr and alt.expr in {}, I get the same error. There is no example
in the help file, and this is not covered in the Introduction to R,
SimpleR or other tutorials I have looked into.
mxx=max(cpx_list$nMV);
mxy=max(trend_list$nMV);
if (mxx>mxy)
mxy=mxx
2011 Oct 19
2
[LLVMdev] Error when cond of select instruction is a vector
Hi LLVMdev,
In the specification of llvm ir, the select operation can takes a condition
of vector type,
'select' Instruction Syntax:
<result> = select *selty* <cond>, <ty> <val1>, <ty> <val2>
*; yields ty*
*selty* is either i1 or {<N x i1>}
Overview:
The 'select' instruction is used to choose one value based on a condition,
2010 Dec 20
1
R hangs on the stats.so library
Dear all,
I having this problem on my laptop.
It was caused by my clumsy attempts to upgrade the system.
As I wrote here,
(http://www.mail-archive.com/r-sig-debian at r-project.org/msg01364.html)
I was trying to solve the same problem with JAGS/rjags on my laptop.
After typing R in a terminal I'm currently get the following:
> R version 2.9.0 (2009-04-17)
> Copyright (C) 2009 The R
2011 Oct 04
0
matrix of chi-square results for all combinations of data frame
Hi everybody
I have a questionnaire with a lot of questions that allow for more than one
option to be chosen (like a tickbox in a html form). The data captured on a
mobile device and is supplied in a format where every option is a separate
variable (logical). I want to develop a generic function to process these
questions. As part of the analysis I want make a matrix of the p-value from
the
2010 Sep 23
1
scatterplot 3d equal axis sequence length limitation
I was wondering if anyone has a way out of the limitation that you must use
equal length
x,y, and z sequence lengths.
For instance,
x<-seq(1,100)
y<-seq(1,100)
z<-rnorm(100)
scatterplot3d(z,x,y)
works fine.
However, if I get some results that has a different y subset length, such as
x<-seq(1,100)
y<-seq(1,300)
z<-rnorm(100)
scatterplot3d(z,x,y)
I get the following error:
2012 Aug 23
1
All possible models with nls()
Hi all,
I am trying to make a script that prints all possible models from a model
I've created using nls(). It is a logisitc model which in total includes 13
variables. So its >8000 models I need to create, which I don't want to do
manually. I've tried modify scripts made for linear models with no results.
I've tried these scripts on a two variable model (c,a1 and a2 is what I