search for: myexample

Displaying 6 results from an estimated 6 matches for "myexample".

Did you mean: byexample
2011 Mar 10
1
getting percentiles by factor
Hello, I'm trying to get percentiles (PERCENTRANK for excel users) by factor in the following data.frame: myExample <- data.frame(Ret=seq(-2, 2.5, by=0.5),PE=seq(10,19),Sectors=rep(c("Financial","Industrial"),5)) myExample <- na.omit(myExample) Thanks to Patrick I I managed to put together the following lines which does it for the "Ret" column: myecdf <- function(x, sortA...
2010 May 18
1
difficulties with setMethod("[" and ...
Apologies if I am not understanding something about how things are being handled when using S4 methods, but I have been unable to find an answer to my problem for some time now. Briefly, I am associating the generic '[' with a class which I wrote (here: myExample). The underlying back-end allows me to read contiguous slabs, e.g., 1:10, but not c(1, 10). I want to shield the user from this infelicity, so I grab the slab and then subset in memory. The main problem is with datasets with dim(.) > 2. In this case, the '...' argument doesn't seem t...
2006 May 26
1
R.oo question
This is a simple R.oo question but I, thankfully, hope that someone would explain it to me so I would better understand this work frame. I create this class: setConstructorS3("MyExample", function(param=0) { print(paste("called with param=", param)) extend(Object(), "MyExample", .param = param ); }) >From what is printed out, who made the second call to the class with the default param? > MyExample(1) [1] "called with param= 1"...
2012 Jun 26
5
Next Problem: Puppet 2.7 + Passenger won't connect
OK. What did I booger up this time ? agent.myexample.org and puppetmaster.myexample.org are the same server. ---------------------------------------------------------------------------- # puppetd --no-daemonize --onetime --debug --noop debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist debug: Puppet::Type::User::Provider...
2009 Feb 20
2
importing data to SQLite database with sqldf
...some reason I cannot seem to get it working. Combining examples 6 and 9 from the Google Code page (and R-help archives), I tried source("http://sqldf.googlecode.com/svn/trunk/R/sqldf.R") (do I need it for SQLite?) ## sqldf("attach 'mydb.db' as new") f <- file("myexample.txt") attr(f,"file.format") <- list(header=TRUE,sep="\t") sqldf("create table myexample as select * from f", stringsAsFactors=FALSE, dbname="mydb.db") ## or f <- file(fi) sqldf("create table myexample as select * from f",...
2010 May 05
1
[LLVMdev] Size of packed struct type <{<3 x i32>, i32}>
I have a packed struct <{<3 x i32>, i32}> type that LLVM determines to be 20 bytes. Is this the expected size for this type? I wrote a small example to illustrate: ; ModuleID = 'myexample.bc' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" target triple = "x86_64-pc-linux" %mytype = type <{<3 x i32>, i32}> define void @myexample(%mytype* %src, i...