search for: bigcat

Displaying 4 results from an estimated 4 matches for "bigcat".

2007 Aug 06
2
used the described Class in a shared behavior
...t; do @feline.should be_long_haired end end describe SiberianCat, "(a subclass of, say, Cat)" do it_should_behave_like "Siberian feline" it "should purr" do @feline.sound.should == "purr" end end describe SiberianTiger, "(a subclass of BigCat)" do it_should_behave_like "Siberian feline" it "should roar" do @feline.sound.should == "roar" end end I''m looking for something more elegant than my current way, which is like so: describe "Siberian felines", :shared => true...
2011 Dec 06
2
Paste() - Get all possible combinations from multiple vectors
Hello fellow R-users, Given are three vectors and the outcome would be all possible combinations in combination with the paste() function. For example: x <- c(1:3) y <- letters[1:3] z <- LETTERS[1:3] My result would thus be 18 names based on all possible combinations between these vectors: "1 a A" "1 a B", "1 a C", "1 b A", "1 b B",
2012 Nov 15
1
Extracting list names within a looped function
Hello all, I have the following problem: 1) A list was defined as 'a' a <- list("var1"=c(100:1), "var2"=c(1:100), "var3"=rnorm(100)) 2) a function 'foo' was defined that extracts the variable name assigned to x using the deparse(substitute()) functionality. This name will then be used within the function to generate specific output files, etc.
2012 Jul 13
0
Loading R scripts stored behind htaccess
Hello, Within my department I would like to share the latest version(s) of my R scripts to my colleagues using subversion. This repository is password protected (WebDAV) as it should not be accessed by external persons. In the majority of my scripts I load scripts using the source() function, but this will now return a ''401 Authorization Required' error. I've been browsing