Dear all,
I am looking for help in programming three functions. Those functions
should simulate (social) networks according to the process described in :
(1) A.H. Dekker - "Realistic Social Networks for Simulation using Network
Rewiring" (
http://www.mssanz.org.au/MODSIM07/papers/13_s20/Realistic
Hi I am trying to understand what happen with the heatmap.2 code that it
used to work (last used in October 2015). I am able to get a heatmap but my
colour key doesn't come up and instead I get an error in all my files the
used to work. Does anyone has any idea of what could have changed? or how
to
Hi Phil,
I don't think this is the correct list for this. You question has nothing
to do with R specifically which is the purpose here. I suggest you pursue
other help lists related to neural networks to try and find someone to
assist you.
Regards,
Charles
On Sat, Apr 16, 2016 at 2:08 AM, Phil
Hi Ansely,
As Jim points out we really need some sample data to go with the code.
Have a look at ?dput which is the best way to supply sample data here or have a
look at
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
and/or http://adv-r.had.co.nz/Reproduci
Data? Please have a look at
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
and/or http://adv-r.had.co.nz/Reproducibility.html
John Kane
Kingston ON Canada
> -Original Message-
> From: cata...@gmail.com
> Sent: Tue, 19 Apr 2016 09:35:14 +1000
> T
Hi Catalina,
The error message is pretty clear. min(diff(breaks)/100) evaluates to
a negative number. Perhaps the sort order for the values in "breaks"
has changed.
Jim
On Tue, Apr 19, 2016 at 9:35 AM, Catalina Aguilar Hurtado
wrote:
> Hi I am trying to understand what happen with the heatmap.2
Thanks for the replies.
I have fixed the problem. I only need to reorganized my data. Now my
question is about asking questions correctly. I hope I've got it. Please
find the script attached here.
R Version 3.2.2
I am looking for indicator species with Indicspecies package. After
running th
Hi Ansley
It looks good to me but I did not run the analysis as I am too lazy to install
"indicspecies". The inclusion of the raw data is a great help.
John Kane
Kingston ON Canada
-Original Message-
From: daily.p...@gmail.com
Sent: Tue, 19 Apr 2016 08:16:54 -0400
To: jrkrid...@inbox.co
That didn't work Jim!
Thanks anyway
On Mon, Apr 18, 2016 at 9:02 PM, Jim Lemon wrote:
> Hi Michael,
> At a guess, try this:
>
> iqr<-function(x) {
> return(paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-")
> }
>
> .col3_Range=iqr(datat$tenure)
>
> Jim
>
>
>
> On Tue, Apr 19, 2
Are you aware that there *already is* a function that does this?
?IQR
(also your "function" iqr" is just a character string and would have
to be parsed and evaluated to become a function. But this is a
TERRIBLE way to do things in R as it completely circumvents R's
central functional programming
Dear All,
I have never had this problem before. I run debian testing on my box
and I have recently update my R environment.
Now, see what happens when I try the most trivial of all plots
plot(seq(22))
Error in (function (display = "", width, height, pointsize, gamma, bg,
:
X11 module cannot be
Hi bert,
I understand the difference between a character string and a number. I need
to return a character string, that is a requirement. It needs to be in
that format. Getting the range with IQR is trivial I already tried it. The
grouping function accepts only one return value, and IQR returns
> That didn't work Jim!
It always helps to say how the suggestion did not work. Jim's
function had a typo in it - was that the problem? Or did you not
change the call to ddply to use that function. Here is something
that might "work" for you:
library(plyr)
data <- data.frame(groupColumn=rep
Probably wrong list, but anyway:
Same problem here, after a
apt-get dist-upgrade
On Tuesday, April 19, 2016 05:23:37 PM Lorenzo Isella wrote:
> Dear All,
> I have never had this problem before. I run debian testing on my box
> and I have recently update my R environment.
> Now, see what happe
HI that did not work for me either. The value I got returned from that
function was " - " :(. thanks for the reply
through
On Tue, Apr 19, 2016 at 10:34 AM, William Dunlap wrote:
> > That didn't work Jim!
>
> It always helps to say how the suggestion did not work. Jim's
> function had a typo
Can you show us a self-contained example, along with the output of
running conflicts()?
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Apr 19, 2016 at 8:57 AM, Michael Artz
wrote:
> HI that did not work for me either. The value I got returned from that
> function was " - " :(. thanks fo
To be precise:
paste(round(quantile(x,0.25),0),round(quantile(x,0.75),0),sep="-")
is an expression that evaluates to a character string:
"round(quantile(x,.25),0) - round(quantile(x,0.75),0)"
no matter what the argument of your function, x. Hence
return(paste(...)) will return this exact charac
NO NO -- I am wrong! The paste() expression is of course evaluated.
It's just that a character string is returned of the form "something -
something".
I apologize for the confusion.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking thing
... and I'm getting another cup of coffee...
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Tue, Apr 19, 2016 at 10:30 AM, Bert Gunter wrote:
> NO NO
I don't have my debian box available so can't confirm. But I would try
$apt-get install libpng
On Tue, Apr 19, 2016 at 11:23 AM, Lorenzo Isella
wrote:
> Dear All,
> I have never had this problem before. I run debian testing on my box
> and I have recently update my R environment.
> Now, see what
Dear Lorenzo, Dear R list,[a] to all recipients: sorry, this email is
html-against my own believes and because of inevitable constraints so far.[b]
to Lorenzo: "...and I have recently update my R environment" sounds as that
would be a gift of heaven! How did you manage to update and how exactly
Oh thanks for that clarification Bert! Hope you enjoyed your coffee! I
ended up just using the transform argument in the ddply function. It
worked and it repeated, then I called a mode function in another call to
ddply that summarised. Kinda hacky but oh well!
On Tue, Apr 19, 2016 at 12:31 PM,
Hello,
I am getting a fresh CentOS 6.7 machine set up with all of the goodies for R
3.2.3, including dplyr package. I am unable to successfully install it. Below
I show the failed installation using utils::install.packages() and then again
using devtools::install_github(). Each yields an erro
If you show us, not just tell us about, a self-contained example
someone might show you a non-hacky way of getting the job done.
(I don't see an argument to plyr::ddply called 'transform'.)
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Apr 19, 2016 at 12:18 PM, Michael Artz
wrote:
> Oh t
You normally see these errors when compiling on a vm that has very
little memory.
Hadley
On Tue, Apr 19, 2016 at 2:47 PM, Ben Tupper wrote:
> Hello,
>
> I am getting a fresh CentOS 6.7 machine set up with all of the goodies for R
> 3.2.3, including dplyr package. I am unable to successfully inst
Hi,
OK - that can be fixed by our IT whizzes.
Thanks,
Ben
P.S. Thanks for dplyr!
> On Apr 19, 2016, at 4:10 PM, Hadley Wickham wrote:
>
> You normally see these errors when compiling on a vm that has very
> little memory.
> Hadley
>
> On Tue, Apr 19, 2016 at 2:47 PM, Ben Tupper wrote:
>>
Using the Matrix package, how can I create a row-oriented sparse
Matrix from scratch populated with some data? By default a
column-oriented one is created and I'm aware of the note that the
package is optimized for column-oriented ones, but I'm only interested
in using it for holding my sparse row
Hello everyone,
I am learning R since recently, and as a small exercise I wanted to
write a recursive mergesort. I was extremely surprised to discover that
my sorting, although operational, is deeply inefficient in time. Here is
my code :
> merge <- function(x,y){
> if (is.na(x[1])) return(y
On 19/04/2016 3:39 PM, Gaston wrote:
Hello everyone,
I am learning R since recently, and as a small exercise I wanted to
write a recursive mergesort. I was extremely surprised to discover that
my sorting, although operational, is deeply inefficient in time. Here is
my code :
merge <- function(
Hi,
Here is what I am doing
notGroupedAll <- ddply(data
,~groupColumn
,summarise
,col1_mean=mean(col1)
,col2_mode=Mode(col2) #Function I wrote for getting the
mode shown below
,col3_Range=myIqr(col3)
Hello,
Iam looking for an R solution that can efficiently produce the output shown
below. I can produce this easily in SAS with retain statement and a few lines
of if-then-else logic, etc.. but I am not find anything similar on the Rforum
archives. Below is the logic I am trying to apply to pro
Well, instead of your functions try:
Mode <- function(x) {
tabx <- table(x)
tabx[which.max(tabx)]
}
and use R's IQR function instead of yours.
... so I still don't get why you want to return a character string
instead of a value for the IQR;
and the mode of a sample defined as above is
I do not have the tenacity to decipher your logic, but I would suggest
that you go through an R tutorial or two instead of limiting yourself
to R-Help (not R forum?) archives. You probably are going about it
wrongly in R (I suspect you need indexing). In fact, I would guess
that you probably don't
Hi,
Jumping into this thread mainly on the point of the mode of the distribution,
while also supporting Bert's comments below on theory.
If the vector 'x' that is being passed to this function is an integer vector,
then a tabulation of the integers can yield a 'mode', presuming of course that
Again, IQR returns two both a .25 and a .75 value and it failed, which is
why I didn't use it before. Also, the first function just returns tha same
value repeating. Since they are the same, before the second call, using
the mode function is just a way to grab one value. I could have used
average,
Folks,
I am using the XLConnect package. I can download all the named ranges except a
couple that are defined by the Excel function “Offset”.
For example I have this named range:
=OFFSET(APA!$A$1,0,0,APA!$K$11,3)
I am pretty sure that this won’t work but I thought I would give it a shot
here
???
IQR returns a single number.
> IQR(rnorm(10))
[1] 1.090168
To your 2nd response:
"I could have used average, min, max, they all would have returned the
same thing., "
I can only respond: huh?? Are all your values identical?
You really need to provide a small reproducible example as request
Hi pele,
There are probably more elegant ways to do this using some function,
but this might help:
psdat<-read.table(text="ID DATE ITEM
1 1/1/2014P1
1 1/15/2014 P2
1 1/20/2014 P3
1 1/22/2014 P4
1 3/10/2015 P5
2 1/13/2015 P1
2 1/20/2015 P2
2 1/28/2015 P3
2
I already found a solution, you suggested I try to find a non hacky
solution, which was not really my priority. I should have declined
politely, which I will do now. Or, ifyou just want me to post reproducible
code because you are bored or because you like solving problems then let me
know and I wi
Hello,
Does anyone use UpSetR for set visualization?
I am wanting to re-order the sets in the diagram.
Thanks, Evan
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch
40 matches
Mail list logo