search for: ellegant

Displaying 12 results from an estimated 12 matches for "ellegant".

Did you mean: elegant
2005 Nov 10
7
different functions on different vector subsets
...t work and return the same vector size: > 2^a[a>0] [1] NA 2 4 8 > a[a>0] [1] NA 1 2 3 I found a solution in term of: sapply(a,function(x) if (is(s.na)) NA else if (x<0) (-1)/2^x else 2^x) but still I would like to understand why the solution above did not work. I think is more ellegant. my R version is: > sessionInfo() R version 2.2.0, 2005-10-06, i386-pc-mingw32 attached base packages: [1] "methods" "stats" "graphics" "grDevices" "utils" "datasets" [7] "base" Thanks, Ron [[alternative HT...
2008 Aug 30
4
remove levels from a factor
Hi,   how to remove levels that have less than a specific number such as 2. i.e..   > f<-as.factor(c("a","b","a")) > f [1] a b a Levels: a b I want to remove level b because level b has less than 2. > f [1] a a Levels: a   [[alternative HTML version deleted]]
2005 Dec 31
3
Sort or Order a <Select> box.
Evening folks, I''m new to RoR, and have found some very useful info on this site, thanks. I have a select box that I need to sort. <select name="people[peoplekind_id]"> <% @peoplekinds.each do |peoplekind| %> <option value="<%= peoplekind.id %>" <%= '' selected'' if peoplekind.id == @people.peoplekind_id %>> <%=
2004 Sep 14
4
One Question:CLI dial cmd
An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040915/65a2736a/attachment.htm -------------- next part -------------- Hi friends, I tried to dial 111 from CLI without any hard/soft phones. I used the following config when i called 111 from CLI by CLI> dial 111 I got these errors -- Executing Dial("OSS/dsp",
2009 Jun 02
2
Table of Summaries
Apologies for the novice question, but this is likely beyond my google searching range.. I am trying to create a table from the summaries of a file. The 2 column data table looks like; Harry 335/335 Harry 124/506 Harry 124/506 Dick 133 Tom 335/335 Tom 335/335 with 1000 unique values in col 1, 300 unique in col 2. The 'summary' doesn't seem
2012 Feb 13
3
Change dataframe-structure
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120213/d2a5afa6/attachment.pl>
2009 Dec 02
4
sort a data frame by a vector
Hi, I have a a vector and a data frame with two columns vec = c("C", "A", "B") dataDF = data.frame(A1 = c("B", "A", "C"), A2 = c(1,2,3)) I would like to sort the data frame by column A1 such that the order of elements in A1 is as the same as in vec. After the ordering, the data frame would be A1 A2 C
2009 Aug 04
2
Re ferencing columns and pulling selected data
Please consider the following inputs: PrsnSerialno<-c(735,1147,2019,4131,4131,4217,4629,4822,4822,5979,5979,6128,6128,7004,7004, 7004,7004,7004,7438,7438,9402,9402,9402,10115,10115,11605,12693,12693,12693) PrsnAge<-c(59,48,42,24,24,89,60,43,47,57,56,76,76,66,70,14,7,3,62,62,30,10,7,20,21,50,53,44,29)
2009 Dec 21
5
Help,Suggest me some methods to identify training set and test set!!!
I want to split my whole dateset to training set and test set, building model in training set, and validate model using test set. Now, How can I split my dataset to them reasonally. Please give me a hand, It is better to give me some R code. and I see some ways like using SOM to project whole independents to 2-dimensions and find some to be training set and others are test set. like below. I
2006 Jan 03
3
Can I map 2 tables into one class
Can I map 2 tables into one class? Is there any pattern, e.g. using ActiveRecord aggregation? Thanks Szczepan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060103/fa2aed7c/attachment.html
2000 Feb 25
5
HP supporting samba
In the web it states HP does support samba and there is a link. Following this link I read nothing about samba, it may be wrong. Can someone point me to the right link please ? This is very very important for me. Thank you.
2010 Jul 22
4
Drop firms in unbalanced panel if not more than 5 observations in consecutive years for all variables
Dear R-user, a few weeks ago I consulted the list-serve with a similar question. However, my task changed a little but sufficiently to get lost again. So I would appreciate any help on the following issue. I use the plm package and work with firm-level data in a panel. I would like to eliminate all firms that do not fulfill the requirement of having an observation in every variable used for at