Displaying 20 results from an estimated 2000 matches similar to: "grouping rows into bin ranges"
2007 Nov 21
3
shrink a dataframe for plotting
I get tables with millions of rows. For plotting to a screen-size
jpg, obviously just about 1000 points are enough. Instead of feeding
plot() the original millions of rows, I'd rather shrink the original
dataframe, using some kind of the following interpolation:
-- split dataframe into chunks of N rows each, e.g. 1000 rows each
-- compute average for each column
-- issue one new row
2007 Nov 23
4
PCA with NA
Dear all,
(Mac OS X 10.4.11, R 2.6.0)
I have a quantitative dataset with a lot of Na?s in it. So many, that
it is not possible to delete all rows with NA?s and also not
possible, to delete all variables with NA?s.
Is there a function for a principal component analysis, that can deal
with so many NA?s.
Thanks in advance
Birgit
Birgit Lemcke
Institut f?r Systematische Botanik
2007 Nov 21
1
problem with nb2listw
Hi,
I am a new student to R and I was hoping someone could help me with
the error message I keep getting when I try to use the nb2listw()
function.
I have 45 sites and I want to get an autocorrelation value for sites
within 1000m of each other.
coords<-cbind(EAST,NORTH)
coords<-as.matrix(coords)
nb1000<-dnearneigh(coords,0,1000,longlat=TRUE)
then when I try to run the
2007 Nov 02
1
Sweave, and long lasting scripts
Dear R user,
I am using Sweave to write my reports with R code. Unlucly my code take a
lot of time to run, and I don't want to run it multiple time, if possible,
as I am still developping the tools.
It seems that a sweave run does not save the enviroment at the end of the
process, is there a way to avoid to lunch multiple time the same commands?
maybe it could be possible to store chunck of
2008 Feb 23
1
Standard method for S4 object
Hi the list,
I am defining a new class MyClass. Shortly, I will submit a package with
it. Before, I would like to know if there is a kind of "non official
list" of what method a new S4 object have.
More precisely, personnaly, I use 'print', 'summary' and 'plot' a lot.
So for my new class, I define these 3 methods. Is there some other
method that a R user can
2007 Dec 04
1
How can I use Adehabitat to obtain an .asc object with the predicted values of a niche model?
Dear all,
I'm using the package adehabitat in R to import several .asc files
(=matrix),
and also create a kasc object (=dataframe) with all of them.
The main idea is to use this kasc object to map the predicted values of
climate-matching model for an overall area. However, I don't know how to
proceed: Do I have to project the model (already stored in R) onto the kasc
object directly, or
2007 Oct 29
3
how to split data.frame by row?
hi,
if I have 20 x 3 data.frame, how to split it into
10 x 6 (moving the lower part of 10x3 to column)
or
5 x 12
thanks
--
Weiwei Shi, Ph.D
Research Scientist
GeneGO, Inc.
"Did you always know?"
"No, I did not. But I believed..."
---Matrix III
2008 Mar 12
1
Spatially Lagged Predictor Variable Models
Hi Everyone,
I am doing a project based on "Spatially Lagged Predictor
Variable Models", I would like to know which package in R would execute this
model. Also, I am new to this field of spatial statistics. Any suggestions
for a good book on spatial regression analysis would be appreciated. Thanks
Again.
Cheers
Arun
--
View this message in context:
2007 Oct 26
1
Help needed on calculation of Moran's I
Hi,
I am trying to calculate Moran's I test for the residuals for a
regression equation, but I have trouble converting my coordinates into
nb format.
I have used the dnearneigh() funtion now with an arbitrarily high upper
distance to make it include all plots. However, when I do the
lm.morantest() I get a Moran's I value which is the same as the expected
value and a P-value of 1.
I
2008 Apr 17
2
CRAN packages hosting policy
Hi to all,
I recently created a small package which contains some simple R
functions in order to help students in my research unit to use R. The
package is pure R, it passes R CMD check, but it is really designed
for internal use and, moreover, it is entirely documented in french.
Is it possible to upload and to host this kind of package to CRAN ? Or
is it better, as it is quite a private tool
2007 Nov 08
4
vectorize a list
Dear R user
Suppose I have the following list:
> f <- rnorm(2)
> s <- rnorm(3)
> l <- list(f,s)
> l
[[1]]
[1] 0.31784399 0.08575421
[[2]]
[1] -0.6191679 0.7615479 -1.0087659
Can I stack the entries of this list in 1 vector with the first list
entry followed by the second? The reference manual says that I can use
the command /stack/, which can take as arguments
2008 Apr 20
1
representing binary data for Genetic Algorithm in R
Hello all,
I am trying to implement a simple Genetic Algorithm. I am doing this
in R since I want access to the statistical functions (eg lm) it
provides.
I'm not new to programming, or GAs, but I am totally new to R (the
package and the language), and I am hoping someone could help with
these questions:
1. I am going to use a binary representation, it seems that vectors of
Factors would
2007 Oct 22
3
Spatial autocorrelation
Hi,
I have collected data on trees from 5 forest plots located within the
same landscape. Data within the plots are spatially autocorrelated
(calculated using Moran's I). I would like to do a ANCOVA type of
analysis combining these five plots, but the assumption that there is no
autocorrelation in the residuals is obviously violated. Does anyone have
any ideas how to incorporate these spatial
2006 Jul 01
3
Installation, permissions of /usr/local/lib/R (PR#9054)
Full_Name: Jori M?ntysalo
Version: 2.3.1
OS: Linux, GNU/Debian stable
Submission from: (NULL) (81.197.171.182)
I said
./configure --with-readline=no --with-x=no
make
make install
and everything works except that /usr/local/lib/R/etc/ldpaths was not readable
as normal user.
2008 Feb 25
3
How to include the documentation of a function in a Sweave document?
Dear R-help,
I would like to include the documentation of an R function in an
*.rnw document processed by Sweave. Because I'm sharing my *.rnw
files with colleagues under Linux and Windows (I'm on Mac OS X),
I would like a pure R solution.
The naive approach doesn't work, because Sweaving this *.rnw
file:
-------- tmp.rnw --------
\documentclass{article}
\begin{document}
2007 Mar 07
3
possible bug in model.frame.default
Dear list,
I may have found a bug in model.frame.default (called by the lm function).
The problem arises in my R dev version but not in my R 2.4.0.
Here is my config :
> version
_
platform
x86_64-unknown-linux-gnu
arch
x86_64
2007 Dec 05
5
Which Linux OS on Athlon amd64, to comfortably run R?
Dear R-users.
I eventually bought myself a new computer with the following
characteristics:
Processor AMD ATHLON 64 DUAL CORE 4000+ (socket AM2)
Mother board ASR SK-AM2 2
Ram Corsair Value 1 GB DDR2 800 Mhz
Hard Disk WESTERN DIGITAL 160 GB SATA2 8MB
I'm a newcomer to the Linux world.
I started using it (Ubuntu 7.10 at work and FC4 on laptop) on a regular
basis on May.
I must say I'm
2007 Dec 05
5
Which Linux OS on Athlon amd64, to comfortably run R?
Dear R-users.
I eventually bought myself a new computer with the following
characteristics:
Processor AMD ATHLON 64 DUAL CORE 4000+ (socket AM2)
Mother board ASR SK-AM2 2
Ram Corsair Value 1 GB DDR2 800 Mhz
Hard Disk WESTERN DIGITAL 160 GB SATA2 8MB
I'm a newcomer to the Linux world.
I started using it (Ubuntu 7.10 at work and FC4 on laptop) on a regular
basis on May.
I must say I'm
2008 Feb 01
6
Accessing the elements of a list
Hi R,
I wanted to know how do we access the elements of a list. In particular,
v=list(c(1,2,3,4,5),c(1,2,33,4,5),c(1,2,333,4,5),c(1,2,3333,4,5))
I want to access all the thirds items of the elements of the list. i.e.,
I want to access the elements, 3,33,333,3333. This can be done through
sapply as:
sapply(v,function(x) x[3])
But I need to access this without using
2006 Mar 29
1
Monmonier algorithm
Hello list,
does anyone know if Monmonier algorithm is available in R? I've checked
several spatial libraries, but I didn't find anything related to it.
However, there is a huge documentation and I may have missed it.
Before coding it, I'd like to be sure it doesn't already exist.
Cheers,
Thibaut Jombart.
--
######################################
Thibaut JOMBART
CNRS UMR