search for: myconstants

Displaying 5 results from an estimated 5 matches for "myconstants".

Did you mean: myconstant
2005 Jan 21
6
Avoiding a Loop?
Dear R-Helpers, I have a matrix where the first column is known. The second column is the result of multiplying this first column with a constant "const". The third column is the result of multiplying the second column with "const"..... So far, I did it like this (as a simplified example): nr.of.columns <- 4 myconstant <- 27.5 mymatrix <- matrix(numeric(0), nrow=5,
2006 Mar 01
2
error: uninitialized constant
total rails nuby here. I have a table "thumbnails", hence the model Thumbnail. I''m extending the Thumbnail class with a few constants needed for thumbnail cropping: class Thumbnail < ActiveRecord::Base SOURCE_FILE_PATH = "path/to/source" TARGET_FILE_PATH = "path/to/target" TARGET_WIDTH = 100 TARGET_HEIGHT = 100 end Now, in my controller
2008 Apr 04
1
How to include files in .R?
Hi, may be its a very simple question, but i did not find any documentation about a 'include' command or something like this. I have to set many constants in my R-files and want to move all these to one file, so that i can reuse it in all other R-files. Something like include("~/R/myconstants.R") kind regards, -- Jonas Stein <news at jonasstein.de>
2010 Jul 13
1
Define package-wide character constants
...a single point of change for that. I've read documentation on environments, "<<-" and the "assign" function, BUT am still not sure how to approach my problem BEST. "assign" could most probably do the job, but do I use/create a certain environment (like "myConstants")? Or should I just use my package's environment? Thanks for any experiences, (alternative) ideas, or pointers at existing discussions! Regards, Daniel
2006 Aug 16
4
Accessing Constants Declared in Helper Modules
Hello all, I''m having great trouble accessing a constant declared in a helper for one of my view templates. I am trying to create a grouped selection list based on a predefined set of values. Rather than declare this set of values in the view, I wanted to put it in the helper that automatically gets included for the view. Unfortunately, it doesn''t seem to work. All methods