Displaying 20 results from an estimated 10000 matches similar to: "For-loop"
2010 Dec 21
0
Odp: For-loop
>Hi Petr,
>
>thank you, I got it. In fact I was looking for the function aggregate() which I didn't know.
>
>aggregate(x = t(data), by = list(cov$Month, cov$Area), FUN = "sum")
>
>that is doing exactly what I need.
>
>Anne
>-----Urspr?ngliche Nachricht-----
>Von: "Petr PIKAL"
>Gesendet: 20.12.2010 14:23:50
>An: "Anne-Christine
2010 Dec 19
3
monthly median in a daily dataset
Hello,
I have a multi-year dataset (see below) with date, a data value and a flag
for the data value. I want to find the monthly median for each month in this
dataset and then plot it. If anyone has suggestions they would be greatly
apperciated. It should be noted that there are some dates with no values and
they should be removed.
Thanks
Emily
> print ( str(data$flow$daily) )
2005 Feb 02
4
(no subject)
can you recommend a good manual for R that starts with a data set and gives
demonstrations on what can be done using R? I downloadedR Langauage
definition and An introduction to R but haven't found them overly useful.
I'd really like to be able to follow some tutorials using a dataset or many
datasets. The datasets I have available on R are
Data sets in package 'datasets':
2010 Jul 19
1
Calculation of Covariance Matrix Calculation
Hi,
Excuse me for asking this silly question. But I really couldn't understand
why cov() and ccov() don't work for my calculation of covariance matrix.
a <- matrix(1:8, 2, 4)
a
[,1] [,2] [,3] [,4]
[1,] 1 3 5 7
[2,] 2 4 6 8
> ccov(a)
Error in solve.default(cov, ...) :
Lapack routine dgesv: system is exactly singular
I also tried colume bind, but it
2005 Jun 15
2
need help on computing double summation
Dear helpers in this forum,
This is a clarified version of my previous
questions in this forum. I really need your generous
help on this issue.
> Suppose I have the following data set:
>
> id x y
> 023 1 2
> 023 2 5
> 023 4 6
> 023 5 7
> 412 2 5
> 412 3 4
> 412 4 6
> 412 7 9
> 220 5 7
> 220 4 8
> 220 9 8
> ......
>
Now I want to compute the
2006 May 03
2
Nested model and variance partitioning
Dear R users,
I face to a nested pattern and despite the numerous examples in the help I am
still confused.
I sampled bugs in different habitats within sites which were within rivers
themselves within different regions.
The habitat correspond to different substrata (not systematically present in all
sites). For rivers and sites, I have environemental variables (e.g. altitude
and slope of
2010 Nov 18
3
Sample covariance matrix in R
Hello everyone.
I would like to find the sample covariance matrix using R.
So far I read on the wikipedia what a sample_covariance is
http://en.wikipedia.org/wiki/Sample_covariance
according to wikipedia one vector is enough to calculate the sample covariance matrix.
In R I tried cov(myvector) and I get the reply that I need to pass either two argument or one matrix with x,y values .
How can I
2012 Jan 30
3
ROC curve
Hello all,
I am very new to R and i am facing two problems. First i didn't succeed changing the konsole language in english even after trying the line command set language='en'.
I would like to plot ROC curves. I have a serie of 10 threshold tests that i do for 10 patients. The prediction for the patients is always the same but the status can change given to the considered threshold.
2010 Jun 16
1
Help asked for automated generation of ncdf variables
Hi,
I'm using the "ncdf" library for creating ncdf files.
But I need to create about 100 variables per file (e.g. single rivers),
So I do not like to create each variable separately.
Unfortunately I found no way to make this work, as I'm unable to create a
correct list of class "var.ncdf".
###code piece
river=list(mode='var.ncdf', length=nriv)
2009 Jan 08
1
cosinor analysis
Hallo,
I didnĀ“t found any facilities for Halbergs cosinor analysis in R. This analysis is well known in the Chronobiology as the least square approximation of time series using cosine function of known period (in my case of 24hours-period). I tried to write a script but crashed...
Can you give me some advices, please!?
Thanks
Anne Berger
Institute of Zoo- and Wildlife Research, Berlin, Germany
2009 Dec 14
2
Bug in lnme package?
Hi!
Something funny happens to me in lnme. I don't know if it's a bug or not.
Here's a short sketch of the problem (you could skip the introduction and
just go to the models):
I'm counting the number of spider webs ( = response variable) along two
rivers, with a two-level treatment: free-flowing and dammed.
There are three field sites (random factor) along each river, and
2005 Jan 03
3
colums in ''shorewall show connections'' command
I do not understand some colums in the output to ''shorewall show
connections''
/root> shorewall show connections
Shorewall-2.0.2f Connections at firewall - Mon Jan 3 13:12:52 PST 2005
..
tcp 6 353296 ESTABLISHED src=112.129.244.121 dst=224.81.133.205 sport=3647
dport=443 src=224.81.133.205 dst=112.129.244.121 sport=443 dport=3647
[ASSURED] use=1
I would like to know
2003 Oct 16
1
A data frame of data frames
Hello,
I'm trying to set up the flowwing data structure in R:
A data frame with 7,000 rows and 4 colums. The rownames have some special
meaning (they are names of genes). The 1st column per row is itself a data
frame, and columns 2 to 4 will keep numeric values.
The data frame contained in the 1st column will have 54 rows (with special
names) and 4 colums (1st col is a response, cols 2- 4
2003 Sep 05
3
all values from a data frame
Hello,
I've a data frame with 15 colums and 6000 rows, and I need the data in a
single vector of size 90000 for ttest. Is there such a conversion function in
R, or would I have to write my own loop over the colums?
thanks for your help + kind regards
Arne
2012 Sep 04
2
How can I export a big data.frame to excel 2010 - file.xlsx?
Hi,
I need some help to export a data frame with 83 rows and 1411 colums. I have
used the package RODBC until now. But now, I have 1411 colums that I can't
send to the old excel. If anybody knows a package to convert my data frame
in xlsx tell me!
Thanks for help in advance!
Pamela Botrel
--
View this message in context:
2012 Mar 12
3
how to calculate a variance and covariance matrix for a vector
Hello,
I have a vector {a, b1, b2, b3, b4}. How can I calculate the following
matrix:
var(a) cov(a, b1) cov(a, b2) cov(a, b3) cov(a, b4)
cov(a, b1) var(b1) cov(a, b2) cov(a, b3) cov(a, b4)
...
...
cov(a, b1) cov(a, b2) cov(a, b3) cov(a, b4) var(b4)
I would very appreciate your inputs. Thank you very much.
Sincerely,
Jialin Huang
[[alternative HTML version deleted]]
2012 Jun 16
2
How to specify "newdata" in a Cox-Modell with a time dependent interaction term?
Dear Mr. Therneau, Mr. Fox, or to whoever, who has some time...
I don't find a solution to use the "survfit" function (package:
survival) for a defined pattern of covariates with a Cox-Model
including a time dependent interaction term. Somehow the definition of
my "newdata" argument seems to be erroneous.
I already googled the problem, found many persons having the
2005 Jun 24
1
Mahalanobis distances
Dear R community
Have just recently got back into R after a long break and have been amazed at
how much it has grown, and how active the list is! Thank you so much to all
those who contribute to this amazing project.
My question:
I am trying to calculate Mahalanobis distances for a matrix called "fgmatrix"
>dim(fgmatrix)
[1] 76 15
>fg.cov <- cov.wt(fgmatrix)
2003 Oct 17
4
sub data frame by expression
Hi All,
I've the following data frame with 54 rows and 4 colums:
> x
Ratio Dose Time Batch
R.010mM.04h.NEW 0.02 010mM 04h NEW
R.010mM.04h.NEW.1 0.07 010mM 04h NEW
...
R.010mM.24h.NEW.2 0.06 010mM 24h NEW
R.010mM.04h.OLD 0.19 010mM 04h OLD
...
R.010mM.04h.OLD.1 0.49 010mM 04h OLD
R.100mM.24h.OLD 0.40 100mM 24h OLD
I'd
2014 Feb 21
6
[LLVMdev] make check issue with llvm-cov
rkotler at mipsswbrd006-le:~/caviumllvm/build/test$ make
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \
/usr/bin/python /home/rkotler/workspace/llvm/utils/lit/lit.py -s
-v . )
XPASS: LLVM :: tools/llvm-cov/llvm-cov.test (8916 of 9784)
******************** TEST