search for: obj3

Displaying 9 results from an estimated 9 matches for "obj3".

Did you mean: obj
2005 May 07
1
Test on mu with multivariate normal distribution
...thought ?simtest? could be the right function to get the p-value, but I fail to use R correctly. Here is what I tried to do: f1 <- factor(c("8", "10", "12", "14")) X <- matrix(1:16, ncol=4) colnames(X) <- c("Obj1","Obj2","Obj3","Obj4") X.frame <- data.frame(f1,X) Y <- matrix(1:12, ncol=4) colnames(Y) <- c("Obj1","Obj2","Obj3","Obj4") Y.frame <- data.frame(f1,Y) XY <- data.frame(X.frame, Y.frame) # won?t work, because of different nr of rows test.st...
2011 Jun 08
1
Reference Class error message: may be caused by lazy evaluation?
...# return 2, works obj$show() # after calling addOne(), show() works ## works if use .self$... obj2 <- new("testclass", a = 1) obj2$showself() ## works when call the method directly within another method obj3 <- new("testclass", a = 1) obj3$add() ################ end ########################################## I am still learning this new technique, if I made any mistake I didn't notice before, please let me know, I will really appreciate that. Thanks a lot! Tengfei -- Tengfei Yin...
2012 Mar 28
0
[LLVMdev] GSoC 2012 Proposal: Python bindings for LLVM
...rg1, const char *arg2, intype3 arg3) */ #define _wrap_objstrobj2obj(func, intype1, intype3, outtype) \ static PyObject * \ _w ## func (PyObject *self, PyObject *args) \ { \ PyObject *obj1, *obj3; \ intype1 arg1; \ const char *arg2; \ intype3 arg3; \ \ if (!PyArg_ParseTuple(args, "Os...
2006 Jan 10
0
Linking different Models together and walking them dynamically?
...nough unique properties to warrant their own tables. I was thinking of creating a column called ''type'' and having that be the name of the Model/Class, and make Ruby call that class, but I don''t know if Ruby can inject a variable and use it as a name So, obj1 connects to obj3 connects to obj2 obj2 is of Model ''x'', obj1 is of Model ''y'', obj3 is of Model ''z''. And the columns would be: src | dest | src_type | dest_type Where src_type (and dest_type) is the name of a Model Any ideas on how to do this? Any speculation...
2011 Oct 05
6
reporting multiple objects out of a function
Dear folks, I?m trying to build a function to create and make available some variables I frequently use for testing purposes. Suppose I have a function that takes some inputs and creates (internally) several named objects. Say, fun1 <- function(x, y, z) {obj1 <- x; obj2 <- y; obj3 <- z <missing stuff> } Here is the challenge: After I run it, I want the objects to be available in the calling environment, but not necessarily in the global environment. I want them to be individually available, not as part of a list or some larger object. I can not figure out how to...
2009 Jul 30
3
Looping through R objects with $ operator and tags
Hi all, Suppose I want to set the values in a column to the log of the values of another column like so: object$LogDist <- log10(object$Distance) How do I loop through the objects if I have object1, object2, etc to perform this function? object1$LogDist <- log10(object1$Distance) object2$LogDist <- log10(object2$Distance) object3$LogDist <- log10(object3$Distance) I was trying to
2005 Jul 04
3
How difficult is it to wrap a large C++ library with R?
...sing R? If most of the answers are yes, it may be a good idea to switch to R. * Wrap C++ class hierarchy. Virtual functions need to be supported. (SWIG can generate Python shadow classes that behave almost exactly like the underlying C++ classes) * Be able to do this: evolve(ops=c(obj1, obj2, obj3)) Internally, evolve will call virtual function fun() of obj1, obj2, .etc. obj1, obj2, ... are objects derived from the same base class. * Direct access to C++ data structure. For example, an object may keep a C array internally. I will need a method (maybe wrap this data into a R object) to...
2006 Jul 07
3
attach and detach question
I have a large R program that I am constantly running over and over again. At the beginning of this program, I create a hige matrix and a huge dataframe but these are constant. What I mean by constant is that, if I run the program over later, I really should just use the old matrix and dataframe ( if they exist ) that were created in a previous run so that the program doesn't have to spend
2008 Nov 07
0
x axe values
Dear list, I have to draw a simple plot. On y axe some numerical values that correspond to various categories on axe x. The table I am reading looks like: cat Obj1 Obj2 Obj3 max 23 27 34 ave 21 25 32 min 19 23 30 In order to avoid that the first column is reordered alphabetically I used: (found here http://tolstoy.newcastle.edu.au/R/help/06/09/33808.html) a <- as.character(table$cat) table$cat = factor(a, levels=a) However if I use plot() I get thick lines instea...