Hello ,
I want to try R for statistics.
Therefore, I defined a function f with parameters m and k, which calculates
a to sqrt(x) proportional density function:
f <- function(m,k)((1/(sum(sqrt(1:m*sqrt(k))
A function F sums the results in order to get a distribution function:
F <- function(
Hi,
I am trying to fit the parameters of a distribution to my data using
entropy optimization. For this I am using the first 4 moments of my data
and trying to calibrate them to the most suitable distribution by
maximizing entropy. Since the moment constraints are nonlinear, I am trying
to use pac
Hi Kathryn,
Well, there's always:
make_num_seq<-function(x=list(c(from=1,to=1,by=1,each=1,times=1))) {
return(c(unlist(lapply(x,
function(x) return(rep(seq(x[1],x[2],by=x[3]),each=x[4],times=x[5]))
}
make_num_seq(list(c(1,3,1,2,4),c(4,5,1,4,3),c(6,9,1,3,2)))
Jim
On Sun, May 24, 2015 at 7
Hi, R-Help members,
I'm doing some webscraping. This time i need the image (url) of the
products of an ecommerce.
I can get the nodes where the urls are, but when trying to extract the URL,
i need to take 1
additional step:
"src" vs "data-original": in the source code, some urls are in the "src"
I agree with Bert. It is not clear what is generating a need for this
sequence, so it
is difficult to see what aspects need to be adjustable. If this specific
sequence is the only one you need, then Bert's code looks "elegant" to
me.
One note: "c" is a base function in R. Functions in R are fi
Elegance is in the eye of the beholder.
But I would have thought that anything you do would be some variation of:
c(rep(1:3,e=2,time=4),
rep(4:5,e=4,time=3),
rep(6:9,e=3,time=2) )
## yielding
[1] 1 1 2 2 3 3 1 1 2 2 3 3 1 1 2 2 3 3 1 1 2 2 3 3 4 4 4 4 5 5 5 5 4
4 4 4 5 5 5 5 4
[42] 4 4 4 5 5 5
Apologies. I assumed it was widely known. My mistake. The link is www.ta-lib.org
> On May 23, 2015, at 5:57 PM, John Kane wrote:
>
> "We all know the power and usefulness of TA-Lib. "
>
> Well no, I've never even heard of it before. Can you give us a link or
> something?
> John Kane
> Kin
Actually your approach doesn't get around making a matrix of that size. If you
look at the code of urnsamples, (in prob:::urnsamples.default), you'll find
that it creates an intermediate object using expand.grid(). So you might as
well create the matrix yourself, extract all rows for which max(t
Terribly uninformative web-site but it does give us some idea. Thanks
John Kane
Kingston ON Canada
> -Original Message-
> From: c_c_ribe...@hotmail.com
> Sent: Sat, 23 May 2015 19:50:26 +0200
> To: jrkrid...@inbox.com
> Subject: Re: [R] Looking for help finding a wrapper/package to use T
forgot to include the list on cc
Forwarded Message
Subject:Re: [R] compiling R with tuned BLAS
Date: Fri, 22 May 2015 10:40:13 -0400
From: Michael Gooch
To: Charles Determan
I am not an administrative user. I'm using a university cluster and have
to build e
Hi Clare,
I suspect that we need to see some data in dput() format. See the links I sent
earlier or have a look at ?dput for more information.
John Kane
Kingston ON Canada
> -Original Message-
> From: claire.oq...@uky.edu
> Sent: Sat, 23 May 2015 07:40:03 -0400
> To: lig...@statistik.t
"We all know the power and usefulness of TA-Lib. "
Well no, I've never even heard of it before. Can you give us a link or
something?
John Kane
Kingston ON Canada
> -Original Message-
> From: c_c_ribe...@hotmail.com
> Sent: Sat, 23 May 2015 17:13:15 +0200
> To: r-help@r-project.org
> S
Dear members,
We all know the power and usefulness of TA-Lib. There is a python wrapper for
it but, despite all my searching, I am unable to find it for R. Does anyone
know why? I am starting learning and using RStudio and would really like to be
able to call the TA-Lib functions from RStudio.
Thank you for that information. I have found an rQTL help group and will
try to see if folks over there can help. I apologize for not doing a very
good job of communicating my issues over here. I will try my best to
produce a reproducible example and post it here if I don't make any
progress on re
Sorry, I'll try to provide more detail about what I have done so far with
code and any relevant output results.
>library(qtl)
>sawfly.cross <- read.cross(format="csv",
file="~/Desktop/Sawfly_data/QTL/Sawfly_QTL.csv", na.strings="NA",
genotypes=c("A", "B"), alleles=c("A", "B"), estimate.map=F)
--Re
Hello,
i need some help to use urnsamples from the package "prob".
At the moment i use it in this way
A<-as.matrix(urnsamples(1:25, size = 7,ordered=FALSE,replace=TRUE))
So I get the numbers 1 to 25 and choose 7 of them, but it is possible to get
one number more than one time.
But I want addi
Dear R users,
I'd like to create a sequence/vector, for example,
1 1 2 2 3 3 1 1 2 2 3 3 1 1 2 2 3 3 1 1 2 2 3 3 4 4 4 4 5 5 5 5 4 4 4
4 5 5 5 5 4 4 4 4 5 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 6 6 6 7 7 7 8 8 8 9
9 9
So I did like this below.
a <- 4
b <- 3
c <- 2
grp <- c( rep(1:b, each=c,
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
and http://adv-r.had.co.nz/Reproducibility.html
John Kane
Kingston ON Canada
> -Original Message-
> From: lig...@statistik.tu-dortmund.de
> Sent: Sat, 23 May 2015 09:36:15 +0200
> To: claire.oq...@uky
Read R-help. :) Seriously, you will see all kinds of problems and questions.
Some of the simpler ones you can try yourself and see how your approach matches
other peoples.
Google around for some R blogs and see if you find any that are useful.
https://learnr.wordpress.com/ might be useful. IIR
Dear Peter,
On Sat, 23 May 2015 08:40:52 +0200
Peter van Summeren wrote:
> Thanks to all who answered me,
> After reading all the mails I got, I did the following:- I logged in as root
> in Debian Jessie- I started Rcmdr. it told me that some files are missing,
> it offered me to get them,
Hi Mohammad
Welcome to the R-help list.
There probably is a fairly easy way to what you want but I think we probably
need a bit more background information on what you are trying to achieve. I
know I'm not exactly clear on your decision rule(s).
It would also be very useful to see some actu
On Fri, 22 May 2015, varun joshi wrote:
What should I do to learn gradually?
Not sure how one gradually learns; I suppose it depends on what sort of
applications one wants to develop and the most effective means by which one
learns. Regardless, a good place to start is by buying and reading
Many thanks
> Date: Sat, 23 May 2015 11:55:07 +0200
> From: lig...@statistik.tu-dortmund.de
> To: ragi...@hotmail.com; r-help@r-project.org
> Subject: Re: [R] order matrix regarding its content.
>
>
>
> On 23.05.2015 11:10, Ragia Ibrahim wrote:
> > Dear group,
> > I have the following matrix
>
Thanks to all who answered me,
After reading all the mails I got, I did the following:- I logged in as root in
Debian Jessie- I started Rcmdr. it told me that some files are missing, it
offered me to get them,I did not fill in anything, just said ok, I had to
choose a website from wher
On 23.05.2015 11:10, Ragia Ibrahim wrote:
Dear group,
I have the following matrix
1 2 3 4 5 6 7 8 9 10
1 0 1 1 1 1 1 1 1 1 1
2 0 0 0 1 1 0 0 0 0 0
3 0 0 0 1 1 1 1 1 1 1
4 0 0 0 0 1 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0 0
6 0 0 0 0 0 0 1 1 1 1
7 0 0 0 0 0 0 0 1 1 0
8 0 0 0 0 0 0 0 0 1
Hello,
Maybe something like the following. (Assuming your matrix is named 'mat')
mat[order(rowSums(mat)), ]
Hope this helps,
Rui Barradas
Em 23-05-2015 10:10, Ragia Ibrahim escreveu:
Dear group,
I have the following matrix
1 2 3 4 5 6 7 8 9 10
1 0 1 1 1 1 1 1 1 1 1
2 0 0 0 1 1 0 0
Dear group,
I have the following matrix
1 2 3 4 5 6 7 8 9 10
1 0 1 1 1 1 1 1 1 1 1
2 0 0 0 1 1 0 0 0 0 0
3 0 0 0 1 1 1 1 1 1 1
4 0 0 0 0 1 0 0 0 0 0
5 0 0 0 0 0 0 0 0 0 0
6 0 0 0 0 0 0 1 1 1 1
7 0 0 0 0 0 0 0 1 1 0
8 0 0 0 0 0 0 0 0 1 0
9 1 1 1 1 1 1 1 1 1 1
10 0 0 0 0 0 0 0 0
On 23.05.2015 01:07, Claire O'Quin wrote:
Hi There,
I am running a stepwise QTL for a backcross and got the following warning
message:
Warning message:
In lastout[[i]] - (max(lastout[[i]]) - dropresult[rn == qn[i], 3]) :
longer object length is not a multiple of shorter object length
So
28 matches
Mail list logo