Displaying 20 results from an estimated 300 matches similar to: "Newbie question about data preparation"
2008 Nov 20
1
Repost:lattice graphics -- legend color problems
Hello R-folks,
I don't get the color of the legend in a lattice-plot right.
I select a palette from RColorBrewer and use (with a col = mypalette argument) it in the barchart plot.
The resulting graph shows the new palette in the graph, but uses the standard palette in the legend rectangles.
Adding a col argument into auto.key uses the new palette
with the legend text, but not in the
2008 Nov 18
1
legend color problems
Hello R-folks,
I don't get the color of the legend in a lattice-plot right. I select a palette from RColorBrewer and use it in the barchart plot.
The resulting graph shows the new palette in the graph, but in the legend rectangles the standard palette is used. Adding a col argument into auto.key uses the new palette
with the legend text, but not in the rectangle fill.
What am I missing?
2008 Sep 23
0
additional parameters in function called by tapply
Der R-Gurus,
first apologies if this is a FAQ, but I due to lack of R-knowledge and terminology I wasn't able to find it.
I have the following problem in aggregating results of a model calculation:
The results are yearly values of several parameters with several hierarchical spatial factors taken from a database as a data frame with the following structure
value | year | spatial1 | spatial2
2008 Oct 16
3
defining a function using strings
Hi All,
I need to evaluate a series expansion using Legendre polynomials.
Using the 'orthopolinom' package I can get a list of the first n
Legendre polynomials as character strings.
> library(orthopolynom)
> l<-legendre.polynomials(4)
> l
[[1]]
1
[[2]]
x
[[3]]
-0.5 + 1.5*x^2
[[4]]
-1.5*x + 2.5*x^3
[[5]]
0.375 - 3.75*x^2 + 4.375*x^4
But I can't figure out how to
2008 May 09
2
which.max2()
Hello,
which.max() only returns one index value, the one for the
maximum value. If I want the two index values for the two
largest values, is this a decent solution, or is there a
nicer/better R'ish way?
max2 <-function(v)
{
m=which.max(v)
v[m] = -v[m]
m2=which.max(v)
result=c(m, m2)
result
}
Seems to work ok.
Thanks,
Esmail
2004 May 11
1
Meta-Analysis using lme
Dear list-members,
I am trying to use R to conduct a meta-analysis, i.e. I'd like to use a
multi-level model to integrate the findings of a number of primary research
studies.
I set up a simple two level-model (only summary statistics are provided by
each study) as follows:
sapp.lme <- lme(D ~ 1, data = sapp.frame, random = ~ 1 | STUDYNR,
weights=varFixed(~-1+STDERR_D),na.action =
2011 Oct 11
1
apply for each value
Hello,
There has to be a more R'ish way to do this. I have two matrices, one has
the values I want, but I want to NA some of them. The other matrix has
binary values that tell me if I want to NA the values in the other matrix. I
produce a third matrix based on this. I've also tried apply() passing in
c(1,2) for rows and columns with no success yet.
Example (this works, but I'm
2005 Jan 24
1
lookups and joins
I have some data coming from SQL sources that I wish to relate in various ways. For reasons only known to our IT people, this can't be done in SQL at present.
I am looking for an R'ish technique for looking up new columns on a data frame. As a simple, hardwired example I have tried the following:
# This gives me two columns, one the lookup value and the second one
# the result column,
2005 Jun 04
3
How to change the value of a class slot
I defined an S4 class with a slot i. Then I wrote a regular function
that attempted to increment i.
This didn't work, apparently because of the general rule that a function
can't change the values of its arguments outside the function. I gather
there are ways around it, but the Green book admonishes "cheating on the
S evaluation model is to be avoided" (p. 190).
Thinking that
2002 Oct 17
1
New feature for sftp
I am new to OpenSSH (I used SSH before). One thing that I miss from SSH
is the "auto-complete". In the sftp from SSH you could complete path
using <TAB> just like in Bash, but OpenSSH sftp does not do that. Is
there any plan to add that feature ? If not, could it be add ? ;-)
Thanks...
--
Federico Petronio
petronio at agro.uba.ar
Linux User #129974
---
Unix
2011 Aug 05
2
[?]apply functions or for loop
Hello,
First time posting to this mail list.
I'd like to use R in the most efficient way. I'm accomplishing what I want,
but feel there is a more R'ish way to do it. Just learning R.
*My goal: get ranks of value across rows with row names and column names
intact.*
I'm guessing one of the [?]apply functions will do what I need, but I
couldn't sort out which one (after a lot
2000 Jul 28
2
Loop removal?
Dear all,
I've got a quite large dataframe (stor) with rows subject and rt (reaction
time). I would like to split the reaction times per subject into 6 bins of
equal size. Right now, I'm using the following code:
bindata <- function(rt) {
bindata <- rep(-1,length(rt))
binwidth <- length(rt)/6
bindata[order(rt)[(0*binwidth)+1:(1*binwidth)]] <- 1
2007 Mar 02
5
extracting rows from a data frame by looping over the row names: performance issues
Hi,
I have a big data frame:
> mat <- matrix(rep(paste(letters, collapse=""), 5*300000), ncol=5)
> dat <- as.data.frame(mat)
and I need to do some computation on each row. Currently I'm doing this:
> for (key in row.names(dat)) { row <- dat[key, ]; ... do some computation on row... }
which could probably considered a very natural (and R'ish) way of
2012 Oct 17
2
dovecot-core, dovecot-mysql for Debian squeeze
Hello list
apologize in advance for my bad English, this is the first time
I write to a list if I mistake Excuse me
I want to implement mail server with MySQL database, Postfix and Postfixadmin,
dovecot-core, dovecot-mysql dovecot-imapd dovecot-pop3d for multiple domains.
I have problems installing the daemon dovecot-core, dovecot-mysql
dovecot-imapd dovecot-pop3d
Debian squeeze, I'm using
2005 Oct 17
5
CentOS-4/beta/preview version immediate availability
Hi,
I've had this like since last saturday or something. I don't seem to be
getting it to beta.centos.org tho, so i'll just make it public thru the
channels i control.
ftp://centos.upi.iki.fi/pub/centos/4.2beta/isos/sparc/
There is ISOs and .torrents
Know yourself out and try it out please. If you have something less
than Ultra Sparc, you're out of luck with this as it's
2005 Oct 17
5
CentOS-4/beta/preview version immediate availability
Hi,
I've had this like since last saturday or something. I don't seem to be
getting it to beta.centos.org tho, so i'll just make it public thru the
channels i control.
ftp://centos.upi.iki.fi/pub/centos/4.2beta/isos/sparc/
There is ISOs and .torrents
Know yourself out and try it out please. If you have something less
than Ultra Sparc, you're out of luck with this as it's
2005 Aug 21
0
RGL v0.65
RGL Version 0.65 [r405 / 2005-08-14]
DESCRIPTION
The RGL package is a visualization device system for R, using
OpenGL as the rendering backend. An rgl device at its core
is a real-time 3D engine written in C++. It provides an
interactive viewpoint navigation facility (mouse + wheel support)
and an R programming interface.
RELEASE INFO
This is a Beta release. We target a stable release at the end
2005 Aug 21
0
RGL v0.65
RGL Version 0.65 [r405 / 2005-08-14]
DESCRIPTION
The RGL package is a visualization device system for R, using
OpenGL as the rendering backend. An rgl device at its core
is a real-time 3D engine written in C++. It provides an
interactive viewpoint navigation facility (mouse + wheel support)
and an R programming interface.
RELEASE INFO
This is a Beta release. We target a stable release at the end
2006 May 18
1
Recommended style with calculator and persistent data
I have some calculations that require persistent state. For example,
they retain most of the data across calls with different parameters.
They retain parameters across calls with different subsets of the cases
(this is for distributed computation). They retain early analysis of
the problem to speed later computations.
I've created an S4 object, and the stylized code looks like this
calc
2004 May 06
0
Local master browser on more than one workgroup
Hi, I want to know if is there is a way to configure nmbd to become
a local master browser in more than one workgroup at the same time.
Thanks adji@df.uba.ar