Si SparkR está muy bien pero todavía está en algunas cosas un poco verde.
para la parte de mlib solo se pueden hacer glm:
https://spark.apache.org/docs/latest/sparkr.html#machine-learning
Justo di un pequeño taller de esto en las jornadas de R, aquí tienes los
apuntes:
Hello Bill (and Petr and all),
Thank you very much! That was exactly what I was looking for! I could
have never accomplished that on my own.
Have a great time,
Tagmarie
Am 09.12.2015 um 18:07 schrieb William Dunlap:
You can use the approx() function (in that stats package) to put
5 equally
Hi all,
I want to associate mortality with ~100K SNPs, in 6,500 samples that are
divided up into 60 breeds.
So it's important to account for population stratification in my analysis.
I'm using egscore (the eigenstrat method) for the association (and I've
tried using the polygen and grammar
Dear all
I am trying to fit gam to my data but it keeps giving me errors.
It does not find the covariate ArrivalTime even though it is clearly
defined in the data frame. It happens with any covariate that I put in the
s() term... And not only for this data set, but for any dataset that I try
to
It depends the complexity of your expression. If you are sure you don’t have
nested brackets, and pairs of brackets always match, this will take everything
outside the brackets:
str <- "A1{0}~B0{1} CO{a2}NN{12}”
gsub("\\{[^}]*\\}", " ", str)
Philippe Grosjean
> On 11 Dec 2015, at 14:50,
> On Dec 11, 2015, at 7:50 AM, Adrian Dușa wrote:
>
> For the regexp aficionados, out there:
>
> I need a regular expression to extract either everything within some
> brackets, or everything outside the brackets, in a string.
>
> This would be the test string:
>
Thanks for the reply Don - that's the problem in a nutshell - I'll
repost on r-sig-geo
Mark
On 10/12/15 20:46, MacQueen, Don wrote:
Appears to me that results for the third set of indices you supplied (1,1)
ended up in the third layer of the result. Similarly for the other sets of
Hi all,
I am using spplot for a spatial map.
spplot(hspdf, "CDP", col = "white", col.regions = blue2red(20), sp.layout =
list(l2), at = seq(1,10,1), colorkey = list(space = "bottom", labels =
list(labels = paste(seq(1,10,1)), cex = 1.5)), sub = list("CDP", cex = 1.5,
font = 2))
I have three
Hi All,
I'd like to understand the reason why stopifnot(logical(0) == x) doesn't
(never?) throw an exception, at least in these cases:
stopifnot(logical(0) == 1)
stopifnot(logical(0) == TRUE)
stopifnot(logical(0) == FALSE)
My understanding is that logical(0) is an empty set, so I would expect
See below
On 09/12/2015 18:48, Mario Petretta wrote:
Dear all,
I use metafor package to generate a forest plot showing the weight of each
study in the plot.
I use the code:
library(metafor)
data(dat.bcg)
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, measure="RR",
Hi Diego, I suggest you send me an example offline, along with the
result of sessionInfo(), best, Simon
On 11/12/15 09:25, Diego Pavon wrote:
Dear all
I am trying to fit gam to my data but it keeps giving me errors.
It does not find the covariate ArrivalTime even though it is clearly
On Fri, Dec 11, 2015 at 8:10 AM, David Winsemius wrote:
>
>> On Dec 11, 2015, at 5:38 AM, Dario Beraldi wrote:
>>
>> Hi All,
>>
>> I'd like to understand the reason why stopifnot(logical(0) == x) doesn't
>> (never?) throw an exception, at least in
The gsub function is your friend.
s <- "A1{0}~B0{1} CO{a2}NN{12}"
gsub( "([^{}]*)\\{([^{}]*)\\}", "\\1 ", s )
gsub( "([^{}]*)\\{([^{}]*)\\}", "\\2 ", s )
but keep in mind that there are many resources on the Internet for learning
about regular expressions... they are hardly R-specific.
--
Hi,
Needless to say, Jeff's solution is easier than my second one. I was wrestling
in dealing with the greedy nature of regex's and so shifted to thinking about
the use of the functions that I proposed in the second scenario.
Also, I was a bit hypo-caffeinated ... ;-)
Regards,
Marc
> On
The goal of the comparison operators is to obtain a logical value. Why compare
logical values... you clearly already have that?
stopifnot( logicalvariable ) and
stopifnot( !logicalvariable )
are sensible, but not
stopifnot( logicalvariable == TRUE ) or
stopifnot( logicalvariable == FALSE )
Thanks very much, Marc and Jeff.
Jeff's solutions seem to be simple one liners. I really need to learn these
things, too powerful to ignore.
Thank you very much,
Adrian
On Fri, Dec 11, 2015 at 5:05 PM, Jeff Newmiller
wrote:
> The gsub function is your friend.
>
> s <-
I think the inspection of the "stopifnot()" source code may help.
> stopifnot
function (...)
{
n <- length(ll <- list(...))
if (n == 0L)
return(invisible())
mc <- match.call()
for (i in 1L:n) if (!(is.logical(r <- ll[[i]]) && !anyNA(r) &&
all(r))) {
ch <-
> On Dec 11, 2015, at 5:38 AM, Dario Beraldi wrote:
>
> Hi All,
>
> I'd like to understand the reason why stopifnot(logical(0) == x) doesn't
> (never?) throw an exception, at least in these cases:
The usual way to test for a length-0 logical object is to use length():
Just FYI: This one slipped through CRAN checks. We are in contact with
the maintainer.
Best,
Uwe Ligges
On 11.12.2015 22:11, Marc Schwartz wrote:
On Dec 11, 2015, at 2:40 PM, Duncan Murdoch wrote:
On 11/12/2015 2:36 PM, William Dunlap wrote:
stats::sigma was
I think we need to consult a lawyer on this one ... :-)
?Extract says that an empty index is "most often used" ... . This is a
vague comment on use, **not** an exact specification of what x[] does.
The R language manual appears to be out of date or wrong: it specifies
that "irrelevant"
Hello,
In ?Extract, one can read "An empty index selects all values: this is
most often used to replace all the entries but keep the attributes"
No example is given but if x a vector I interpret this sentence as
"x[]". And in fact, all attributes seem to be preserved by this indexing.
But in
On 12/12/15 09:26, Frank Harrell wrote:
Rolf I believe \textsf is the correct font to use for the symbol R but
not necessarily for the names of R variables and functions. I'd like
more discussion about that.
I agree; the names of R variables and functions are *code* and should be
rendered in
> On Dec 11, 2015, at 2:40 PM, Duncan Murdoch wrote:
>
> On 11/12/2015 2:36 PM, William Dunlap wrote:
>> stats::sigma was added to R recently. It is is R-devel now, I don't know
>> about yesterday's R-3.2.3.
>
> As Rich saw, it's not. pbkrtest should have "Depends:
Since 2008, Revolution Analytics (and now Microsoft) staff and guests have
written about R every weekday at the
Revolutions blog:
http://blog.revolutionanalytics.com
and every month I post a summary of articles from the previous month of
particular interest to readers of r-help.
In case you
Hi.
I have two question!
1) Is there any way to draw a dendrogram for k-modes?
I used klaR pacakges for kmodes analysis to deal with categorical variables.
i heard about the "Clustergram"
Url = {http://www.schonlau.net/clustergram.html}
but i only found the example of Clustergram for
Hi.
How can I found the specific outcome of weighted k-modes?
i did the cluster analysis with weighted kmodes(klaR packages)
like..
==
a-kmodes(data, 5, TRUE)
==
What i want to see is not only the result of clustering but the result of
"weight for each
The reason is probably that
any(logical())
and
any(!logical())
return FALSE (there are no TRUEs in logical(0)).
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, Dec 11, 2015 at 5:38 AM, Dario Beraldi wrote:
> Hi All,
>
> I'd like to understand the reason why
i need to do a quadratic plateau. I saw the code and try to put my datas, but i
had some errors.
This is my code ,
for (mun in 1:dm[1]){ # for (mun in 8:dm[1]){if(nu[mun]>= nmin) {
y1=arquivov[mun,ncv[mun]:27] vy = as.numeric(y1)
x=seq(1:nu[mun])
On Fri, 11 Dec 2015, William Dunlap wrote:
stats::sigma was added to R recently. It is is R-devel now, I don't know
about yesterday's R-3.2.3.
Bill,
Okay. I intended to update R after the packages. Will run version upgrade,
then see how the package update goes. Result will be reported
Dears,
I'm having a weird behaviours when setting arguments in functions.
fn <- function(x, st="mean", b=NULL, col.range="black", ...){
dots <- list(...)
cat("col.range =", col.range, "\n")
cat("dots =\n")
print(dots)
}
fn(1, b=2,col="red")
# Output
col.range = red
dots =
list()
Why
On 11/12/2015 11:49 AM, Tyler Auerbeck wrote:
We're currently having an odd issue on an installation of Windows R 2.15.1
over Citrix. Occasionally we will see the application dissapear. Sometimes
this will happen immediately, after a few minutes, etc. It's never after
the exact same action or
> On Dec 11, 2015, at 9:40 AM, Mario José Marques-Azevedo
> wrote:
>
> Dears,
>
> I'm having a weird behaviours when setting arguments in functions.
>
> fn <- function(x, st="mean", b=NULL, col.range="black", ...){
> dots <- list(...)
> cat("col.range =", col.range,
We're currently having an odd issue on an installation of Windows R 2.15.1
over Citrix. Occasionally we will see the application dissapear. Sometimes
this will happen immediately, after a few minutes, etc. It's never after
the exact same action or same period of time. I've looked at the even logs,
On 11/12/2015 12:40 PM, Mario José Marques-Azevedo wrote:
Dears,
I'm having a weird behaviours when setting arguments in functions.
fn <- function(x, st="mean", b=NULL, col.range="black", ...){
dots <- list(...)
cat("col.range =", col.range, "\n")
cat("dots =\n")
print(dots)
}
For the regexp aficionados, out there:
I need a regular expression to extract either everything within some
brackets, or everything outside the brackets, in a string.
This would be the test string:
"A1{0}~B0{1} CO{a2}NN{12}"
Everything outside the brackets would be:
"A1 ~B0 CO NN"
and
On 11/12/2015 1:52 PM, Mario José Marques-Azevedo wrote:
Hi Duncan and David,
Thank you for explanation. I'm really disappointed with this R "resource".
I think that partial match, mainly in function args, must be optional and
not default. We can have many problems and lost hours find errors
I normally don't respond to this sort of rant, but I will here. Feel
free to ignore.
My response is: sour grapes! **I'm really disappointed** that you
failed to read (carefully) the documents (R language manual) or
tutorials (numerous and ubiquitous) that clearly explain this. IMO,
you are
On Fri, 11 Dec 2015, Duncan Murdoch wrote:
I don't see that. You need to give more details: I'd start with
sessionInfo(), and the version number of the pbkrtest package that you're
trying to install. (If R is downloading it for you,
available.packages()["pbkrtest",] will give lots of useful
stats::sigma was added to R recently. It is is R-devel now, I don't know
about yesterday's R-3.2.3.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Fri, Dec 11, 2015 at 11:05 AM, Duncan Murdoch
wrote:
> On 11/12/2015 1:44 PM, Rich Shepard wrote:
>>
>> Trying to
On Fri, 11 Dec 2015, Rich Shepard wrote:
On Fri, 11 Dec 2015, William Dunlap wrote:
stats::sigma was added to R recently. It is is R-devel now, I don't know
about yesterday's R-3.2.3.
Okay. I intended to update R after the packages. Will run version upgrade,
then see how the package
On 11/12/2015 2:36 PM, William Dunlap wrote:
stats::sigma was added to R recently. It is is R-devel now, I don't know
about yesterday's R-3.2.3.
As Rich saw, it's not. pbkrtest should have "Depends: R (>= 3.3.0)"
instead of "Depends: R (>= 3.0.0)" in its DESCRIPTION.
You can see it failed
Rolf I believe \textsf is the correct font to use for the symbol R but
not necessarily for the names of R variables and functions. I'd like
more discussion about that.
Frank
--
Frank E Harrell Jr Professor and
On Fri, Dec 11, 2015 at 1:13 PM, Duncan Murdoch
wrote:
> On 11/12/2015 1:52 PM, Mario José Marques-Azevedo wrote:
>>
>> Hi Duncan and David,
>>
>> Thank you for explanation. I'm really disappointed with this R "resource".
>> I think that partial match, mainly in function
Trying to update package pbkrtest failed because of a missing object in
another namespace. Not having experienced this issue before now I don't know
what to do to fix the problem. Here's the story:
* installing *source* package ‘pbkrtest’ ...
** package ‘pbkrtest’ successfully unpacked and MD5
Hi Duncan and David,
Thank you for explanation. I'm really disappointed with this R "resource".
I think that partial match, mainly in function args, must be optional and
not default. We can have many problems and lost hours find errors (it occur
with me). I tried to find a solution to disable
On 11/12/2015 1:44 PM, Rich Shepard wrote:
Trying to update package pbkrtest failed because of a missing object in
another namespace. Not having experienced this issue before now I don't know
what to do to fix the problem. Here's the story:
* installing *source* package ‘pbkrtest’ ...
**
Hi all,
Bert it's all ok! My disappointments are blame of my expectations and not
of R. I started with C and Php and learned to be explicit, 'computer do not
to guess what you want', but R do this 'favour' for us. I love work on R
and for my previous experiences I not expected this behaviour
Actually, Marc, I think your solution might be more useful than it first
seemed.
The correct usage of a string would be for someone to provide complete
pairs of outside and inside brackets information, like:
A{1} B{0}
But if a user doesn't provide this "standard" notation, as in:
A{1} B
then
48 matches
Mail list logo