Displaying 20 results from an estimated 200 matches similar to: "R environment advice?"
2003 Jan 02
3
random number generation
Can a single random number be generated in R? I have an exercise that wants
to simulate coin tosses, and I cannot seem to find a good example of the use
of random number generation in R. Any help?
Joshua Gramlich
Chicago, IL
2003 Feb 17
2
Graphing
I think this may be a histogram, but I'm not sure. Can anyone tell me
how to replicate this graph in R?
http://www.ginworks.com/images/multitot.gif
Thanks,
Joshua Gramlich
2003 Feb 14
2
function editing?
Is there a way to edit user defined functions once they've been
created? For instance, I've a simple function that plots a table, but
I'd like to go back and add more parameters to the barplot call. Is
there a way to change this function without completely starting from
scratch? Other than storing the code in a file and re-running it?
Joshua Gramlich
Piocon Technologies
Chicago,
2003 Feb 13
1
pie charts?
I don't suppose it's possible to create a pie chart in R? I've got 1500
some odd elements in a frame that are valued at either -1, 0 or 1 and
I'd like to find a reasonable way to represent the distribution
graphically...any ideas?
Joshua Gramlich
Piocon Technologies
Chicago, IL
2006 Jan 24
2
NULL id''s / invalid references
Hi,
could you suggest me how to handle this in a proper way? I have a table
which has
othertable_id column (relationship is belongs_to) Problem is, that
sometimes there is a NULL value and table.othertable.foo returns an
error... what should I do about it? change something in model? in view?
or just add "unknown" row to othertable and update table.othertable_id
with id of this
2007 Aug 30
1
belongs_to with foreign keys that reference non primary key columns
Hello,
I have a situation where the foreign key into a table doesn''t
correspond to that table''s primary key:
my_table
-------------
id (pk)
name
...
other_table
--------------
id (pk)
my_table_name (fk references my_table(name))
...
I want to be able to say something like:
class OtherTable < ActiveRecord::Base
belongs_to :my_table, :foreign_key => { :my_table_name
2006 Jun 30
0
Three ActiveRecord features we want at work - any comments/suggestions?
Hi
I thought I would run this past the Rails list before I start doing
any work because I don''t want to re-invent any wheels.
Basically the situation I''m in is that I work for a company that is
currently working on two big non-Rails projects used for financial
purposes (one sells vehicles and vehicle finance, the other is an
internal broker management system used by
2006 Feb 02
1
table() command
Hi R users
I am trying to get cross-tabulation tables using tables.
All variables used are binary ones (0 and 1).
Each time I constructed cross-tabluation table using a different variable
pair (e.g., variable 1 and variable 2, variable 1 and variable 3 etc)
In doing so, I ran into some problems
i.V2
i.V1 1
0 17
1 33
For variable 2 (i.V2) there was no one belonging to ZERO
2011 Sep 17
0
joining and array with a table in ActiveRecord
Hey
I am pretty new to Ruby on Rails and I have no idea how to solve the
following:
I have a join query on a table like this:
def mytags
Taggable.joins("JOIN taggables as filter ON taggables.tag_id =
filter.tag_id WHERE filter.taggable_type = ''User'' AND filter.taggable_id
= 1").all
end
this works perfectly fine.
then I want to join the result on another
2006 Mar 18
0
No subject
One quirk to be watched is the use of connections to the DBMS via the
Unix sockets vs ports. The PostgreSQL driver bundled with unixODBC
will use Unix sockets to `localhost', but this driver seems unreliable
(see the ChangeLog). The current driver will only use a TCP/IP port,
and to use that needs postmaster started with the -i flag (which is
not the default) and with tcp/ip
2003 Feb 11
4
postgres
Is anyone using R with postgres? I'd like to do so, but cannot seem to
find any reasonable explanation of how to do so.
Joshua Gramlich
Chicago, IL
2010 Aug 23
3
Unable to upload images using native rails file upload
I am a rails newbie and am trying to build my first app. I have a jobs
and categories controller and models respectively.
CONTROLLER:
def new
@job = Job.new
@catergory = Catergory.all
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @job }
end
end
#THIS IS A group of 10 RADIO_BUTTONS TO SELECT A CATEGORY FROM. BY
DEFAULT THE FIRST
2003 Jan 03
3
Packages w/ S4 classes in C?
Hello ...
Does anyone know of a package (or other code) out there which has handled
S4 classes in C? I realize that a lot of this stuff is fairly new in
R-devel, so my assumption is no - but there seems to be some deviation
from the green book that is really throwing me off, and I'm looking for
some sort of front-to-back example.
Thanks
-Jeff
2005 Jan 20
0
What's up with IAXTEL?
I finally got around to signing up with Iaxtel and Free World Dialup...
the price was right, as far as that goes!
I've gotten and placed calls via FWD just fine. But I can't seem to get
registered, or stay registered, with Iaxtel.
My logs show the story; at startup I see:
Jan 20 07:14:44 VERBOSE[14121]: -- Registered to '65.39.205.121',
who sees us as ... yada yada...
As
2003 Dec 01
0
No subject
/usr/local/bin/lpr -P%p -J"$a" -U%m %s;\
/usr/local/bin/lpr -P%p -J"Test by Jim" -U%m %s;\
/usr/local/bin/lpr -P%p -J$a -U%m %s;\
/usr/local/bin/lpr -P%p -J%J -U%m %s;\
/usr/local/bin/lpr -P%p -J"%J" -U%m %s;\
But according to /tmp/junkJ, $a is the windows file name, not
the spool file name. So does the control file in the
spool directory.
If I send a file to
2006 Jun 06
1
stack level too deep
Iam new to ferret Iam trying to do a sample application on ferret
this is my code:
class SearchController < ApplicationController
require ''ferret''
include Ferret
index = Index::Index.new(:path => ''/path/to/index'')
def list
end
def index
index << {:title => "Programming Ruby", :content => "blah blah
blah"}
2006 Jan 13
2
uninitialized constant Ferret
I get this error message from the following code:
require ''rubygems''
require ''ferret''
include Ferret
index = Index::Index.new(:path => ''/tmp/index'')
index << {:title => "Programming Ruby", :content => "blah blah blah"}
index << {:title => "Programming Ruby", :content => "yada yada
2008 Jun 13
1
dependency on /usr/lib/nx
I do a:
sudo yum update
and I get:
yada, yada, yada,...
---> Package freenx-server.i386 0:0.7.2-8.el5 set to be updated
--> Running transaction check
--> Processing Dependency: /usr/lib/nx for package: freenx-server
Importing additional filelist information
--> Finished Dependency Resolution
Error: Missing Dependency: /usr/lib/nx is needed by package freenx-server
Not only
2008 Jun 27
2
5.1 -> 5.2 Upgrade oddity
yum upgrade -y
yada yada yada
....
then lots of errors like:
/usr/share/gnome/help/gdm/fr/gdm.xml:173: parser error : Entity 'eacute'
not defined
and so on until
Document is not well-formed XML: /usr/share/gnome/help/gdm/it/gdm.xml
Updating : amtu ##################### [173/520]
Updating : grub ##################### [174/520]
...
2006 Sep 22
1
QueryParser bug?
I cooked up a little script to show what I mean. This doesn''t look right
to me, but maybe I just completely misunderstand QueryParser.
Same output on mswin32, unix, ferret 0.9 and 0.10
Cheers, Sam
require ''rubygems''
require ''ferret''
p Ferret::VERSION # 0.10.6
index = Ferret::Index::Index.new()
index << {:title => "Programming