Re: [R] dependent column(s) in data frame

2014-02-23 Thread PQuery
Well I first thought of using the MFA by considering my data as categorical but indeed the correspondence analysis methods are better suitable for my data structure, Thanks again, P -- View this message in context:

Re: [R] dependent column(s) in data frame

2014-02-22 Thread PQuery
Many thanks David, I will have a look on logistic regression for my case. Do you know about a good example regarding logistic regression ? I was thinking also of using Multiple Factor Analysis too (MFA - like in FactoMineR). However I am not sure how successful this is going to be. Best, P.

Re: [R] dependent column(s) in data frame

2014-02-21 Thread PQuery
Hi, Thanks for the reply, I will wait a couple of days and eventually post elsewhere unless I find the solution myself. Best. -- View this message in context: http://r.789695.n4.nabble.com/dependent-column-s-in-data-frame-tp4685561p4685633.html Sent from the R help mailing list archive at

[R] dependent column(s) in data frame

2014-02-19 Thread PQuery
Dear all, I have a data frame with a status column and some condition columns. (a dput of part of it is listed below). I would like to know if: 1) There are more chances to have a status of 1 when more than one conditions have the value of 1 ? 2) The status column is depending on any one or

[R] obtain triplets from Data Frame columns

2013-08-05 Thread PQuery
Hi Guys, I have a list elements in two columns of a data frame. I want first to subselect on V1 and then to form and count all possible and unique triplets of V1 with the corresponding elements in V2 but exclude triplets for which a pair (V1 V2) does not exists: Example input V1 V2 AB A

Re: [R] obtain triplets from Data Frame columns

2013-08-05 Thread PQuery
Hello Jean, Thanks for the reply. However, you solution doesn't reproduce the output that I desire. I updated my post with my solution full of loops. If there is a more fancy/elegant way, I'll take it. Best, -- View this message in context:

[R] subselecting on Data frame

2013-08-03 Thread PQuery
Dear all, I have a data frame of features (example pasted below) from which I would like to select, say: how many triplets of features (corresponding to rows) have the same Scaff and the same Cat and a score 0.6 and fall in a distance of max 1 (distance defined as Start of row[i+1] - End of

[R] comparing real set vs sampled sets

2013-07-31 Thread PQuery
Dear R helper, I have a statistic question. I have a vector of 500 values for which I need to assess the statistical significance of occurrence real.dist - realValues For that, I sampled from my data large data pool 1000 other vectors of 500 values each. I then run ks.test with my real vec vs

[R] Apply function over elemetns of a list

2010-10-02 Thread PQuery
Hello, I have a list ll - see below on which I would like to apply a function accessing every pair of elements in the list. For instance, I want to apply the sum function on 6635 + 6636 and return the sum, the on 6635 + 6637, ... Any hint to do that using apply / mapply / rapply ? Thanks,

[R] Coloring leaves in Dendrogram according to gene names

2010-04-13 Thread PQuery
Hello, I am a new R user and have a question regarding dendrogram coloring. I would like to color each leaf in the dendrogram (dhc) according to a specific criterion. For me this criterion is the gene name. For this, I created a data.frame with 2 variables: The gene name and the corresponding