Displaying 20 results from an estimated 35 matches for "sexier".
2024 Sep 27
7
Is there a sexy way ...?
...ector v of length 15 such that the entries of v,
corresponding to level l of f are the entries of x[[l]]. I.e. I want
v to equal
c(7, 2, 6, 13, 5, 9, 1, 14, 15, 4, 8, 12, 10, 11, 3)
I can create v "easily enough", using say, a for-loop. It seems to me,
though, that there should be sexier (single command) way of achieving
the desired result. However I cannot devise one.
Can anyone point me in the right direction? Thanks.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
+64-9-373-759...
2006 Mar 23
3
Intercepts in linear models.
...f course''. The cflag just gets treated
as another predictor and because it is of the wrong length
an error is generated.
The best I could come up with was
lm(as.formula(paste("y ~ x -",cflag)))
Which is kludgy. It (of course!) also be done using an
if statement.
Is there a sexier way?
cheers,
Rolf Turner
2024 Sep 28
1
Is there a sexy way ...?
...can do this very concisely one might argue
that it is superfluous to bring in an extra library for this. I think
Bert's solution (
`c(do.call(rbind, x))`) is great if `f` has no substantive meaning, and
Deepayan's solution (`unsplit(x, f)`) is perfect in case it does - does
not get much sexier than that, I am afraid.
Best,
Lennart
Am 27.09.24 um 05:55 schrieb Rolf Turner:
> I have (toy example):
>
> x <- list(`1` = c(7, 13, 1, 4, 10),
> `2` = c(2, 5, 14, 8, 11),
> `3` = c(6, 9, 15, 12, 3))
> and
>
> f <- factor(rep(1:3,5))
>
>...
2007 Oct 03
3
Factor levels.
...present in the
factor. But if ``Scholarship'' is absent
(as if often is) then I get an error.
I can do a workaround such as
fff <- factor(c("U","A","S")[fff],levels=c("U","A","S"))
but this seems kludgy to me.
Is there a sexier way?
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confidenti...{{dropped}}
2008 Feb 20
2
Data frame with 0 rows.
For reasons best known only to myself ( :-) ) I wish to create a data
frame with 0 rows and 9 columns.
The best I've been able to come up with is:
junk <- as.data.frame(matrix(0,nrow=0,ncol=9))
Is there a sexier way?
cheers,
Rolf
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
2012 Oct 05
1
Format of numbers in plotmath expressions.
...)
plot(1:10)
legend("bottomright",pch=1:5,legend=parse(text=leg))
Note that the use of "parse" (pace Thomas Lumley! :-) ) is required ---
"legend=leg" does NOT work.
Getting here required an enormous amount of trial and error. And it seems
pretty kludgy.
Is there a sexier way?
R. T.
2024 Sep 28
1
Is there a sexy way ...?
...y one might argue
> that it is superfluous to bring in an extra library for this. I think
> Bert's solution (
> `c(do.call(rbind, x))`) is great if `f` has no substantive meaning,
> and Deepayan's solution (`unsplit(x, f)`) is perfect in case it does -
> does not get much sexier than that, I am afraid.
>
> Best,
>
> Lennart
>
>
> Am 27.09.24 um 05:55 schrieb Rolf Turner:
>> I have (toy example):
>>
>> x <- list(`1` = c(7, 13, 1, 4, 10),
>> ?????????? `2` = c(2, 5,? 14, 8, 11),
>> ?????????? `3` = c(6, 9, 15, 12, 3))
>...
2024 Sep 28
1
Is there a sexy way ...?
...y one might argue
> that it is superfluous to bring in an extra library for this. I think
> Bert's solution (
> `c(do.call(rbind, x))`) is great if `f` has no substantive meaning,
> and Deepayan's solution (`unsplit(x, f)`) is perfect in case it does -
> does not get much sexier than that, I am afraid.
>
> Best,
>
> Lennart
>
>
> Am 27.09.24 um 05:55 schrieb Rolf Turner:
>> I have (toy example):
>>
>> x <- list(`1` = c(7, 13, 1, 4, 10),
>> `2` = c(2, 5, 14, 8, 11),
>> `3` = c(6, 9, 15, 12, 3))
>...
2024 Sep 28
2
Is there a sexy way ...?
...; > that it is superfluous to bring in an extra library for this. I think
> > Bert's solution (
> > `c(do.call(rbind, x))`) is great if `f` has no substantive meaning,
> > and Deepayan's solution (`unsplit(x, f)`) is perfect in case it does -
> > does not get much sexier than that, I am afraid.
> >
> > Best,
> >
> > Lennart
> >
> >
> > Am 27.09.24 um 05:55 schrieb Rolf Turner:
> >> I have (toy example):
> >>
> >> x <- list(`1` = c(7, 13, 1, 4, 10),
> >> `2` = c(2, 5, 14, 8,...
2006 Jun 23
2
Generate Models & Controllers from Ruby program
...ave 4 methods, and
the database will always have the same number of fields. I will
probably create the database through create_table or a direct SQL
command.
My question is this - is there a method that I can call to create the
model and controllers? Would it be easier/simpler/cleaner/better/sexier
to have the current (main) model create dynamic methods? If so, how can
I do that?
Domo arigato in advance.
Lisa
--
Posted via http://www.ruby-forum.com/.
2005 Jun 06
1
Missing values in argument of .Fortran.
...he way I am thinking of proceeding is along the xlines of:
ymiss <- is.na(y)
rslt <- .Fortran(
"foo",
NAOK=TRUE,
as.double(y),
as.logical(ymiss),
etc,
etc
)
and inside ``foo'' have a logical branch based on the value of
xmiss(i).
Questions:
(1) Is there a sexier way to proceed? E.g. is it possible
within (g77) fortran to detect the fact that y(i) is/was an
NA (or not) and make the nature of y(i) the basis of an
if-statement?
(2) Are there any lurking pitfalls in the use of the NAOK=TRUE
argument?
(3) Is there an entirely different and better way t...
2024 Sep 29
1
Is there a sexy way ...?
Admit it, Rolf. Haven't you wondered if S, in a more private way, is sexier than R?
OK, kidding aside, we have talked this to death.
Just FYI, the conversation was stimulating for some of us and I have continued on my own and located functions I see as useful in the stringi and stringr packages to make my silly version ever less silly! LOL!
-----Original Message-----
F...
2008 May 16
1
Making slope coefficients ``relative to 0''.
...are of course several work-arounds. (E.g. calculate my b_i-
hats and their
standard errors from the information obtained from the usual model
structure.
Or set up my own dummy variable to regress upon. Easy enough, and I
could do that.)
I just wanted to know for sure that there wasn't a sexier way, using
some aspect
of the formula machinery with which I am not yet familiar.
Thanks for any insights.
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
2024 Sep 27
1
Is there a sexy way ...?
...].? I.e. I want
>>> v to equal
>>>
>>> ???? c(7, 2, 6, 13, 5, 9, 1, 14, 15, 4, 8, 12, 10, 11, 3)
>>>
>>> I can create v "easily enough", using say, a for-loop.? It seems to me,
>>> though, that there should be sexier (single command) way of achieving
>>> the desired result.? However I cannot devise one.
>>>
>>
>> Don't you find a for loop's naked display of intention to be sexy?
>>
>> Duncan Murdoch
>>
> --
>...
2007 Feb 27
2
Preprocessor denoise. Does it work?
...ess call. But I will say that, given
minimal testing, the output quality doesn't seem to suffer at all.
And the lack of the very loud keyboard pops and squeals is a real
improvement.
I guess I don't understand your resistance to squelch, it's a very
well-tested idiom. Sure, there are sexier algorithms out there, but
there's still room for squelch in a modern application.
Andy
2024 Sep 28
1
Is there a sexy way ...?
...y one might argue
> that it is superfluous to bring in an extra library for this. I think
> Bert's solution (
> `c(do.call(rbind, x))`) is great if `f` has no substantive meaning,
> and Deepayan's solution (`unsplit(x, f)`) is perfect in case it does -
> does not get much sexier than that, I am afraid.
>
> Best,
>
> Lennart
>
>
> Am 27.09.24 um 05:55 schrieb Rolf Turner:
>> I have (toy example):
>>
>> x <- list(`1` = c(7, 13, 1, 4, 10),
>> `2` = c(2, 5, 14, 8, 11),
>> `3` = c(6, 9, 15, 12, 3))
>...
2007 Feb 27
0
Preprocessor denoise. Does it work?
...about also varying the SNR from 0 dB to 30 dB. Still perfect performance
across the range? If so, please submit to
http://www.ieee.org/organizations/society/sp/infotsa.html
...
> I guess I don't understand your resistance to squelch, it's a very
> well-tested idiom. Sure, there are sexier algorithms out there, but
> there's still room for squelch in a modern application.
As I mentioned before, if you find a good algorithm that'll work across
any (or a good range of) input level and SNR, I'll be quite happy to
consider it.
Jean-Marc
2024 Sep 29
1
Is there a sexy way ...?
On Sat, 28 Sep 2024 10:26:31 +0100
CALUM POLWART <polc1410 at gmail.com> wrote:
> Avi
>
> I fear this was all a huge social experiment.
>
> Testing if a post titled "sexy way" would increase engagement...
<SNIP>
I conjecture that this conjecture was tongue-in-cheek. Be that as it
were ??, let me assure everyone that such was not my intention. The
usage
2005 Dec 20
0
Category select list suggestions
...on a category in the left box, it goes to the
right box an vice-versa. When the user clicks a save button, the
categories in the right side box are saved.
I can re-implement my js code on my Rails site, but I was hoping to find
something that integrated w/Rails better and maybe even a bit more
sexier.
Any suggestions?
- jason
--
Posted via http://www.ruby-forum.com/.
2009 Jul 20
0
[asterisk-dev] MeetMe feature request: bypass pincode
...; start,n,Hangup()
> Thanks for your answer.
> However what I would like to achieve is a little bit more complicated.
> It involves the manager to originate a call and put a participant in the
> conference. I made a workaround with an agi script but I would
> definitely prefer a sexier method to do it (like I said with an option
> to the application).
>
> Thanks for your hint anyway.
I'm not sure how that restricts you from using a dialplan trick, since the
originate you're doing from your AMI interface is still going to execute
dialplan (or could).
Additi...