similar to: Building factors across two columns, is this possible?

Displaying 20 results from an estimated 10000 matches similar to: "Building factors across two columns, is this possible?"

2009 Dec 11
1
Recoding factor labels that are lists into first element of list
Hi all, I've Googled far and wide but don't think I know the correct terms to search for to find an answer. I have a massive dataset where one of the factors is made up of both individual items and lists of items (for example, "cat" and "cat, dog, bird"). I would like to recode this factor somehow into only the first element of the list (so every list starting
2006 Apr 28
2
Trying to turn params field into a variable
Hi guys, I have another question, we have this line on our .rb code: @variable = params [:user][:bird] I need to be able to change the 2nd field into a variable because it is a changing valuename, I was wondering if you had any trick for that. Meaning I need to make [:bird] into [:dog] or [:cat]... It''s proven really tricky for me to get it to change I wonder if you guys had any
2012 Aug 04
3
Questionnaire Analysis virtually without continuous Variables
Hello! I am doing an analysis on a questionnaire of hunters taken in 4 different districts of some mysterious foreign country. The aim of the study was to gather info on the factors that determine the hunting success of a peculiarly beautiful bird in that area. All variables are factors, i.e. they are variables such as "Use of Guns - yes / no", "Use of Dogs - yes / no" and
2006 Jan 10
5
Noob ActiveRecord Join Question
I''m new to rails and ruby, and after trying to get this to work correctly for hours, I thought I''d give this forum an try. I''ve setup a trivial project just to mess around with Rails database naming conventions and associations. I''ve got a table called Pets, and a table called Types. Pets contains a list of pets, Parky the cat, Daisy the dog, etc, And Types
2007 Mar 09
2
Is there any variable for Voicemail Password in Asterisk
Hi guys This is my Ist post on this group. Is there any variable like ($VM_CALLERID for voicemail mailbox) for accessing Asterisk Voicemail password which is set through comedian mail.?????????????? plz reply me as soon as possible.... <html><div><PRE class=quote><IMG height=2 src="http://graphics.hotmail.com/greypixel.gif" width="100%"
2012 Nov 17
2
Using cbind to combine data frames and preserve header/names
I have a dataframe that has a header like so: class value1 value2 value3 class is a factor the actual values in the columns value1, value2 and value3 are 0-255, I wish to binarize these using biclust. I can do this like so: binarize(dataframe[,-1]) this will return a dataframe, but then I lose my first column class, so I thought I could combine it like so: dataframe <-
2012 Nov 01
2
SyntaxError in Posts#index
getting this error compile error /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected ''='' ...w Goal", new_post_path, class="btn btn-success" );@output_bu... ^ /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND ''); @posts.each
2012 Jun 28
3
loop through and modify multiple data frames
Hi Newbie question: I have a set of data frames that I want to do the same calculations on each. I've found out that I can put them in a list and loop through the list to do the calculation, but not put the results back into each data.frame.. For example three data frames cats, dogs, birds where >cats name eats_kg 1 bob 3 2 garfield 4 3 chuck 6 and dogs and birds are similar but not
2007 Dec 18
1
Call Recording on Hanup
Hello everyone out there, I am having a problem in call recording with php agi library. I have already recorded voice after playing an IVR, to accept the recording user need to press one. but I need to record a call on hangup, Is there any way to do it. Currently i am using record_file() function in php. Is there any way to record voice by using record_file() function with hangup. can anyone helps
2004 Jun 10
1
Domain problem with NT4 & Samba 3.0.2a
All, I really need some help. I'm putting samba up on a new windows domain called SIERRA. I'm using Samba 3.0.2a on Solaris 8. I'm barely knowledgeable on Windows NetBIOS... but am good with Solaris. The status is that I've got the daemons running and working normally. I have 1 desktop with 1 PDC & 1 BDC in the SIERRA domain. On the desktop, I can see both DC's but
2003 Oct 09
2
Not able to invoke swat
Hi I have configured samba (version 2.2.7a) on Linux 9. Now I am facing a problem like I am able to invoke the swat in the local machine (http://localhost:901 <http://localhost:901/> ), But I am not able to invoke the swat from other machine. Let us consider Localhost name is moon (linux machine) Another machine is mars (Win 2k) I am able to invoke swat from
2006 Nov 21
1
Documentation Nit
I''m trying to wrap my head around rspec_on_rails and ran into the following documentation nit: -------- what it says -------- You can specify :template, :text, or :action. controller.should_render :template=>"path/to/template/for/action" controller.should_render :text=>"expected text" controller.should_render :action=>"expected_action" --------
2012 Mar 28
1
parallel bash scripts
Check out the redirection at the end of each command. 1>&2 redirects the standard out of your child command to the standard error which then appears in the parent shell. At the end the last & launches your command into a background shell and then moves on to launch the next command. The redirections don't care if the command ever terminates. The result is that both commands
2015 Dec 06
2
lunar notation in crontab
Crontab offers many refined facilities for Western calendaring, but none for traditional Eastern-- lunar-- designations. So for example, if one wants specify regular occurring events on full moons or on new moons, there is no way to do this. Emacs (a text processor!?) accomplishes this. The math for calculating lunar calendaring is already available; mathematical functions are already
2006 Oct 10
5
oddness when adding to index -
I was having some odd results when working with acts_as_ferret (current trunk), so I decided to test with the current version of ferret to see if I encountered the same problem. I did. Here are the details: installed ferret 0.10.10 on debian sarge with ''sudo gem install ferret'' (btw, same results on OSX) opened up an irb session: irb(main):001:0> require
2008 Jul 24
2
factor question
Hi! Suppose I have a factor: > fac1 <- factor(rep(c("dog","cat","tree"),c(2,3,4))) > fac1 [1] dog dog cat cat cat tree tree tree tree Levels: cat dog tree > length(fac1) [1] 9 Now I want to get rid of the dogs: > fac1 <- fac1[3:9] > fac1 [1] cat cat cat tree tree tree tree Levels: cat dog tree > How should I remove the dog from the
2000 Oct 12
2
getting a windows environment variable in r
hi- I would like to get a value set with the dos set command (e.g. set dog=cow) in a rterm session on rterm 1011 under windows 2000. if I try in a dos window: set dog=cow echo %dog% i get cow (what I want) then i start rterm system("echo %dog%",intern=T) gives "%dog%" I can of course do something like set dog=cow echo %dog% >jnk.rin and then start rterm and
2008 Jan 18
2
winetricks and gecko
*When I run sh winetricks gecko, the following happens:* superman at travis-lin:~$ sh winetricks gecko --13:43:26-- http://source.winehq.org/winegecko.php?v=0.1.0 => `winegecko.php?v=0.1.0' Resolving source.winehq.org... 209.46.25.134 Connecting to source.winehq.org|209.46.25.134|:80... connected. HTTP request sent, awaiting response... 302 Found Location:
2009 Dec 20
2
ogg "chapters"?
i'm thinking about albums like "dark side of the moon" and also live bands (especially live-pa) and DJs where there's a continuous flow from one song to the next... i could use a MKV file with vorbis or mp3 and include a chapter listing [with named chapters], that would allow listening to the whole thing with no skipping between songs. at the same time, a listener can skip
2006 Apr 25
1
lme: how to compare random effects in two subsets of data
Dear R-gurus, I have an interpretation problem regarding lme models. I am currently working on dog locomotion, particularly on some variation factors. I try to figure out which limb out of 2 generated more dispersed data. I record a value called Peak, around 20 times for each limb with a record. I repeat the records during a single day, and on several days. I tried to build two models, one