Displaying 20 results from an estimated 200 matches similar to: "lists within a list / data-structure problem"
2003 Dec 04
6
get mean of several rows
Dear all!
After hours of trying around, I gave up:
I have a 2-dimensional array, and I know how to split it into its rows
and how to get the mean for every row using 'sapply'.
But what I want is to calculate the mean over the first n rows, and then
the second n rows, etc., so that I get a vector like:
v == mean1(row 1:5), mean2(row6:10),...
(trivial, you might say. I find it rather
2003 Nov 25
3
plot mean + S.E. over time
Hi, there!
I finally became a disciple of 'R', after having lost years of my life
handling data with a popular, rather wide-spread spreadsheet-software.
Now I want to plot the results of many runs of my simulation over time,
so that the means +/- Standard error are on the y-axis, and time on the
x-axis.
I have tried 'boxplot', with timesteps as the grouping variable, but did
2004 Jul 28
3
Best way to store negative indexes
Hi,
I'm trying to figure out how to properly construct a graph of
frequencies of a difference between 2 values, that is | i | - | j |.
I'd like to know the best way to store the actual data because of course
doing my_vector[i -j] will not work because the index could be negative.
I know there's no hash table so what's the best solution,
simplicity-wise ? Use a list of pair of
2009 Mar 09
1
Data Restructuring Question
I think I am overlooking a call or concept in R to help me easily and quickly restructure my data.frame:
Sometimes the data I receive looks like:
VariableName, Run1, Run2, Run3, Location
temp, 15.0, 16.0, 17.0, There
And other times it looks like:
VariableName, Run, Location
temp, 17.0, There
I would like to use the header information in order to be able to
2017 Oct 21
2
Help_urgent_how to calculate mean and sd in biomod 2
Hello
I am new in R. I am trying to implement Biomod 2 package.
However, I have a doubt. I want to calculate the mean and sd of
"Testing.data"
(ROC and TSS)
> # let's print the ROC scores of all selected models
> myBiomodModelEval_55["ROC","Testing.data",,,]
RUN1 RUN2 RUN3 RUN4 RUN5 RUN6 RUN7 RUN8 RUN9 RUN10
0.938 0.938 0.926 0.931 0.939
2007 Dec 18
3
[LLVMdev] Broken makefile dependencies?
I am seeing a very strange situation where doing:
make -C dir all
does not rebuild anything in dir, even though stuff is stale. This
command is what the recursive makefile uses to walk the directory
structure.
The really strange thing is that:
cd dir; make all
does rebuild stuff.
Does anyone have any idea what is going on here? I thought they were
identical.
-Chris
2007 Dec 18
0
[LLVMdev] Broken makefile dependencies?
> make -d -C dir all >run1
> cd dir; make -d all >../run2
cd ..
diff -udb run1 run2 | less
But maybe you don't have GNU make, but some Apple (BSD-derived)
make which doesn't have the "-d" switch ...
2009 May 20
1
Plot data from table with column and row names
Dear All
Sorry for what appears a trivial matter - I'm new to R and am stumbling
ahead.
I have a table of numerical data (36 rows by 12 columns) such as below:
GM1 GM2 GM3 GM4 GM5 ...etc GM12
Run1 1 2 1 2 3 ...
Run2 2 1 3 2 1 ...
...
Run36 2 1 1 1 1
I would like to plot simple line graphs of some of the runs or
2010 Jul 02
2
merging plot labels in a lattice plot
Hi, I have a lattice lot conditioned on two variables. Example code is:
library(lattice)
x <- data.frame(d=runif(100),
f1=sample(c('yes', 'no'),100,replace=TRUE),
f2=c(rep('Run1',30),rep('Run2',30),rep('Run3',40)))
histogram(~d | f1 + f2, x)
In the plot, for a given value of f2, there are two panels, one for
'n'
2004 Mar 16
2
Documentation on how to put classes and methods in packages with namespace?
Documentation on how to put classes and methods in packages with namespace?
How should I define my classes and methods in "dynamicGraph"???
(That is - Can some one point me to the documentation on
how to put classes and methods in packages with a namespace? )
Currently it is done by the code below.
This gives problems, when a workspace with a "dynmaicGraph" is
2018 Sep 25
3
[cfe-dev] New warnings when building trunk with GCC 9
+ Erik, who implemented DR1579
Originally, I had the warning similar to GCC's warning, but took it out due
to not having DR1579 implemented in clang (warning changed in r243594)
Erik in r274291 implemented DR1579, although PR27785 didn't mention
anything about std::move
It looks like what's happening is that Clang and GCC handles the return
differently. Clang needs the std::move
2009 May 11
1
3d Scatterplot using rgl
Hi,
I am trying to plot a 3d scatter plot using the rgl package but am having trouble.
I have a matrix containing x, y and z co-ordinates and a fourth element related to a count variable.
I would like to plot the points using plot3d with the sizes of the points related to the fourth element in the matrix. Is this possible with plot3d or do I need to use something else?
I include a small example
2011 Feb 24
4
Running code sequentially from separate scripts (but not functions)
Hello!
I am wondering if it's possible to run - in sequence - code that is
stored in several R scripts.
For example:
Script in the file "code1.r" contains the code:
a = 3; b = 5; c = a + b
Script in the file "code2.r" contains the code:
d = 10; e = d - c
Script in the file "code3.r" contains the code:
result=e/a
I understand that I could write those 3 scripts
2018 Sep 16
2
[cfe-dev] New warnings when building trunk with GCC 9
Yes, we should produce this warning in C++11 mode too. (I could be
misrecalling, but I think the rationale for the current behaviour is based
on historical GCC behaviour.)
On Sun, 16 Sep 2018, 10:04 David Blaikie via cfe-dev, <
cfe-dev at lists.llvm.org> wrote:
> Fair point made on that thread - that this is a DR, so technically the
> std::move is pessimizing even in C++11 mode.
2012 Feb 17
3
portable parallel seeds project: request for critiques
I've got another edition of my simulation replication framework. I'm
attaching 2 R files and pasting in the readme.
I would especially like to know if I'm doing anything that breaks
.Random.seed or other things that R's parallel uses in the
environment.
In case you don't want to wrestle with attachments, the same files are
online in our SVN
2017 Oct 26
0
Help_urgent_how to calculate mean and sd in biomod 2
Ol?,
Please keep this in the list, I'm cc-ing r-help at r-project.org. And yes,
I am Portuguese but R-Help is a mailing list in the English language.
As for your new question, I believe that you should start a new thread.
This is completely different from the question on computing mean and sd.
Ask a new question.
Font "arial" is a Microsoft font and as far as I know is not
2009 Nov 09
1
Incomplete, unbalanced design, and pseudoreplication?
Hello,
I am trying to help someone who has carried out an experiment and I'm
finding it quite difficult to understand the appropriate model to use
& code it.
The response is a measurement - the amount of DNA extracted during the
experiment. There were 2 factors to be tested - one is the condition
under which the experiment took place and the other is the type of DNA
to be
2011 Aug 24
3
Efficient way to Calculate the squared distances for a set of vectors to a fixed vector
I am pretty new to R. So this may be an easy question for most of you.
?
I would like to calculate the squared distances of a large set (let's say 20000) of vectors (let's say dimension of 5) to a fixed vector.
?
Say I have a data frame MY_VECTORS with 20000 rows and 5 columns, and one 5x1 vector y. I would like to efficiently calculate the squared distances?between each of the 20000
2011 Sep 28
2
apply lm function to dataset split by two variables
Dear all,
I am not fluent in R and am struggling to 1) apply a lm to a weight-size
dataset, thus the model has to run separately for each species, each
year; 2) extract coefs, r-squared, n, etc. The data look like this:
year sps cm w
2009 50 16 22
2009 50 17 42
2009 50 18 45
2009 51 15 45
2009 51 16 53
2009 51 17 73
2010 50 15 22
2010 50 16 41
2010 50 16 21
2010
2012 Dec 21
1
Rterm does not load personal library
Greetings,
I am trying to run a short script from a shell:
c:\projects\hell>Rscript --default-packages=mypack X:/4Stephen/commit/curve.R > X:/4Stephen/commit/run1.out
Loading required package: utils
Warning message:
package 'RODBC' was built under R version 2.12.2
Error: could not find function "normalize"
Execution halted
Warning message:
closing unused RODBC handle 1