similar to: question

Displaying 20 results from an estimated 4000 matches similar to: "question"

2004 Feb 05
2
correction to the previously asked question (about merging factors)
I have two factors l1, l2, and I'd like to merge them. (Remark: The factors can not be converted to charaters) Function c() does not give me the result I want: > l1 = factor(c('aaaa', 'bbbb')) > l2 = factor(c('ccc', 'dd')) > lMerge = factor(c(l1, l2)) > lMerge [1] 1 2 1 2 Levels: 1 2 > I'd like to merge l1 and l2 and to get lMerge
2004 Feb 18
6
interesting feature
Hi, everybody. This was an interesting discussion last time and it helped me a lot. Could you please have a look at some feature and tell me why it was designed this way (my questions are under #########) > x = c(1, 10) > y = c(99, 55) > d <- data.frame(x = x, y = y) > d x y 1 1 99 2 10 55 > add <- data.frame(x = 14, y = 99) > add x y 1 14 99 > d <-
2004 Feb 27
2
question about if else
Today is a good day for asking question, I guess. > c() NULL > > length(c())==0 [1] TRUE > > r = ifelse(length(c())!=0, c(), c(1,2)) ### OK > r = c() ### OK > r = ifelse(length(c())==0, c(), c(1,2)) ### why this is not OK (given > the previous two)? Error in "[<-"(`*tmp*`, test, value = rep(yes, length =
2004 Feb 05
1
What is the correct way of using function C() for factors:
The funciton c() works differently for strings and for factors: For strings: > l = c('a', 'b') > l [1] "a" "b" For factors: > l = c(factor('a'), factor('b')) > l [1] 1 1 What should be the right technique for merging factors? -- Svetlana Eden Biostatistician II School of Medicine
2004 Feb 27
1
question about setdiff()
Thank you for your answers, I have another question: the behaviour of setdiff(indicesFalse, indicesNA) does not seem predictable to me. > indices [1] 1 2 3 4 5 6 > compareVector [1] NA TRUE TRUE TRUE FALSE NA > indicesNA = indices[is.na(compareVector)] > indicesNA [1] 1 6 > indicesFalse = indices[compareVector == FALSE] > indicesFalse [1] NA 5 NA >
2004 Mar 26
1
lookup.xport in foreign ignoring some datasets (PR#6701)
The Details. In the following version. > version _ platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 1 minor 8.1 year 2003 month 11 day 21 language R > lookup.xport ignores some datasets in sas export file. File "emptySasData3.xpt" (available at http://biostat.mc.vanderbilt.edu/tmp/emptySasData3.xpt) is a
2004 Feb 24
1
bug in ifelse (PR#6611)
> version _ platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 1 minor 8.1 year 2003 month 11 day 21 language R > aa <- as.POSIXct(c('1/1/1980','1/2/1980','')) > ifelse(is.na(aa),as.POSIXct('1/3/1980'),aa) Error in rep.int(unclass(x), times) : Argument "times" is missing,
2009 Apr 06
2
[LLVMdev] TableGen Enhancement Feasibility
I've got another idea for a tblgen extension but I don't have a good feel for how feasible it is. Hopefully someone can provide guidance. What I want to do is something like this: class C1<int A, string B> { int foo = A; string bar = B; } class Bb<int A> : C1<A, "foo">; class Cb<int A> : C1<A, "bar">; class C2<C1 Base, int
2008 Nov 12
2
problem with urca package
Dear R users, I have the joined txt file in the following direct directory C:// I have written the following lines: library(urca); PIBTUN<-read.table("C:/AF.txt", header=F); ur.df(PIBTUN,type='none',lags=1) but I have obtained the following message: Error in embed(z, lags) : 'x' is not a vector or matrix I don't What's the problem, can you please help me Thank
2007 Mar 20
1
SIP/Polycom Issue, Asterisk 1.2.16, calls dropped
I've been running the 8/1/2004 Head release up until a little over a week ago. I was forced to due to a card failure to upgrade to 1.2.16 without any advance preparation or testing (most of my connections are via satellite to all corners of the globe with high latency). Up until the upgrade I was running with very few issues. Since the upgrade I have been experiencing strange issues
2007 Nov 03
4
Mongrel Cluster: Rolling restart?
Hi all, Forgive me if this has been asked before, but is there a reason mongrel_rails cluster::restart stops all ports and then restarts them again? Wouldn''t it be better to restart each port one-by-one in series so that upstream proxy servers can fail over while the restart is occurring, or am I missing something? Thanks, eden
2007 Mar 15
4
Via Eden
Hello list, i?m looking forward to buy a new server. It should be low voltage so i?m thinking of a via eden processor like this one -> http://tinyurl.com/3ymlkl (sorry, there?s only a german page). Has someone expierence in using a via eden processsor? Thanks! Kamill
2006 Jan 05
8
Repost - Do dynamic finders work with legacy schemas?
Hello everyone, I have another question related to a legacy schema I am working with. Do dynamic finders work with legacy schemas in general? The schema I am working with uses hungarian prefixes for column names. For example fOpen is 0 if a bug is closed and 1 if it is open (type smallint). When I try @bugs = Bug.find_all_by_fOpen(1), I get the following exception: undefined method
2006 Oct 15
14
Mongrel can''t handle some URLs that IE6 sends
IE6 happily sends unsafe* characters unencoded if you''ve typed them into the URL bar of your IE6 window. This could happen if you copy & paste a URL from an email or web page. Mongrel doesn''t seem to handle these properly. In 0.3.13.3 it would print out something like: Sun Oct 15 23:05:38 CST 2006: BAD CLIENT (192.168.1.2): Invalid HTTP format, parsing fails. 0.3.13.5
2006 Apr 16
7
Problem running unit tests
I am running Rails 1.1.2 with Ruby 1.82-15. My database is Postgresql. I haven''t had any problems generating models, migrations, using scaffolds, and generally building and using my application, but I haven''t been able to get testing to work. I initially just ignored the problem and kept developing, but would like to add proper testing from here on out. Currently when I type
2006 May 03
6
Versioning the contents of a table as a set
I am looking at using acts_as_versioned to manage revisions of data in several tables in my application. However, the default behavior of acts_as_versioned appears to apply to individual rows within a table. The tables I want to version are complicated lookup tables and what I really want is to version the entire contents of each table as a single set. Adding a row, deleting a row, or updating
2006 Oct 23
8
can a worker commit suicide?
Can a worker kill themselves when they''re ''done''? Or do I have to do that either from the controller or the worker manager? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20061023/11dd429c/attachment.html
2006 Jan 05
10
OT -- A "HOWTO" is a guide not a question.
This is way offtopic, but I''ve seen this several times recently and it''s annoying me. If you put "HOWTO" in your subject that means that you''re posting a guide on a particular topic. It doesn''t mean that you''re asking a question about "how to" do something. It''s not like it''s a crisis, but it screws up searches
2008 Nov 15
1
TCP Stack Issues Under FreeBSD 7.1
Hi, Anyone else noticing any TCP Stack requests for information under a useraccount with mild to moderate TCP activity on HTTP and other sorts of ports returns zero results back unless you are root. [site@Eden ~]$ netstat -i reports netstat: kvm not available: /dev/mem: Permission denied ifnet: symbol not defined [site@Eden ~]$ netstat -an [site@Eden ~]$ netstat -m 377/823/1200 mbufs in use
2006 Apr 11
6
Reduce Number of Queries When Using ActiveRecord
I have a controller method called update_all that grabs parameters for about 30 form fields and saves them to the database. My current code looks to see if there is a string in params[] for each form field (two fields for each SelfEvaluationItem) and saves the updated self_evaluation_answer if a string is available. Since this is iterated code, I am almost certain that this generates 30 or so