Displaying 20 results from an estimated 300 matches similar to: "Trying to "pretty up" output from R job"
2001 Aug 13
1
Processing all *.dat worked. Thanks
I got great, quick advice here earlier today. One little hitch was that
the pattern in list.files wants a regular expression, and *.dat was
grabbing all files with .dat in them, not ones ending in .dat. This
code creates a *.dat.summary file with the mean and std. deviation. of
the numeric variables for every *.dat file in the current directory.
myDat<-list.files(pattern="*.dat$")
2002 Feb 17
3
Little graph questions!
I'm working up a set of small working examples in R to show what various
distributions are and the beauty of the central limit theorem. Those
example programs are in this directory:
http://lark.cc.ukans.edu/~pauljohn/R/ExampleCode/
You can feel free to use those if you want, or you can send me other
small working example code for R. The key here is small, self contained
things that
2002 Oct 29
1
pretty not pretty
Hi,
I have a following vector:
> smallch
[1] 0.0652840 0.1181300 0.0319370 0.0155700 0.0464110 0.0107850
[7] 0.0158970 0.0375900 0.0603090 0.0310300 0.0105920 0.0540580
[13] -0.0177740 0.0039393
Pretty (R 1.5.1) has problems with zero:
> pretty(smallch)
[1] -2.000000e-02 -3.469447e-18 2.000000e-02 4.000000e-02 6.000000e-02
[6] 8.000000e-02 1.000000e-01 1.200000e-01
2002 Oct 29
1
pretty not pretty
Hi,
I have a following vector:
> smallch
[1] 0.0652840 0.1181300 0.0319370 0.0155700 0.0464110 0.0107850
[7] 0.0158970 0.0375900 0.0603090 0.0310300 0.0105920 0.0540580
[13] -0.0177740 0.0039393
Pretty (R 1.5.1) has problems with zero:
> pretty(smallch)
[1] -2.000000e-02 -3.469447e-18 2.000000e-02 4.000000e-02 6.000000e-02
[6] 8.000000e-02 1.000000e-01 1.200000e-01
2001 Apr 10
2
clear R-objects inside a function?
Using RedHat Linux 7.0, R-1.2.2, R-hdf5-1.2 library,
I want to load a dataset, do some stuff with it, then erase its objects,
get an other, repeat. My friend wrote a function which tried to clear
away all the objects. At the end, it uses rm() to remove objects. This
is the same way we do it interactively, from the R prompt:
testLoadSeveralHDF <- function(numFiles) {
for (i in
2000 Aug 09
1
Trying to make plot of several time series in same graph
Dear Friends in R:
On RedHat linux, R-1.1, I've gotten far enough to create the graph that
shows on the screen with 3 lines, but I have some trouble. Here is the
way I created the three "overlaid" graphs:
data<-read.table("DataCulture0",header=T,as.is = TRUE)
attach(data)
tmp1<-plot(acquaint~T,type='l', ylim=c(0,1),ylab="average
2001 Aug 08
2
box doesn't surround words in legend in printed output
I have made a plot with a legend and on the screen it looks fine, but
when I save as jpg or pdf, or print, the legend box is too small, it
cuts through the words on the right side.
I put an example here:
http://lark.cc.ukans.edu/~pauljohn/R/apdftest.pdf
Is there a work around?
--
Paul E. Johnson email: pauljohn at ukans.edu
Dept. of Political Science
1999 Apr 21
0
[MAILER-DAEMON@biostat.ku.dk: Returned mail: /home/sfe1/r-bugs/.forward: line 1: "|/home/sfe1/r-bugs/bin/new_message Rnew"... User r-bugs@biostat.ku.dk doesn't have a valid shell for mailing to programs] (PR#170)
--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
at the bottom is a bug report - however I have include the bounce
headers in case you want to fix the mailer too. This was the
result of an online bug submission via http://r-bugs.biostat.ku.dk/cgi-bin/R.
pete
--rwEMma7ioTxnRzrJ
Content-Type: message/rfc822
Content-Description: Forwarded message from Mail Delivery Subsystem
2001 May 07
2
semi-parametric (partial linear?) regression
I just heard a talk about a semi-parametric model. I was quite excited
by the idea. This model is fitted
y= xB + g(z) + e
where x is a data matrix, B a column vector, z is another data matrix,
and g is a smooth model fitted by a Kernel Smoothing regression (I got
the idea any smoother would do as well).
The speaker said that when z is considered as a "control" variable, and
there is
2006 Aug 08
2
Resources and pretty URLS
Using the brand-spanking new map.resources for REST goodness, is there a
way to pass in additional parameters, or do I have to go back to
standard routes. For example, is there a way to use the map.resources
to response to urls like:
/blog/2005/02/03/ => :controller => :blog, :action => :show, :year =>
2005, :month => ''02'', :day => ''03''
2006 Jul 12
1
Changing Application Error (Rails) to something pretty?
Hello all,
I have installed the Exception Notifier plugin to email me when my rails
application encounters an exception. However, I would like to prevent my
users from seeing the "Application Error (Rails)" screen in production.
Ideally, it would be nice to have an error message within my site layout. I
know people have asked this question before but I can''t seem to find it in
2006 Apr 07
2
Functional testing Pretty Urls
Anyone know how to how to test pretty urls (set through routes.rb)? I want
to don''t use get :action, because the routing changes how a certain action
is requested. How does one go about testing this?
Thanks,
Tim Case
tim@karmacrash.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 05
0
Pagination + pretty URLs
Hello all.
I want to make pagination URLs pretty instead of the ?page=2. I have
written a route like this:
map.connect ''restaurant/list_dishes/:page'',
:controller => ''restaurant'',
:action => ''list_dishes'',
:requirements => { :page => /\d+/},
:page => nil
Which appears to work. However the following only
2006 Mar 06
0
Multiple actions for one route (making pretty URLs hit different actions)
Hi all,
I''m trying to make pretty URLs using routes for some of my actions
across different controllers. For example:
http://www.example.com/london ->
http://www.example.com/articles/show_by_name/london
But if the id ''about'' couldn''t be found, then to search for it as
another action, this time from the ''branch'' controller.
2008 Jun 12
0
Pretty errors in development mode
Hey everybody. It''s been a while since I''ve spent any serious time on
Facebooker. I''m going to be doing a bunch of work in the near future
to support the new profile update. I''m committing a few things now.
The first is pretty error messages for Rails in development mode.
You''ll now get a stack trace through Facebook, just like you do for
2006 Feb 23
1
Pretty HABTM check boxes
I''m 100% positive this has come up multiple times before. I just
can''t find it for some reason. I''ve got a HABTM relationship, we''ll
just say Item HABTM categories. When I edit an Item via a form, I''d
like there to be check boxes for all the categories, and they''ll
obviously be checked if an Item has a relationship with a particular
2005 Dec 22
2
Pretty Log Output on OS X
Howdy,
I am using Apple''s Terminal and Rails 1.0 on Tiger.
I am tailing my log files and it seems with one of these updates things
changed a little. I see all these ''ESC'' codes all over.
How can I make the output prettier? I''d rather not move to iTerm, not one of
my faves.
Cheers.
2007 Dec 21
0
pretty neat Mash class (Magic Hash)
class Mash < Hash
def method_missing(name, value=nil)
key = name.to_s.sub(/[=?!]$/,'''').to_sym
self[key] = value if name.to_s[-1,1] == "="
self[key] = Mash.new unless self[key] || value
return self[key]
end
end
Its like OpenStruct...so what can you do?
require ''pp''
m = Mash.new
m.first_name = "john"
m.last_name =
2011 Jan 19
0
audiohook.c: Write factory 0x153cf678 was pretty quick last time, waiting for them
Hello list,
what does this mean in the debug-log :
[Jan 19 15:11:04] DEBUG[1475] audiohook.c: Write factory 0x153cf678 was
pretty quick last time, waiting for them.
[Jan 19 15:11:04] DEBUG[1701] audiohook.c: Read factory 0x14fe5ef0 was
pretty quick last time, waiting for them.
[Jan 19 15:11:04] DEBUG[1475] audiohook.c: Read factory 0x153cec40 and
write factory 0x153cf678 both fail to provide
2011 Apr 09
1
Pretty URLs for omega?
Hello :-)
How can the default omega URL be prettified?
http://<host_ID>/cgi-bin/omega is working fine, giving us all omega's
default CGI parameters. Now we want multiple databases which could be
accessed using http://<host_ID>/cgi-bin/omega?DB=<index_ID> but this is
starting to get messy. It will get messier when we start to customise
templates with