Displaying 20 results from an estimated 1240 matches for "dogs".
Did you mean:
does
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
2012 Nov 24
2
Building factors across two columns, is this possible?
I am trying to make it so two columns with similar data use the same internal numbers for same factors, here is the example:
> read.csv("test.csv",header =FALSE,sep=",")
V1 V2 V3
1 sun moon stars
2 stars moon sun
3 cat dog catdog
4 dog moon sun
5 bird plane superman
6 1000 dog 2000
> data <-
2006 Apr 26
3
Test fixture syntax
OK, I know I''m doing something bone-headed, but I can''t for the life of
me figure it out.
I''ve read the test fixtures Rdoc about eight dozen times, and it says
(to me) that if I have a YAML fixture file, dogs.yml that looks like
this:
fido:
id: 1
breed: Terrier
fifi:
id: 2
breed: Poodle
Then I can include
fixtures :dogs
in my functional test, and I''ll have access to a Hash of the model
objects in the instance variable @dogs. And further, that the fixture
records are "found&q...
2006 Aug 15
5
Hard time understanding the differences between "def self.foo" and "def foo"
Hi guys,
I''m having a little trouble understanding the differences and knowing
when to use "def foo" and "def self.foo" in my models. I don''t quite
understand them and was hoping someone could explain or give me
examples on how to use the "self." properly.
For example, I had "def foo" in my model "Account" and in one of
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
2007 Apr 11
0
Error with corCompSymm and lme fit for repeated measures
Dear R Friends,
I need help with an error associated with corCompSymm in an lme fit.
I am using a mixed effects model to analyze a split-plot with
repeated measures and would like to fit with the compound symmetry
correlation structure. This problem doesn't occur when using
corAR1 or any of the other structures. I would greatly appreciate
help on how to solve this issue.
Here's my
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 level, please?
Thanks in advance,
Edna Bell
2010 Feb 11
4
when does 'dog' not equal 'dog'?
This is more a Ruby than a Rails question -- feel free to redirect me
as appropriate -- but either this is a Ruby 1.9 bug or I have some
serious misunderstanding. Essentially, I''ve caught the <=> operator
returning nil -- not -1, 0, or 1, but nil. Schematically:
class A
attr_accessor :slot
fun matches?(s)
p "s <=> @slot = #{s <=> @slot}"
return
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
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 same length.
On each data frame I now want to add a column with cost of food by
calculating "eats_kg"*price of food.
So question is, can I put all data frames into one loop which...
2006 Feb 08
2
lme syntax for P&B examples
Hi helpeRs,
I've been working through some examples in Pinhiero & Bates( 2000)
trying to understand how to translate to the new Lme4 syntax but without
much luck.
Below is what I think I should do, but either the answers don't come out
the same or I get errors.
In the Oxide problems I'm particularly interested in obtaining the
levels coeficients but this options no longer seems
2006 Apr 17
0
Using variable class names breaks has_many?
Hey All,
Any idea why this would work this this:
class Dog
has_many :fleas
end
dog = Dog.find_first
dog.name => "Buster"
dog.class => Dog
dog.fleas => []
# store the class
animal_class = dog.class => Dog
dog = animal_class.find_first
dog.name => "Buster"
dog.class => Dog
dog.fleas => method_missing! # hunh?
# but this
2006 Mar 17
2
Controller/View Organization (Newbie Question)
...xiliary views. I''ve thought of a few ways to do this:
1. Make a controller for each of the auxiliary objects
(TrainingSessionsController, TestsController, etc), each with a view
to show information only relating to the current Dog in question. So
for example, the overview URL "/dogs/show/1" might link to a detail
page at "/training_sessions/list?dog_id=1" .. This seems ugly to me,
as I will need to keep passing around parameters in the URL wherever
I go to make sure we''re still working on the right dog. For example,
I''ll need to remembe...
2005 Sep 27
1
Moaning dog...
Here's one for you phone people....
An elderly lady phoned her telephone company to report that her telephone
failed to ring when her friends called - and that on the few occasions when it
did ring, her pet dog always moaned right before the phone rang.
The telephone repairman proceeded to the scene, curious to see this psychic
dog or senile elderly lady. He climbed a nearby telephone pole,
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
2010 May 06
1
POP3 says no new mail.
Hi
Let's list some files in user homedir:
-------
dog:/home/domain/users/username# ls
autoresponse dovecot.index.log dovecot-uidvalidity.4be1e480 saved
trash
config dovecot-uidlist new sent
cur dovecot-uidvalidity tmp
dog:/home/domain/users/username# ls cur
1273093948.30793.dog:2
dog:/home/domain/users/username# ls new
1273097763.13545.dog
2006 Jun 30
50
Time To Pick the Mongrel BUGS Mascot!
Bradley Taylor shot me this *goldmine* of ugly ugly ugly dogs:
http://www.sonoma-marinfair.org/uglydogvote.shtml
I *have* to use one of these for the Mongrel BUGS Mascot. He''ll go on
our bug list page and replace the little beetles on the left.
Pick the dog you think best represents a lovable but defective pooch and
reply to this with your +1.
L...
2010 Jun 08
3
more dates and data frames
Dear R People:
So thanks to your help, I have the following:
> dog3.df <- read.delim("c:/Users/erin/Documents/dog1.txt",header=FALSE,sep="\t")
> dog3.df
V1 V2
1 1/1/2000 dog
2 1/1/2000 cat
3 1/1/2000 tree
4 1/1/2000 dog
5 1/2/2000 cat
6 1/2/2000 cat
7 1/2/2000 cat
8 1/2/2000 tree
9 1/3/2000 dog
10 1/3/2000 tree
11 1/6/2000 dog
12 1/6/2000
2008 Jul 31
4
Identifying common prefixes from a vector of words, and delete those prefixes
For example, c("dog.is.an.animal", "cat.is.an.animal", "rat.is.an.animal"). How can I identify the common prefix is ".is.an.animal" and delete it to give c("dog", "cat", "rat") ?
Thanks
_________________________________________________________________
[[alternative HTML version deleted]]
2012 May 03
3
inheritance with rails.
...03/rails-single-table-inheritance/
The way is to add a type field in the table.
So if I have an Animal class with an attribute name, I can inherit
from this class like:
Dog < Animal, Cat < Animal, and so on.
With the type field in the table I can do Dog.all, Cat.all having
automaticaly all dogs, all cats, etc.
But what if I want to add some other attributes to Dog or Cat classes?
In the example above all classes have only name attribute.
What if I want inherit from Animal extending attributes and adding,
for example, an attribute like canFly? for inherited classes?
--
You received this...