Displaying 2 results from an estimated 2 matches for "myobjectnam".
Did you mean:
myobjectname
2010 Feb 07
3
using a variable name stored in another variable?
...s in advance, how do I refer to it in the save()
command? (the example below only saves an object with the name, not the
objec itself).
Is it some kind of dereference? Any ideas?
command:
cat myscript.r | R --vanilla --args MyName
script:
# get the command-line argument for the variable name
myobjectname <- commandArgs()[4]
# make some data
somedata <- matrix(rnorm(100),10,10)
# make a filename for the saved object
filename <- paste(myobjectname, ".RData", sep="")
# assign data to the new name
assign(myobjectname, somedata)
# save the object to disk
save(myobjectna...
2006 May 24
2
newbie oo question
Hey everyone,
I''m trying to create an object that will have some properties
predefined, but will allow me to pass in properties to override those
standard props if needed. I''m trying something like:
var myObject = Class.create();
myObject.prototype = {
initialize: function(element, options) {
this.element = $(element);
this.name = this.element.id;
this.options =