Displaying 20 results from an estimated 118 matches for "reformulate".
2012 Oct 12
7
ifelse reformulation
Hi, i'm trying to simplify some R code but i got stucked in this:
test<-data.frame(cbind(id,x1,x2,x3,x4,x5,x6,x7))
test
> test
id x1 x2 x3 x4 x5 x6 x7
1 1 36 26 21 32 31 27 31
2 2 45 21 46 50 22 36 29
3 3 49 47 35 44 33 31 46
4 4 42 32 38 28 39 45 32
5 5 29 42 39 48 25 35 34
6 6 39 31 30 37 46 43 44
7 7 41 40 25 23 42 40 24
8 8 27 29 47 34 26 38 28
9 9 25 35 29 36
2019 Apr 04
2
Bug in the "reformulate" function in stats package
...; > which shows that variables with spaces in them (or otherwise
> > 'non-syntactic', i.e. not satisfying the constraints of legal R symbols)
> > can be handled by protecting them with backticks (``)
>
> > ## using non-syntactic names:
> > reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-"))
>
> > It seems to me there could be room for a *documentation* patch (stating
> > explicitly that if termlabels has length > 1 its elements are
> > concatenated with "+",...
2019 Mar 29
2
Bug in the "reformulate" function in stats package
...suspect that the issue is addressed (obliquely) in the examples,
which shows that variables with spaces in them (or otherwise
'non-syntactic', i.e. not satisfying the constraints of legal R symbols)
can be handled by protecting them with backticks (``)
## using non-syntactic names:
reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-"))
It seems to me there could be room for a *documentation* patch (stating
explicitly that if termlabels has length > 1 its elements are
concatenated with "+", and explicitly stating that non-syntactic name...
2019 Apr 05
0
Bug in the "reformulate" function in stats package
...ing opened at delete.response.Rd:78:63)
In addition: Warning message:
In parse_Rd("/u/maechler/R/D/r-devel/R/src/library/stats/man/delete.response.Rd", :
newline within quoted string at delete.response.Rd:74
and even I needed more than a minute to find out that the
culprit was that
reformulate(sprintf("`%s`", x))
is not ok in *.Rd and must be
reformulate(sprintf("`\%s`", x))
---------
> (I think .txt files work OK as attachments to the list?)
yes, typically -- what really counts is if your e-mail program
marks them with MIME-type 'text/plain'
a...
2019 Apr 04
0
Bug in the "reformulate" function in stats package
...bliquely) in the examples,
> which shows that variables with spaces in them (or otherwise
> 'non-syntactic', i.e. not satisfying the constraints of legal R symbols)
> can be handled by protecting them with backticks (``)
> ## using non-syntactic names:
> reformulate(c("`P/E`", "`% Growth`"), response = as.name("+-"))
> It seems to me there could be room for a *documentation* patch (stating
> explicitly that if termlabels has length > 1 its elements are
> concatenated with "+", and explicitly stat...
2019 Apr 18
3
Bug in the "reformulate" function in stats package
...> In addition: Warning message:
> In parse_Rd("/u/maechler/R/D/r-devel/R/src/library/stats/man/delete.response.Rd", :
> newline within quoted string at delete.response.Rd:74
>
> and even I needed more than a minute to find out that the
> culprit was that
>
> reformulate(sprintf("`%s`", x))
>
> is not ok in *.Rd and must be
>
> reformulate(sprintf("`\%s`", x))
>
> ---------
>
> > (I think .txt files work OK as attachments to the list?)
>
> yes, typically -- what really counts is if your e-mail program
>...
2019 Apr 18
0
Bug in the "reformulate" function in stats package
...>> parse_Rd("/u/maechler/R/D/r-devel/R/src/library/stats/man/delete.response.Rd",?
>> :
>> ?? newline within quoted string at delete.response.Rd:74
>>
>> and even I needed more than a minute to find out that the
>> culprit was that
>>
>> ?? reformulate(sprintf("`%s`", x))
>>
>> is not ok in *.Rd? and must be
>>
>> ?? reformulate(sprintf("`\%s`", x))
>>
>> ---------
>>
>> ?? > (I think .txt files work OK as attachments to the list?)
>>
>> yes, typically -- what real...
2011 Aug 19
3
ATSP to TSP reformulation
Greetings,
I am having trouble getting the function reformulate_ATSP_as_TSP to work for
me. I have provided a simple example of some of the code I've been using.
In particular, I'm not sure why I'm getting the error
"Error in dimnames(tsp) <- list(lab, lab) :
length of 'dimnames' [1] not equal to array extent"
since I cr...
2019 Mar 29
2
Bug in the "reformulate" function in stats package
...direction to developers. I don't mind whichever is
preferred here.
Best,
Saren
On 29.03.19 09:29, Martin Maechler wrote:
>>>>>> Saren Tasciyan
>>>>>> on Thu, 28 Mar 2019 17:02:10 +0100 writes:
> > Hi,
> > I have found a bug in reformulate function and have a solution for it. I
> > was wondering, where I can submit it?
>
> > Best,
> > Saren
>
>
> Well, you could have given a small reproducible example
> depicting the bug, notably when posting here:
> Just a prose text with no R code...
2019 Apr 18
1
Bug in the "reformulate" function in stats package
...performance
> issues, will not break in unusual cases ... ?
--
Saren Tasciyan
/PhD Student / Sixt Group/
Institute of Science and Technology Austria
Am Campus 1
3400 Klosterneuburg, Austria
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: reformulate_solution.txt
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20190418/766f0577/attachment.txt>
2019 Mar 28
2
Bug in the "reformulate" function in stats package
Hi,
I have found a bug in reformulate function and have a solution for it. I
was wondering, where I can submit it?
Best,
Saren
--
Saren Tasciyan
/PhD Student / Sixt Group/
Institute of Science and Technology Austria
Am Campus 1
3400 Klosterneuburg, Austria
2019 Mar 29
0
Bug in the "reformulate" function in stats package
>>>>> Saren Tasciyan
>>>>> on Thu, 28 Mar 2019 17:02:10 +0100 writes:
> Hi,
> I have found a bug in reformulate function and have a solution for it. I
> was wondering, where I can submit it?
> Best,
> Saren
Well, you could have given a small reproducible example
depicting the bug, notably when posting here:
Just a prose text with no R code or other technical content is
almost always...
2019 Mar 29
0
Bug in the "reformulate" function in stats package
...er is preferred here.
>
> Best,
>
> Saren
>
>
> On 29.03.19 09:29, Martin Maechler wrote:
>>>>>>> Saren Tasciyan
>>>>>>> ???? on Thu, 28 Mar 2019 17:02:10 +0100 writes:
>> ???? > Hi,
>> ???? > I have found a bug in reformulate function and have a solution for it. I
>> ???? > was wondering, where I can submit it?
>>
>> ???? > Best,
>> ???? > Saren
>>
>>
>> Well, you could have given a small reproducible example
>> depicting the bug, notably when posting here:
>&g...
2007 Mar 02
3
Reformulated matrices dimensions limitation problem
First I wanted to thank both Marc Schwartz Greg Snow and for their reply.
Then I needed to add a level of complexity to the problem.
I would be able to create the biggest possible matrix.
In other way does it exist a method to ask smthing like the following :
max number of rows for a matrix if column=x?
Thank you
------------------------------------------------------
Passa a Infostrada.
2016 Aug 24
3
Request suggestions about how to remove redundencies caused by SCEV expansion fundementally
...s smart as" SCEV in most cases.
>
> — Sanjoy
SCEV is super useful as an analysis without SCEVExpander. The only real issue with SCEV itself is invalidating the expressions.
I’ve always thought SCEVExpander is very dangerous to use directly. Ideally the SCEV expression should always be reformulated based on existing IR values before expanding. It would be nice if that was provided as a layer of functionality on top of SCEVExpander.
-Andy
2019 Oct 04
0
Error in [.terms
...e code in models.R
<<>>=
`[.terms` <- function (termobj, i)
{
??? resp <- if (attr(termobj, "response")) termobj[[2L]]
??? newformula <- attr(termobj, "term.labels")[i]
??? if (length(newformula) == 0L) newformula <- "1"
??? newformula <- reformulate(newformula, resp, attr(termobj, "intercept"),
environment(termobj))
??? result <- terms(newformula, specials = names(attr(termobj, "specials")))
??? # Edit the optional attributes
}
@
The use of reformulate() is a nice trick.? However, the index reported in the specials...
2009 Nov 18
2
Website
Hey!
Our flac's official website is looking so old, isn't it?
Let's reformulate it. I wanna do this, anyone else?
Regards,
Lucas Correia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20091118/cabc7c52/attachment.htm
2009 Mar 15
2
Sun ONE and Samba
Has anyone had success using Sun ONE as an LDAP (authentication)
back-end to Samba (preferably 4.0, but 3.3 would be fine)?
I've found people who've tried and given up.
Sun itself hasn't provided answers, but I haven't given up on them;
I'll keep reformulating my questions, and asking again.
One speculation on my part is that, if I can just figure out where in
Sun ONE the
2004 Nov 23
2
IFELSE across large array?
Dear all,
As our previous email did not get any response, we try again with a
reformulated question!
We are trying to do something which needs an efficient loop over a huge
array, possibly functions such as apply and related (tapply,
lapply...?), but can't really understand syntax and examples in
practice...i.e. cant' make it work.
to be more specific:
we are trying to apply...
2016 Mar 31
1
LoopStrengthReduce.cpp
...the
> work for hardware loop generation. I have thought about it, but I
> won't be able to do anything in the short term.
>
> -Krzysztof
>
I think a first and useful step would be to let targets optionally have
the loop induction variable which controls the back-branching be
reformulated as a decrement towards zero with a -1 step. Should this be
an extension of LSR, or should it be a simple beginning of a HW-loop
pass running after it?
/Jonas