Displaying 20 results from an estimated 9000 matches similar to: "Identifying names of matrix columns shared by many matrices"
2010 May 03
2
Hierarchical factors
Hello,
Hierarchical factors are a very common data structure. For instance, one
might have municipalities within states within countries within
continents. Other examples include occupational codes, biological
species, software types (R within statistical software within analytical
software), etc.
Such data structures commonly use hierarchical coding systems. For
example, the 2007 North
2010 Apr 09
1
Beyond reshape: automatically streamlining data
Hello,
I've been very impressed by the reshape package and how easy it makes
reorganizing statistical data structures. This makes me wonder if
there's another package out there that addresses another set of tasks
that one often does when preparing data for analysis.
For any particular set of analyses, one typically recodes variables and
deletes cases and variables. It would be really
2010 Apr 27
0
R-help Digest, Vol 86, Issue 28
On 4/26/10 21:45:55 R P Herrold wrote:
> Date: Mon, 26 Apr 2010 21:45:55 -0400 (EDT)
> From: R P Herrold<herrold at owlriver.com>
> To: Marshall Feldman<marsh at uri.edu>
> Cc:r-help at r-project.org
> Subject: [R] Upgrading R using the "global library folder" strategy -,
> what do you think about it?
> Message-ID:<alpine.LRH.2.00.1004262141510.25472
2006 Jun 12
2
Chapters
I'm surprised this isn't a FAQ, but I searched all over and could not find a
reference to it.
Chambers (1998) makes repeated references to "Chapters" in S (e.g., p. 6),
but I can find no reference to "Chapters" in R. Since Chapters were not used
in earlier versions of S, I'm wondering if R uses them or not. If it does,
how does one get them to work? I've
2010 May 04
2
read.table: skipping trailing delimiters
Hi,
I am trying to read a tab-delimited file that has trailing tab
delimiters. It's a simple file with two legitimate fields. I'm using the
first as row.names, and the second should be the only column in the
resulting data frame.
Initially, R was filling the last column with NA's, but I was able to
stop that by setting
2010 May 04
1
Flushing print buffer
Hello,
I have a function with these lines:
test <- function(object,...){
cat("object: has ",nrow(object),"labels\n")
cat("Head:\n")
head(object,...)
cat("\nTail:\n")
tail(object,...)
}
If I feed it a data frame object, it only prints out the tail part. If I
comment out the last two lines of
2010 Jul 27
2
Introductory statistics and introduction to R
Hi,
I have a bright, diligent second-year graduate student who wants to
learn statistics and R and will, in effect, be taking a tutorial from me
on these subjects. (If you've seen some of my questions on this list,
please don't laugh.) As an undergrad he majored in philosophy, so this
will be his first foray into computer programming and statistics.
I'm thinking of having him use
2010 Mar 18
1
Do colClasses in readHTMLTable (XML Package) work?
Hi,
I can't get the colClasses option to work in the readHTMLTable function
of the XML package. Here's a code fragment:
require("XML")
doc <- "http://www.nber.org/cycles/cyclesmain.html"
table <- getNodeSet(htmlParse(doc),"//table") [[2]] # The
main table is the second one because it's embedded in the page table.
xt
2010 Apr 02
1
Plots don't update with xlab, etc. What am I doing wrong.
Hi,
I've been struggling with this problem the last few days and finally
discovered it's happening at a very fundamental level. Going through
Stephen Turner's tutorial on ggplot2, I entered these base graphics
commands:
> with(diamonds, plot(carat,price))
> with(diamonds, plot(carat,price), xlab="Weight in Carats",
ylab="Price in USD",
2006 Jun 15
0
S4 class slot name 'names' is not allowed (PR#8768 S4Methods)
Hello,
Besides the problem with using "names," one has a similar problem using
".Data" together with "VIRTUAL."
Consider the top of p. 295 of the green book. This should work (I had to
change "structure" to "junk" because "structure" is a sealed class
definition):
setClass("junk",
2010 Apr 04
4
ggplot2 geom_rect(): What am I missing here
Hi R fans,
As a newbie following the five-hour rule (after hitting my head against
the wall for five hours, post to this list), I am appealing for some
help understanding geom_rect() in ggplot2.
What I want to do is very simple. I want to generate a plot of
rectangles. Each one represents a business cycle. The x-values will be
pairs representing the start and end of each cycle. The y-values
2006 Dec 07
0
FW: test of spatial dependence?? - ask a geographer (was ask an ecologist)?
No, you do not necessarily need the XY coordinates. You can also use polygon
(field, in your case) adjacency information. See Rogerson, Peter A. 2001.
_Statistical methods for geography_. Thousand Oaks: Sage.
You might also look at GeoDA, a free and soon-to-be open source spatial
analysis package. For your application, it might be easier to use than R. Go
to https://www.geoda.uiuc.edu/.
2010 Mar 02
1
Reading data file with both fixed and tab-delimited fields
Hello R wizards,
What is the best way to read a data file containing both fixed-width and
tab-delimited files? (More detail follows.)
_*Details:*_
The U.S. Bureau of Labor Statistics provides local area unemployment
statistics at ftp://ftp.bls.gov/pub/time.series/la/, and the data are
documented in the file la.txt
<ftp://ftp.bls.gov/pub/time.series/la/la.txt>. Each data file has five
2010 Jul 27
0
how to generate a random data from a empirical, distribition
On 7/27/2010 6:00 AM, r-help-request at r-project.org wrote:
> Date: Mon, 26 Jul 2010 11:36:29 -0700 (PDT)
> From: xin wei<xinwei at stat.psu.edu>
> To:r-help at r-project.org
> Subject: [R] how to generate a random data from a empirical
> distribition
> Message-ID:<1280169389379-2302716.post at n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
2010 Apr 26
1
Upgrading R using the "global library folder" strategy -, what do you think about it?
On 4/25/2010 19:39:52, Tal Galili wrote:
> *c) R core implementation ?!*
> I hope I am not being rude (or jumping into any open doors) in asking this
> but...
> What do you think about implementing this strategy into the R basic
> installation?
>
>
>
Tal,
As a general rule, I think R should make upgrading as easy and seamless
as possible. Upgrading strategies seem
2010 Mar 28
0
Preserving both yearmon and numeric data in an xls object
Hi R gourmets,
I am trying to convert an HTML table into an xts object. The table has
six columns, with the data of interest in a single row with each cell
containing a long, \n-delimited character string. Initially, I work with
these strings as elements in a list. This is necessary because the
strings in each cell do not translate into a regular matrix with
equal-length columns. Once I fix
2010 Apr 09
1
Combining ggplot2 objects and/or extracting layers
Hi,
Other then rebuilding the plots, is there any way either (1) to combine
existing ggplot2 plots or (2) to extract a layer from an existing plot
so that it can be added to another?
Thanks.
--
Dr. Marshall Feldman, PhD
Director of Research and Academic Affairs
Center for Urban Studies and Research
The University of Rhode Island
email: marsh @ uri .edu (remove spaces)
Contact
2006 Jul 18
2
FW: Large datasets in R
Hi,
I have two further comments/questions about large datasets in R.
1. Does R's ability to handle large datasets depend on the operating
system's use of virtual memory? In theory, at least, VM should make the
difference between installed RAM and virtual memory on a hard drive
primarily a determinant of how fast R will calculate rather than whether or
not it can do the calculations.
2007 Sep 10
2
Siemans SIP/PSTN phone S450
Hi All,
Just added a Siemens DECT SIP/PSTN S450 phone to login to my A*k server,
and I see "Got SIP response 405 "Method Not Allowed" back from
192.168.3.64" but the phone seems to work ok.
Any ideas where it falls over in the SIP protocol? I've included this
in the debug below.
ubiphone*CLI>
<-- SIP read from 192.168.3.64:5060:
--- (0 headers 0 lines) Nat
2006 Apr 19
1
Thousands Separator
I am a new R user, and am struggling with how to add a comma to the
tick mark labels in a bwplot or a boxplot.
I think the default values of the labels are fine, I just want them
to appear with commas.
If I use the function boxplot, I can then use
axis(2,labels=format(axTicks(2),big.mark=","))
but that just overlays them on the existing labels which I don't know
how to