Displaying 20 results from an estimated 1000 matches similar to: "aggregate() example fails"
2009 Mar 24
1
aggregate() example fails]
Hi R users and developers on debian platforms.
I compile the R version 2.8.1 Patched (2009-03-18 r48193)
on my UBUNTU linux distribution.
But when I ask for the aggregate example it fails.
What am I missing?
example(aggregate)
aggrgt> ## Compute the averages for the variables in 'state.x77',grouped
aggrgt> ## according to the region (Northeast, South, North Central,West) that
2009 Mar 24
1
Is aggregate() function changing?
Hi R developers and debian users:
Finally I found how to work with aggregate() function
on the last patched version fo R.
I you use this command it fails:
aggregate(state.x77, list(Region = state.region), mean)
But if you modify it in this way, it works!:
aggregate(state.x77, list(Region = state.region), function(x) mean(x) )
Is it necesary to change the example?
What is changing in
2009 Mar 24
1
Is aggregate() function changing?
Hi R developers and debian users:
Finally I found how to work with aggregate() function
on the last patched version fo R.
I you use this command it fails:
aggregate(state.x77, list(Region = state.region), mean)
But if you modify it in this way, it works!:
aggregate(state.x77, list(Region = state.region), function(x) mean(x) )
Is it necesary to change the example?
What is changing in
2002 May 17
0
aggregate() classing var. def.
Dear all,
I want to aggregate() my data based of the classes of a factors, just as in the
help file, but how do I define the "Region varable" in the ?aggregate example?
Now, the column is just like any other in my data matrix. As I understand it
from ?(state), state contains a matrix with the columns Pop, Income etc., but
Region is somehow separated. I noted below that as.list() is
2011 Mar 09
1
state.x77 dataset
I tried:
> data(state.x77)
Warning message:
In data(state.x77) : data set 'state.x77' not found
data(iris) seems to work fine, but the other state datasets (which I haven’t every tried before) don’t seem to be available
on my windows 7 running R 2.12.2 installation.
?state brings up the state help page page which suggest the dataset should still be there. In help there still seems to
2001 Mar 13
1
Display grouping parameter in coplot
I try to display the grouping variable in coplot.
It work, but it's special solution and rather ugly.
Any better idea?
# Simulate my data frame
data(state)
x77<-data.frame(state.x77)
x77$region<-state.region
coplot(Life.Exp ~ Income | region,
data=x77, show.given=F, subscripts=T,
panel = function(x, y,subscripts, ...)
{
panel.smooth(x, y, span = 1., ...)
2005 Oct 27
1
A hierarchy of DFS trees...
I just made a DFS link that pointed to another DFS share on a different
server...
It seems to confuse the Win'XP client a bit, but it can be made to work.
That means....
I can build a tree structure w/ DFS.
I can arrange all my servers and shares into a hierarchy.
It may not be practical, but in theory, This could be used as a
hierarchical substitute for the network neighborhood.
I could
2020 Nov 12
0
[centos/centos.org] branch master updated: Reflected new 7.9.2009 release and updated AMI IDs for AWS
This is an automated email from the git hooks/post-receive script.
arrfab pushed a commit to branch master
in repository centos/centos.org.
The following commit(s) were added to refs/heads/master by this push:
new d2b87a3 Reflected new 7.9.2009 release and updated AMI IDs for AWS
d2b87a3 is described below
commit d2b87a32dda9b2e3b16ad2a55343ae63d000a64d
Author: Fabian Arrotin <arrfab
2020 Jun 27
0
[centos/centos.org] branch master updated: Updated page for AWS AMI images ID and link
This is an automated email from the git hooks/post-receive script.
arrfab pushed a commit to branch master
in repository centos/centos.org.
The following commit(s) were added to refs/heads/master by this push:
new 34ad21c Updated page for AWS AMI images ID and link
34ad21c is described below
commit 34ad21c7bdf8b4190fed5ab9facc149199598da2
Author: Fabian Arrotin <arrfab at
2014 Oct 08
2
Problema con los paneles de un grafico
Comunidad superpower, tengo la siguiente pregunta-problema.
Tengo una matriz de datos como la siguiente (adjunto archivos de datos):
sol con dia rep nca nin iso are
1 con 0 1 1 16 0 s 0.3866520976
2 con 0 1 1 16 1 c 0.0008842527
3 con 0 1 1 18 0 s 0.2409465396
4 con 0 1 1 18 1 c 0.0021092822
5 con 0 3 1 16 0 s 0.6005446999
6 con
2009 Mar 25
1
Requesting help with lattice again
Hello, this is a request for assistance that I submitted earlier, this time
with the dataset. My mistake for taking up bandwidth. I've also rephrased
the question to address an additional concern.
I'm working on a windows XP machine with R 2.8.1
1). I'd like a barchart (or other lattice type display) HSI ~ of the three
factors (Region, Scenario and HydroState).
However
2008 Jan 24
0
readClipboard() from spreadsheet to data.frame with column names?
This code opens a CSV file from the working directory set by wd. I copy
2 or more columns in the spreadsheet and then close it. What I need
help with is setting the first row as the column names in
clipboardTextAsDF. There is probably a simple or better way to do this
but I have been away from R for awhile now. I just be over-thinking this.
I tried read.DIF to read the clipboard but that
2005 Dec 15
2
A Rails-based CMS?
Is there a working Rails-based CMS out there and available? I''ve looked
on the web a bit this morning but have not found anything that can be
put in use.
Thanks!
Nathan Mealey
Operations Director
Northeast Region
Pilgrim IT, LLC
NORTHEAST OFFICE
1 Short Street
Northampton, MA 01060
TEL 866.434.4976
FAX 413.587.0572
MIDWEST OFFICE
1815 Brownsboro Road
Louisville,
2005 Dec 15
1
date_select help
I''m trying to select items from a database by their date field. The date
data is coming from a form using the date_select helper.
The field in the database is named date_notified_on.
My controller method is this:
def history_date
if(@params)
@notifications = Notification.find(:all, :conditions =>
["date_notified_on = ?",
2001 Dec 27
1
scale in stars() is not as documented (PR#1230)
R 1.4.0
?stars has
scale: logical flag: if `TRUE', the columns of the data matrix are
scaled independently so that the maximum value in each column
is 1 and the minimum is 0. If `FALSE', the presumption is
that the data have been scaled by some other algorithm to the
range [0,1].
but the code has
if (scale) {
x <- sweep(x, 2,
2012 Jan 19
1
question re. package playwith not able to run command getting error message that I'm attempting to use non function
Hello, I managed to install playwith package and all its prerequisites. My
R version is R 2.14:
R version 2.14.1 (2011-12-22)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i486-pc-linux-gnu (32-bit)
All my packages were updated, and recently installed. When I attempt
to use the command playwith I get the following error message:
>
2009 Apr 05
1
problem with lattice tiff or bitmap: character size and color
Hi all,
I am trying to make tiff files of lattice plots at a resolution greater
than 300 dpi required by a journal (PLoS ONE). I have tried both the tiff
and bitmap functions. tiff keeps panel colors but reduces axes and tick
labels so they are nearly invisible. bitmap maintains correct label size
but only produces greyscale. Regular plots work fine with tiff; the
problem is only with lattice
2006 Apr 28
0
Extracting Email Attachment Content
If an email incoming to Actionmailer has an .htm attachment, how is it
possible to extract the file''s text (the html text in the file) to
insert into the database?
I''ve tried reading the attachment like so, theFile =
File.open(attachment.read, "r"), to no avail. But that fails stating
that there is no such file or directory (but the attachment is there for
certain).
2006 Jan 25
1
Collection_select ?
In case where a collection_select is selecting a required value for an
object (a not null field), is it possible to set a generic default value
for the select box? I have tried :prompt => true and :include_blank =>
true but neither changes the value for required fields. It does for
non-required fields though.
Thanks.
Nathan Mealey
Operations Director
Northeast Region
Pilgrim IT,
2006 Feb 27
3
Rails via Lighttpd
I am trying to get Rails running through Lighttpd, on a Suse 10 box
running Rails 1.0.0 and Lighttpd 1.4.10
I followed the instructions in the wiki
(http://wiki.rubyonrails.com/rails/pages/Lighttpd) but keep getting the
same error:
linux:/etc/lighttpd # lighttpd -f lighttpd.conf
2006-02-27 12:32:17: (mod_fastcgi.c.997) execve failed for: