Displaying 20 results from an estimated 3000 matches similar to: "summary() and range(): inconsistency?"
2011 May 18
3
Date_Time detected as Duplicated (but they are not!)
I have a problem with duplicated date_time stamps that I do not see as
duplicated.
I read a file with observations taken every 30 minutes:
> aur2009=read.csv(paste(datadir,"AUR_ECPP_2009.csv",sep="/"),sep=";",stringsAsFactors=F)
> aur2009[1:3,1:5]
Date.Time E_filled E_filled_flag LE_filled LE_filled_flag
1 1/1/2009 0:00 0 NaN 5.86
2012 May 29
1
problems with xlim in plot.zoo() and window()
I'm trying to get a minimally intuitive way of plotting zoo objects
extracted for given periods of time
I do:
> plot(alyL32007z$NEE_st,col=cod,type="b",pch=18,xlim=time(alyL32007z)[c(3000,15000)])
and get a correct plot but the expression for xlim is hard to read by humans.
I try
> time(alyL32007z)[c(3000,15000)]
[1] "2007-03-04 11:30:00 UTC" "2007-11-09
2001 Nov 20
2
is match slow?
I'm doing
m <- match(matriz, origen, 0)
where matriz is a 270x900 matrix and
origen a 11675 elements vector, and is taking
a very long time.
Is match a function
implemented in C? If not, would a C
code be faster?
Thanks
Agus
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
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
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
2003 Oct 15
2
Subseting in a 3D array
Hi!
I have a 3d array:
> dim(ib5km15.dbc)
[1] 190 241 19
and a set of positions to extract:
> ib5km.lincol.random[1:3,]
[,1] [,2]
[1,] 78 70
[2,] 29 213
[3,] 180 22
Geting the values of a 2D array
for that set of positions would
be:
> ima <- ib5km15.dbc[,,1]
> ima[ib5km.lincol.random[1:10,]]
but don't find the way for the case
of the 3D array:
>
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 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 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
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 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
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"
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
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 Sep 07
1
"load" for text file with functions?
Hi!
I'm writing down the methods that I used to
migrate from Splus to R and expand a bit the
R docs for this subject. Prior to send these
notes to the FAQ curator I would like to make sure
on the following:
Given an ascii text file with several
functions (i.e., myfuncs.txt), is there any equivalent to
load(), so that the functions become
usable in R? Or is it necessary
to install it as a
2003 Jul 04
1
Problem with fitdistr for beta
I have the following problem:
I have a vector x of data (0<x<=1 ) with
a U-shaped histogram and try to fit a beta
distribution using fitdistr. In fact,
hist(rbeta(100,0.1,0.1)) looks a lot like
my data.
The equivalent to
the example in the manual
sometimes work:
> a <- rbeta(100,0.1,0.1)
> fitdistr(x=a, "beta", start=list(shape1=0.1,shape2=0.1))1)
> shape1
2002 Apr 11
3
graphics in batch mode
Hi!
The R-intro guide states that:
"The graphics facilities can be used in both interactive and batch
modes,.."
but I'm trying both
R BATCH commands.file
and
R --no-save < commands.file
and, although I get no errors and
the output file with the results is
written to disk, I get no graphics.
(I want the R function to leave
results in a file that a shell script
reads and use,
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