search for: arbitrari

Displaying 20 results from an estimated 6878 matches for "arbitrari".

Did you mean: arbitrary
2010 Oct 13
2
list comprehension to create an arbitrary-sized list with arbitrary names/values
In python, one can do this mydict = dict([(keyfun(x), valfun(x)) for x in mylist]) to create a dictionary with whatever keys and values we want from an input list of arbitrary size. In R, I want to similarly create a list with names/values that are generated by some keyfun and valfun (assuming that keyfun is guaranteed to return something suitable as a name). How can I do this?
2011 Jan 18
2
Counting dates in arbitrary ranges
Dear Colleagues, I have a data set that looks as below. I'd like to count the number of dates in a series of arbitrary ranges (breaks) i.e. not pre-defined breaks such as months, quarters or years. table(format()) produces ideally formatted output, but table() does not appear to accept arbitrary ranges. I also tried converting the dates to numeric and using histogram to try to get the data,
2006 Apr 12
2
factor analysis backwards
Hello! How can I do a factor analysis backwards to get an arbitrary covarianz matrix out of an arbitrary number of generated random variables that have a correlation near zero. Or the same question shorter: How to generate random variables that have a spezial correlation pattern. I would like to be able to do this to generate arbitrary data structures for simulation purpose sincerely stefan
2012 Mar 28
2
How to create arbitrary number of loops
Dear R users, I'm wondering how I can generate an arbitrary number of loops in R. For instance, I can generate two "for" loops to get ICC among any two-way combination among 10 variables. Here is the code n<-10 for (i in 1:(n-1)) { for (j in (i+1):n) { icc(cbind(DATA[,i],DATA[,j])) } } If I need three-way combination, then a code with three "for" loops will be:
2005 Feb 19
3
Terminating IAX calls in E1 PRI interface - what do I need to be able to send arbitrary caller id to called party ?
Hi, I'd like to terminate IAX call on PRI interface. What conditions should be met to be able to send arbitrary caller numbers to called party, so he can call back to supplied ISDN number (that is different for every IAX user) - not through PRI interface, but plain ISDN call !! Thanks in advance, regards, Rob.
2003 Aug 13
1
Contour plot for arbitrary (x,y,z)
Hello. Is there an easy-to-use contour plot function analogous to scatterplot3d that can draw handle a dataset of arbitrary (x,y,z) triplets? That is, say x, y, and z are each measured quanties, and exhibit neither order nor regularity. I looked at the lattice package function "contourplot" but it seems complicated, and it's not clear from the documentation whether it can
2009 Oct 02
3
Tabulating using arbitrary numbers of factors
Dear R-help, First of all, thank you VERY much for any help you have time to offer. I greatly appreciate it. I would like to write a function that, given an arbitrary number of factors from a data frame, tabulates the number of occurrences of each unique combination of the factors. Cleary, this works: > table(horse,date,surface) <SNIP> , , surface = TURF
2003 Apr 02
8
lm with an arbitrary number of terms
Hello folks, Any ideas how to do this? data.frame is a data frame with column names "x1",...,"xn" y is a response variable of length dim(data.frame)[1] I want to write a function function(y, data.frame){ lm(y~x1+...+xn) } This would be easy if n was always the same. If n is arbitrary how could I feed the x1+...+xn terms into lm(response~terms)? Thanks Richard -- Dr.
2006 Sep 06
1
support for arbitrary comparisons
Mike Williams contributed a patch to support arbitrary comparisons. This is now in the trunk and will be part of the next release. So you will now be able to do this: result.should_be < 5 result.should_be >= 7 It also supports alternate syntax for should_be, should_match result.should == 3 result.should =~ /regex/ Personally, I prefer should_be and should_match in these cases, as I think
2010 Aug 11
4
Arbitrary number of covariates in a formula
Hello! I have something like this: test1 <- data.frame(intx=c(4,3,1,1,2,2,3), status=c(1,1,1,0,1,1,0), x1=c(0,2,1,1,1,0,0), x2=c(1,1,0,0,2,2,0), sex=c(0,0,0,0,1,1,1)) and I can easily fit a cox model: library(survival) coxph(Surv(intx,status) ~ x1 + x2 + strata(sex),test1) However, I want to
1998 Dec 15
4
mounting an arbitrary directory?
Hi all, Is it possible to specify an arbitrary unix directory to be mounted from samba? For example, to mount /usr/local/bin ? Using a different smb server, I've seen the ability to do this by doing something like Connect to: \\smbserver\/usr/local/bin Connect as: user Password: **** In other words, I'd like to be able to specify the exact path I'd like to mount without having
2008 Dec 11
1
How do I tapply to a data frame with arbitrary column labels?
I have a data file that looks like this class pigeon falcon propeller jet wing fly birds 25 37 0 0 2 1 planes 0 1 28 40 1 3 birds 19 41 0 1 4 6 planes 0 0 25 50 5 5 planes 1 0
2012 Jun 21
1
ActiveModel::Serializers::JSON support arbitrary keys
Is there a reason why AM:S doesn''t support arbitrary keys to serialization? I can see a lot of uses cases where arbitrary keys could come handy. Right now, if one tries to do it, AM:S checks if the keys match a method of the model and raises exception if it can''t find any. class Client < ActiveRecordBase attr_accessible :name, :address, as: :creator include
2012 Mar 29
1
How to create arbitrary number of loops in R
Dear R users, I'm wondering how I can generate an arbitrary number of loops in R. For instance, I can generate two "for" loops to get ICC among any two-way combination among 10 variables. Here is the code n<-10 for (i in 1:(n-1)) { for (j in (i+1):n) { icc(cbind(DATA[,i],DATA[,j])) } } If I need three-way combination, then a code with three "for" loops will be:
2008 Dec 04
0
[LLVMdev] Dumping profile information at an arbitrary point in time
Hello: I have been able to successfully add a profiling pass to my PassManager. I now want to dump this profile information arbitrary (like maybe after 1 second of running the program). The problem is that the profile functions are in a separate library which is loaded dynamically. I cannot call: EdgeProfAtExitHandler(); directly because of linker problems (EdgeProfAtExitHandler() is
2005 Aug 03
2
hash code for arbitrary object
Can anyone suggest a simple way to calculate a 'hash code' from an arbitrary R object? hash(x) should return an integer or string with the property that if hash(x) != hash(y) then x and y are not identical and the time to compute hash(x) should be quite short. Any suggestions welcome thanks Adrian Baddeley
2005 Dec 16
0
tools to edit vorbis/theora/speex comments & icecast server adding arbitrary comments
Hi Mihamina, Indeed I'm looking for the same thing. I've looked at CMML/Annodex which looks very promising for what it is, but total overkill (and overly complex) to simply add meta-data (comments) to arbitrary ogg/theora/vorbis/speex (does speex have different comments then vorbis?) Does anyone have any simple C code that can just retreive and set arbitrary meta-comments in
2008 Jun 25
1
[LLVMdev] Assert in SelectionDAGLegalize when using arbitrary size integers
Hi. I am beginning to learn LLVM (using LLVM 2.3.0 on a Linux x86_64 machine) and wanted to check the status of the support of arbitrary size integers. To do so, I tried to modify the HowToUseJIT example by replacing the Int32Ty with another size (let's say 12 bits for the example). While it compiles ok, I get the following assert at run-time: HowToUseJIT: LegalizeDAG.cpp:4059:
2017 Jul 28
2
arbitrary bit number
Hello, I wanted to ask one general question ( for now it is hard to check it manually, maybe there is a fast answer): can I construct an operation, say, addition, from operand_0 - 5 bits size and operand_1 - 3 bit size -> receive result as 6 bit size . I am basically reducing these sizes in the whole IR, so I want that all operands can have arbitrary sizes ( llvm pass is not really good because
2008 Aug 26
1
lattice: plotting an arbitrary number of panels, defining arbitrary groups
...erent colors. "PM10" however, displays all classes in one color when there should now be two. Additionally, I now obtain a panel entitled "Ultrafines" which I'd like to suppress. The actual data set has a number of different pollutants, so what I'd ideally like to do is arbitrarily define two panels with different grouping variables. I've tried to set up dummy groups and to condition on those, but with no luck. I think what I need to do is possible with viewports, but is there no way to entice lattice to function in this way? Any help would be appreciated. cheers, A...