Displaying 20 results from an estimated 1000 matches similar to: "Subseting in a 3D array"
1999 Jul 16
7
R:how to separate stuff?
Thanks for your help on moving files from
S+ to R and on attaching directories.
If attaching directories is NOT possible in R,
is there any other way to separate
objects into different folders or something similar?
For example, to keep user functions for multivariate
analysis in a different "place" than user functions on
time series, or to keep data objects of project_1
in a different
1999 Jul 16
7
R:how to separate stuff?
Thanks for your help on moving files from
S+ to R and on attaching directories.
If attaching directories is NOT possible in R,
is there any other way to separate
objects into different folders or something similar?
For example, to keep user functions for multivariate
analysis in a different "place" than user functions on
time series, or to keep data objects of project_1
in a different
2005 Oct 13
1
subsetting data frame using by() or tapply() or other
Ok so I see the problem that I'm having creating a new variable (LAG1DBC)
in the example data transformation below is that tapply() is creating a
list that is not dimensionally consistent with the data frame (data). So
how do I go from the list output of tapply() to create a dimensionally
consistent vector that can create the new variable in my original data
frame? I've been trying
1999 Jul 28
2
3d in R
Dear R-users and R-developpers,
I've not been able to find 3d graphics in R, like
Splus spin() or brush(). Are there any that I've missed
and/or is anybody working on implementing these
type of functions?
Thanks
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
2002 Apr 17
4
union of lists
Hi there,
Given 2 lists of integer vectors, i.e.:
> lista1
$"1"
[1] 1 34 5
$"2"
[1] 2 1
$"3"
[1] 3 10 15
> lista2
$"1"
[1] 1 5
$"2"
[1] 2 1
$"3"
[1] 3 10 29
I want to obtain the union of both, defined
as the union of the vectors, that is
lista.union[[1]] <- union(lista1[[1]],lista2[[1]]):
> lista.union
2005 Oct 12
2
subsetting with by() or other function??
I think I must be missing something obvious, but I'm having trouble
getting a data transformation to work on groupings of data within a data
frame (csss3) as defined by 2 factors (population, locid). The data are
sorted by year within locid within population and I want to lag another
variable (dbc), i.e, shift them down by 1 row replacing the first row with
NA, within groups defined by
2002 Jan 21
3
R and 2 processors
As far as I can see by searching the archieves, R could not
take advantage of two processors in the same machine but there
were plans for implementing multithreading
in R. Is this work going on?
On the other hand, if two processors are
present in the same linux machine is it possible to focus one
processor on tasks of the operative system and the other
on R and/or other real computing? Could
2002 Jan 18
3
readline() to vector
Hi!
I'm trying to use readline() to ask for xlim() and ylim() values
for a subsequent plot. I'm doing:
lim <- readline("Enter xlim and ylim values: ")
then would like to use the values in lim for a plot:
plot(etc, xlim=lim[1:2],ylim=lim[3:4])
The problem is that lim is a character,i.e.,
"10,20,-10,50"
or
"c(10,20,-10,50)"
depending on the input to
2002 Jun 04
4
"X11 font at size 16 could not be loaded"
Hi,
I'm using plot.lda (R1.4.0 on linux) and,
if dimen > 2, I get the error:
Error in text.default(x, y, txt, cex = cex, font = font) :
X11 font at size 16 could not be loaded
The traceback indicates that the problem
comes from pairs(). I've tried several
cex and font values, always with the
same error.
The same command works fine with pdf()
If I'm missing fonts, how
2002 May 16
5
Bib. reference on R
I know I've seen the answer to this question
but could not find it now:
What's the appropriate(s) general reference(s)
for the "R language and environment for statistical computing and
graphics" that should be included
in a scientific article?
Thanks
Agus
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
2005 Aug 24
6
Cisco 7960 / SIP & tftp configs
I have three questions about my 7960 phone that I can't discern from the
docs/wiki.
1st - If I change the SIPxxxxxx.cnf file to change registrations it sets
up new lines as expected. If I delete a line it doesn't get removed when
I reboot the phone. I have to go to the phone, unlock it, and reset the
SIP parameters. How do I make it "forget" what it has programmed and
2002 Jul 17
2
Problems with make pdf (R-patched_2002-07-15.tar.gz)
After configure, make and make check on
a linux Suse 7.3 box, I run
make dvi and make info with no problems but get
a lot of garbage to my screen during make pdf.
Is this normal? Is there a bug in this part
of the installation?
This is part of what I get on the screen:
humboldt:/usr/local/R-patched # make pdf
make[1]: Entering directory `/usr/local/R-patched/doc'
make[2]: Entering
2003 Feb 17
4
inserting elements in a list
I've searched the doc for insert
and could not find the way to do the following,
hope someone can help:
Let's say we have a vector:
> a
[1] "1" "2" "3" "5" "6" "3"
and we want to insert a "7" after
any given "3", i.e., we want vector a
to become:
[1] "1" "2" "3"
2001 Nov 26
2
summary() and range(): inconsistency?
I've found the following and I'm kind
of confused:
> summary(delme)
Min. 1st Qu. Median Mean 3rd Qu. Max.
1 2950 5699 5756 8572 11680
> range(delme)
[1] 1 11675
summary() and range() give different Max. value for the same
vector!
Agus
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel
2002 Jan 24
2
R-gnome: no way to configure
Hi!
I've been able to configure and make R (1,4,0 linux)
except for the gnome support. I've checked all packages and libs mentioned
in R-admin.pdf (and by Luke Tierny) to make sure that I have them and even
using the following:
./configure --with-gnome --with-gnome-includes=/opt/gnome/include
--with-gnome-libs=/opt/gnome/lib --with-libglade-config=opt/gnome/lib
I still get:
R is now
2004 Aug 11
3
X100P outbound only (Don't answer)
I tried implementing my * and it didn't pass the spouse factor at this
time. I wanted to hook it up for outbound only at this point to get a
better handle on the dial plans and the echo problem.
I thought this might have been done before as a natural part of testing
- but maybe not.
In wcfxo.c I found this:
if (!wc->offhook && !wc->ringdebounce) {
if
2001 Oct 18
3
Rcmd SHLIB in rw1031 (R for Win)
Thanks for the answers on readme.packages.
I have installed Rw1031 from SetupR.exe including the option
for compiling source files and, following directions in
www.stats.ox.ac.ul/pub/Rtools, have installed:
-tools.zip
-Perl (Active Perl)
-mingw-1.1.tar.gz
-copied sh.exe to c:\bin\sh.exe
After Perl installation, its directory is added to my path. I have also
added the directory where the R
2002 Dec 23
4
calling R from python (fwd)
A question for a (experienced) user of the RPython package on
linux.
I'm trying to call R from python on a linux (Suse 7.3) box.
After installing R CMD INSTALL -c RSPython_0.5-2.tar.gz
I start python and do:
>>> import sys
>>> sys.path.append('/usr/local/lib/R/library/RSPython')
>>> sys.path.append('/usr/local/lib/R/library/RSPython/Python')
2001 Nov 19
3
dist
Hi list!
I'm computing multivar. distances from a set of centroids
to a (large) set of individuals. I'm now just using rbind
to create a matrix (x) with the centroid and the individuals,
then run as.matrix(dist(x)) and finally select the appropriate columns,
as I'm not interested on the distances among individuals.
Therefore, this procedure implies a waste of computing time.
Is there
2002 Feb 22
2
R gnome and lda: found the difference
Saving lda.default as text files from within gui="none" and from within
gui="gnome"
and comparing afterwards with diff, I get:
alobo at humboldt:> diff lda.default.gnome.txt lda.default.nognome.txt
1c1
< function (x, grouping, prior = proportions, tol = 1, method =
c("moment",
---
> function (x, grouping, prior = proportions, tol = 1e-04, method =