search for: sexier

Displaying 20 results from an estimated 24 matches for "sexier".

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
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.
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...
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}}
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
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
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...
2012 May 19
1
Names of Greek letters stored as character strings; plotmath.
...bove does what I want. (Clearly I have no real idea what I'm doing, just hammering and hoping, but it's amazing how far hammer and hope will get you sometimes with R!) Just thought I'd post this in case it might be helpful to others. Also to see if anyone can tell me a better/slicker/sexier way to get to the same result. cheers, Rolf Turner
2007 Aug 29
1
combining datasets by row
Rusers, I am trying to append multiple .csv files of different dimensions (but # of columns are the same for all .csv files). I do have .csv files whose names are CA1.csv ~ CA100.csv. CA means california and 1 means the first file. So what I have been doing (after googling how to append by row multiple files) was: cleanup_data<-function(state,count) { out<-matrix() for (i in 1:
2006 Jun 27
2
Preloading results in Ajax App
...r sit around while my software loads and renders 10 results at a time, just like a ''normal'' webpage. Not sexy. Updating and redrawing a part of the page is only the tip of the iceberg... I feel that it is time to be able to make sorting through larger amounts of data much more sexier, as a standard... Here is my answer to this question, perhaps you have comments, or can enlighten me with other answers. --- A Client-side pre-loading framework...Aka, on the page load we load 100 results into the browser, hide 90 of them in "display:none" divs, then when we click o...
2009 Apr 28
1
help active record modeling.
Hi. I have difficulties to model active record. So please help my trouble. Let''s suppose there are nations which have castles at least 1, and there are 3 types of castles. So I will make these tables. NationsTable, CastlesTable have common attributes of 3 types of castle. CastlesATable, CastlesBTable, CastlesCTable each have its unique attributes. In this case how can I represent
2010 Jan 18
1
Sub-matrixes that are linked to the "Base matrix"
Hello, I'm am in the process of trying to port a RATS functions to R and have the problem, that RATS allows for the creation of submatrixes that are linked to their basematrix. Basically it should work like this: a = matrix(1:(4*3),4,3) a # [,1] [,2] [,3] # [1,] 1 5 9 # [2,] 2 6 10 # [3,] 3 7 11 # [4,] 4 8 12 # This of course doesnt work :) b =
2009 Jul 14
2
averaging two matrices whilst ignoring missing values
Hi folks, I'm trying to do something that seems like it should easy, but it apparently isn't. I have two large matrices, both containing a number of missing values at different cells. I would like to average these matrices, but the NAs are preventing me. I get a "non-numeric argument to binary operator" error. That's the first problem.
2009 Oct 19
1
Spatstat: xy binary data into mask type to use in owin(mask=)
Dear users, I am trying to export polygons from Arcmap into Spatstat to run some simulations using functions available in Spatstat package. One particular area to be exported is formed by a number of polygons defining the external boundaries of the area (as a groups of islands) and a number of polygons inside the previous ones, as ?holes? not to be considered as part of the area. I have
2012 Oct 30
5
Swap rows and columns in a matrix
Dear R users, I want a help to write an algorithm for swapping rows and columns in a matrix thanks in advance [[alternative HTML version deleted]]
2007 Feb 27
3
Preprocessor denoise. Does it work?
Jean-Marc Valin wrote: > The noise suppressor will only attempt to remove stationary noise, > such as thermal noise, fans, ... The AGC can indeed do strange > things in these cases, but it's been improved in svn (compared to > 1.2beta1). OK, then the problem is that I misunderstood the feature. I assumed that dynamic squelch was part of it, but it's really something more