Displaying 20 results from an estimated 2000 matches similar to: "help with matrix creation (merging data frames)"
2000 Aug 10
2
help with matrix creation
hi R-help!
I would like to know a simple and easy way (if posible) to do the following
data manipulation. I have a matrix of experimental data (with replicae in time)
>experiment<-data.frame(times=c(0,0,10,10,20,20,30,30),expval=c(1,1,2,2,3,3,4,4))
> experiment
times expval
1 0 1
2 0 1
3 10 2
4 10 2
5 20 3
6 20 3
7 30 4
8
2002 Dec 18
1
Windows binary of Dopt library
Dear R-helpers,
Would anybody have a compiled binary version (for Windows) of the Dopt
library that is in the development site?.
best regards,
IOsu
--------------------------------------------------------------
Jes?s Mar?a Fr?as Celayeta
Dublin Institute of Technology
School of Food Sci. and Env. Health.
Cathal Bruha St., Dublin 1. Ireland
Phone: +353 1 4024459 Fax: +353 1 4024495
2012 Oct 09
1
how to convert by lists in data.frames
Dear R-helpers,
I’ve got a summary of results from a by() call that I am making with a list
of more than two of factors not very different from the example in the by()
help page
require(stats)
by(warpbreaks[, 1], warpbreaks[, -1], summary)
The result of the command gives a list of the form
wool: A
tension: L
Min. 1st Qu. Median Mean 3rd Qu. Max.
25.00 26.00
2004 May 24
2
Metafiiles into Word R 1.9.0
Dear R-helpers,
I recently upgraded to R 1.9.0 in my computer at work and at home:
1.-The computer at home has Windows XP and Office XP and it seems to work
perfectly and I copy-paste graphics perfectly.
2.-The computer at work has Microsoft Windows 2000 (5.00.2195 Service Pack
2) and Word 2000 (9.0.4402 SR-1) I cannot copy-paste windows metafiles into
Office applications in my computer at
2004 May 12
1
Change default values of a function
Dear R-helpers,
I would like to change the default value of a functions that is call by a
package. The function deparse() is called by a set of functions from a
library and because I don't think is appropriate to change the library, I am
trying to change the default value in deparse().
At the moment the only solution I have come across is to place a function
in my working environment like
2000 Jan 04
1
Alternative to cxy in R
good morning to the R-help list!,
I would like to ask if there is an alternative to the S ploting
parameter "cxy" in R. I am trying to port some S code to R that makes use
of this "cxy" parameter to scale the graphics, and I don't find this
parameter in help(par).
thank you,
IOsu
-------------------------------------------------------------------------------
Jes?s
2004 May 05
0
Reshape of repeated measures data
Dear R-helpers,
I am trying to reshape a data frame that is in a wide format into a long
format one. I have come across the reshape() function, but I have been very
successful using it.
As an example:
ll <-
data.frame(time.1=seq(0.1,1,length=10),L1=rnorm(10),time.2=c(seq(1,7),rep(NA
,3)),R2=c(rnorm(7),rep(NA,3)),time.3=c(seq(1,1.5,length=3)+5,rep(NA,7)),M3=c
(rnorm(3),rep(NA,7)))
which
2005 Mar 16
0
use of covariates with nlmeODE
Dear R-helpers,
I have some problem with a model I am trying to run with nlmeODE. I have a
covariate that I want to include in the model and I can't find in the
documentation how to include it in the model so that it can calculate it.
>formula(trial)
PME ~ time | Ident
abcnoniso <- list(DiffEq=list(
debdt = ~ -ksol*pH*eb ,
desdt = ~
2001 Apr 14
0
Defining extra fonts in the postscript driver
I've been looking at the ellipse package I co-wrote with Ed Chow for
S-Plus a few years ago, cleaning up the documentation now it's been
ported to R (by Jesus Frias, thanks IOsu!) and I'm back as the
maintainer.
One of the things it did which we thought was kind of cute at the time
was to use a few lines of Postscript code to define a font, where the
glyphs were ellipses of various
2002 Jan 01
3
confidence ellipsoid for model parameters
Dear all,
Has anyone written functions to compute (and ideally project / plot onto
a plane) confidence ellipsoids for q linear model parameters, q > 2 ?
Greetings and best wishes,
Renaud
--
Dr Renaud Lancelot, v?t?rinaire
CIRAD, D?partement Elevage et M?decine V?t?rinaire (CIRAD-Emvt)
Programme Productions Animales
http://www.cirad.fr/presentation/programmes/prod-ani.shtml
ISRA-LNERV
2003 Sep 16
2
gnls( ) question
Last week (Wed 9/10/2003, "regression questions") I posted
a question regarding the use of gnls( ) and its dissimilarity
to the syntax that nls( ) will accept. No one replied, so
I partly answered my own question by constructing indicator
variables for use in gnls( ). The code I used to construct
the indicators is at the end of this email.
I do have a nagging, unanswered
2006 Jan 12
1
Equal number of cuts in a contourplot with trellis
Dear R-helpers,
I need some help to produce a set of contour plots that I am
trying to make in order to compare surfaces between the levels of a
factor. For example:
library(lattice)
g <- expand.grid(x = 60:100, y = 1:25, ti = c("a","b","c"))
g$z <-with(g,
(-1e-4*x-1e-3*y-1e-5*x*y)*(ti=="a") +
(1e-2*x-1e-3*y-1e-4*x*y)*(ti=="b") +
2007 Jun 26
1
Subscripting specified variables in a function
I'm trying to create a function which will allow me to subset a data set
based on values of various specified variables. I also want to then
apply some other function(s) (e.g., summary).
This is what I've tried so far....
> test.fx <- function(dta, expvar, expval) {
+ newdta <- subset(dta, eval(expvar)>expval)
+ summary(newdta$eval(expvar))
+ }
>
>
2001 May 31
1
No subject
Hi R-helpers!
I have a problem with the xfig device and I don't know how to
tackle. If anybody can give me some help I will be very thankful:
*I have produced a series of figures using a function that
makes a call to barplot (in fact I am making Pareto Charts using
a function that was kindly provided through this list :-)
*I have exported the figures to xfig in order to give them
a
2001 Jan 11
2
nls error handling
I'm written a function that uses nls in a loop to fit a model to resampled data. Occasionally a sample is drawn such that the algorithm (apparently) can't converge and
step factor reduced below minimum
is printed to the screen. I tried a few different settings for the minFactor parameter in nls.control with no different result. When this happens, I would like my function to put NAs
2000 Sep 13
2
Cleaning up after compiling R source
Forgive this naive question, but I'm not accustomed to using Win ports of
Unix tools (actually I'm unfamiliar with Unix tools, period).
Anyway, I've successfully compiled the R-1.1.1 sources into the full binary
package. Everything seems to work. I'd like to remove all the "made"
files and leave only the original source code and the compiled binary
code. Is there
2007 Dec 20
1
auto named savings (pngs & data-frames)
Hello, i only got a small problem.
i try to create automatic new dataframes, or png?s. the main problem i
got is:
how can i create automatic a new name for a file (read out by simply
"for") -
i tried to use "(paste...) but theres an errormessage, about a wrong
declination. R told it is as.character, but need as.Real.
Should i use another method than "paste"?
i tried as
2002 Dec 18
4
Running R on a Local Area Network
A couple of months ago I downloaded R 1.6.0's binary for Windows, which I have
since been using without any particular problem, that is on one machine running
Windows 98.
Last week I set up a local network and have since tried to use R remotely, i.e.
R is installed on the previous machine and nowhere else. On the client's side,
the GUI opens correctly and allows me to do simple
2023 Oct 24
2
How to Calculate the Mean by Multiple Groups in R
Hello,
I have a data frame with different groups (Time, Target, Conc) and
each entry has a triplicate value of the measurements OD and ODnorm.
How can I merge the triplicates into a single mean value?
I tried the following:
```
df = data.frame(Time=rep(1, 9), Well=paste("A", 1:9, sep=""),
OD=c(666, 815, 815, 702, 739, 795, 657, 705, 663),
2006 Oct 24
1
Index corruption causes child process to die
My recent migration from Courier-IMAP to Dovecot has been marred by
these errors:
Oct 24 12:12:40 server dovecot: IMAP(juha): Fixed index file
~user/Maildir/.Geekzone/dovecot.index: first_recent_uid_lowwater 431
-> 430
Oct 24 12:12:40 server dovecot: IMAP(juha): Corrupted index file
~user/Maildir/.Geekzone/dovecot.index: Duplicate header extension
keywords
Oct 24 12:12:40 server dovecot: child