Displaying 20 results from an estimated 400 matches similar to: "How to assign a rank to a range of values.."
2005 Sep 15
4
Error in vector("double", length) : vector size specified is too large....VLDs
I have what R seems to consider a very large dataset, a 12MB text file of
lat,long,and height values, 130,000 rows to be exact.
Here's what I get:
Thomas Colson
North Carolina State University
Department of Forestry and Environmental Resources
(919) 673 8023
tom_colson at ncsu.edu
Calendar:
www4.ncsu.edu/~tpcolson
2006 Oct 08
1
Probability of exceedance function question
I'm trying to calculate a cumulative area distribution (graph) of drainage
areas. This is defined as P(A > A*). Simple in principle. I can do this in
excel, with "COUNTIF", which will count the number of cells in the row
"area" that have area A, then determine, for each cell in the row "area, how
many cells exceede that area, then dividing that number by the total
2005 Feb 14
1
64 Bit R Background Question
Hi,
I've collected quite a bit of elevation data (LIDAR elevation points) and am
looking for a suitable platform to do analysis and modeling on it. The data
is sitting in an Oracle database, one table, 200 million rows of x,y, and z.
I'm trying to figure out what hardware resources we need to reserve in order
to run 64 BIT R for this size data.
Here's my question:
Is the 64 BIT
2006 May 03
2
Nested model and variance partitioning
Dear R users,
I face to a nested pattern and despite the numerous examples in the help I am
still confused.
I sampled bugs in different habitats within sites which were within rivers
themselves within different regions.
The habitat correspond to different substrata (not systematically present in all
sites). For rivers and sites, I have environemental variables (e.g. altitude
and slope of
2010 Aug 25
1
SEM : Warning : Could not compute QR decomposition of Hessian
Hi useRs,
I'm trying for the first time to use a sem. The model finally runs,
but gives a warning saying :
"In sem.default(ram = ram, S = S, N = N, param.names = pars, var.names
= vars, : Could not compute QR decomposition of Hessian.
Optimization probably did not converge. "
I found in R-help some posts on this warning, but my attemps to modify
the code didn't change
2007 Mar 27
1
"Groups" in XYPLOT
I'm not sure I'm barking up the right tree here, but would I need to make
use of groups to plot two separate datasets within ONE panel in xyplot? The
desired end result is a single xy plot of two separate (but similar in
values and ranges).
Full code follows, xyplot code at bottom
#########Determine Frequencies
##########coastal_slope
#needs the maptools package to read ESRI grid
2005 Feb 18
2
bivariate empirical cdf
Dear R users,
I'm trying to write a small function in order to compute empirical cumulative density function.All seems to work but when I try to plot the function, I always get error messages.
This is the function I use
mecdf<-function(u,v,z) {
u=sort(u)
v=sort(v)
n=length(u)
nb=0
for (i in seq(1,n)) {
if (u[i]<z & v[i]<z) {
nb<-nb+1
}
}
nb=nb/n
2017 Oct 05
3
working with ordinal predictor variables?
I'm trying to develop a linear model for crop productivity based on
variables published as part of the SSURGO database released by the
USDA. My default is to just run lm() with continuous predictor
variables as numeric, and discrete predictor variables as factors, but
some of the discrete variables are ordinal (e.g. drainage class, which
ranges from excessively drained to excessively poorly
2010 May 29
1
Help with R graphics
I need to make a plot illustrating main characterisitig of river
drainage data. For this I have 2 questions:
how can I rotate a histogram -90? (or 270?) (like the horizontal=TRUE
with plot)?
how can I use split.screen to produce 3 plot with uneuqal size (1/5,
2/5, 2/5 of the screen width)?
thank you very much in advance for your help
fabian
2004 Aug 31
1
appending data to a dataframe
Dear R users,
I am sorry to ask you such a pathetic newbie question, but how does one
append data at the end of a data frame?
I am working with GRASS/R library, but the question is about R.
I have a data.frame containing the following variables
basinID, distoutlet, drainage_area, slope
These variables are stored for all pixels of Grass Raster objects. For each
drainage basin (basinID), I'd
2017 Oct 05
0
working with ordinal predictor variables?
I would consider this is a question for a statistics forum such as
stats.stackexchange.com, not R-help, which is about R programming. They do
sometimes intersect, as here, but I think you need to *understand what
you're doing* before you write the R code to do it.
Obviously, IMO.
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
2010 Sep 17
3
ZFS Dataset lost structure
After a crash, in my zpool tree, some dataset report this we i do a ls -la:
brwxrwxrwx 2 777 root 0, 0 Oct 18 2009 mail-cts
also if i set
zfs set mountpoint=legacy dataset
and then i mount the dataset to other location
before the directory tree was only :
dataset
- vdisk.raw
The file was a backing device of a Xen VM, but i cannot access the directory structure of this dataset.
However i
2007 Jan 17
1
smbstatus -B segmentation fault
When using Samba 3.0.23b (slightly old, I know) on CentOS 4.4,
smbstatus -B fails with a segmentation fault. smbstatus works, and
tdbdump is able to dump brlock.tdb and locking.tdb without any errors
(which is not what I expected).
Here's the backtrace (non-ASCII characters replaced with 'X'):
#0 0x0017fa2c in memcpy () from /lib/tls/libc.so.6
#1 0x0029b19f in tdb_write
2016 Jun 07
1
dfree is broken on this system
Running Samba 4.3.4 on a Solaris 10 i386 box and Samba 4.4.3 on a
Solaris 10 sparc box.
I have not looked at the logs for awhile. Just checking now and I see
many of the following on both systems.
[2016/06/01 11:22:04.402945, 0] ../source3/smbd/dfree.c:139(sys_disk_free)
WARNING: dfree is broken on this system
What could be the cause of this?
Tom Schulz
Applied Dynamics Intl.
schulz at
2005 Feb 23
1
BLAS or ATLAS?
I believe that actually means configure was able to use the BLAS you
specified (MKL in this case). You can scan through config.log to make sure.
Andy
> From:
>
> Fedora Core 3
>
> I installed the Intel MLk,
>
> and tried : --with-blas="-lmkl -lguide -lpthread"
>
> and got : External libraries: readline, BLAS(generic)
>
> thus I'm
2018 Mar 12
1
Equivalent of gtools::mixedsort in R base
x <- c( "a1", "a10", "a2" )
y <- c( "b10", "b2", "a12", "ca1" )
DF <- expand.grid( x = x, y = y )
# randomize
set.seed( 42 )
DF <- DF[ sample( nrow( DF ) ), ]
# missing from gtools
mixedrank <- function( x ) {
seq.int( length( x ) )[ gtools::mixedorder(x) ]
}
o <- do.call( order, lapply( DF, mixedrank ) )
2009 Dec 15
7
ZFS Dedupe reporting incorrect savings
Hi,
Created a zpool with 64k recordsize and enabled dedupe on it.
zpool create -O recordsize=64k TestPool device1
zfs set dedup=on TestPool
I copied files onto this pool over nfs from a windows client.
Here is the output of zpool list
Prompt:~# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
TestPool 696G 19.1G 677G 2% 1.13x ONLINE -
When I ran a
2015 Oct 10
3
[PATCH] Extend Multiboot1 with support for ELF64 file format
This patch is just a (shameless) copy from bug #28 [1].
The original patch has been sitting there for a couple of years now,
and it was based on Syslinux v 4.05.
The patch I am posting here is just a re-base on v.6.03. Whichever
inadequate formatting (tabs, trailing spaces...), or any kind of
correction that was required for the original patch to be accepted, is
probably still required now.
2007 Nov 14
1
reading tables from url
I'm trying to read some web tables directly into R. These are both
genome sequencing projects (eukaryotes and metagenomes) from NCBI and
look very similar; however, only the first one works.
http://www.ncbi.nlm.nih.gov/genomes/leuks.cgi
http://www.ncbi.nlm.nih.gov/genomes/lenvs.cgi
I added ?dump=selected to the end of the url string to get a tab-
delimited file (which is what happens
2011 Oct 19
1
smbd PANIC at privileges
I've had a lprng/samba print server for (literally) years that has just
worked perfectly. Everything is setup with full guest printing, mainly
to make our lives here a little easier.
I had to migrate the machine from one physical server to another and I
just basically copied the lprng printcap and smb.conf file to the new
server, restarted the services, and everything seems to be working.