Displaying 20 results from an estimated 1100 matches similar to: "Query: weighting cells in histogram"
2003 Oct 02
2
Query: What is 'Trellis'?
I'm an R-beginner and have found the function 'panel.mathdensity' in the full manual. R can't find the function and under 'Description' in the manual it says that they "are available in Trellis". What is it and where can I find the function?
Regards,
M?rten
M?rten Bjellerup
Doctoral Student in Economics
School of Management and Economics
V?xj? University
2003 Nov 05
1
Fitting a 3-parameter gammadistribution
I have 'grouped' data, that is in the form of:
Interval Median
0-9.9%: -25
10-19.9%: 0
20-29.9%: 3
30-39.9%: 10
40-49.9%: 50
50-59.9%: 200
et cetera
and want to fit a three parameter gamma distribution. Does anyone know of an existing routine for doing this (or something similar)? Any help or comment is much appreciated.
Regards,
M?rten
M?rten
2015 Oct 06
6
[PATCH 0/4] ocaml: Allow Guestfs.t handle to be garbage collected.
Allow Guestfs.t handle to be garbage collected, and add a
regression test.
2009 Oct 14
1
using mapply to avoid loops
Hello, I would like to use mapply to avoid using a loop but for some reason, I can't seem to get it to work. I've included copies of my code below. The first set of code uses a loop (and it works fine), and the second set of code attempts to use mapply but I get a "subscript out of bounds" error. Any guidance would be greatly appreciated. Xj, Yj, and Wj are also lists, and s2,
2004 Sep 10
2
using vorbiscomments with metaflac not utf8-encoded
Using metaflac (1.0.3) like this:
metaflac file.flac --set-vc-field=title=test??????e?
The vorbiscomment will not be UTF8-encoded, instead
they will be stored directly as ANSI.
When trying to add some more comment, it gave the
following error:
ERROR: writing FLAC file file.flac, error =
FLAC__METADATA_CHAIN_STATUS_OK
Does that mean that weren't enough room for the
comments? But
2009 Oct 29
3
Weird error: Error in xj[i] : invalid subscript type 'list'
I got the error. I haven't been able to get a stand along case so that
I can show it here. But could somebody give some clue on what could
cause this error? Since I never defined xj[i], I don't understand
where this error come from.
Error in xj[i] : invalid subscript type 'list'
2008 Jul 01
1
[.data.frame speedup
Below is a version of [.data.frame that is faster
for subscripting rows of large data frames; it avoids calling
duplicated(rows)
if there is no need to check for duplicate row names, when:
i is logical
attr(x, "dup.row.names") is not NULL (S+ compatibility)
i is numeric and negative
i is strictly increasing
"[.data.frame" <-
function (x, i, j,
2011 Apr 21
2
combining matrices
Heja,
I hope someone is still there to help me:
How can I somehow merge/combine matrices to get such a result:
Matrix A
A B
x1 1 0
x2 1 1
Matrix B
C D
x3 1 0
x4 0 1
Resulting Matrix?
A B C D
x1 1 0 0 0
x2 1 1 0 0
x3 0 0 1 0
x4 0 0 0 1
Does anyone see this probably obvious solution with R how to do this?
Sorry if this question is silly...it's too hot here to think properly ;O)
2004 May 24
1
as.matrix.data.frame() in R 1.9.0 converts to character when it should (?) convert to numeric
Conversion of a data frame to a matrix using as.matrix() when a
column of the data frame is POSIXt and all other columns are numeric
has changed in R 1.9.0 from R 1.8.1. The new behavior issues a
warning message and converts to a character matrix. In R 1.8.1, such
an object was converted to a numeric matrix.
Here is an example.
#### R 1.9.0 ####
> foo <- data.frame(
2008 Oct 09
1
stack or dissolve matrix without double entries
Heja,
I've some bigger distance-matrices like this:
num [1:3231, 1:3231] 0.000 0.176 0.176 0.176 0.176 ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:3231] "A" "B" "C" "D" ...
..$ : chr [1:3231] A" "B" "C" "D" .
I actually want to convert them into a 2 column dataframe like this:
data.frame':
2017 Dec 01
1
Bug is as.matrix.data.frame with nested data.frame
Converting a data.frame with a nested data.frame to a matrix fails:
x <- structure(list(a = data.frame(letters)),
class = "data.frame",
row.names = .set_row_names(26))
as.matrix(x)
#> Error in ncol(xj) : object 'xj' not found
The offending code is here, in the definition of as.matrix.data.frame
(source/base/all.R):
for (j in pseq) {
2009 Nov 04
4
unexpected results in comparison (x == y)
Dear readers of the list,
I have a problem a comparison of two data from a vector. The comparison
yields FALSE but should be TRUE. I have checked for mode(), length() and
attributes(). See the following code (R2.10.0):
-----------------------------------------------
# data vector of 66 double data
X =
2005 Dec 02
4
ftp:// error
Hello,
from a server where neither a rsync daemon nor ssh is running I'm trying
to backup the whole data with ftp. So my idea was to call rsync like this:
rsync -v -a 'ftp://1.2.3.4/' my_folder
But this gives me:
ftp: unknown host
ftp: unknown host
ftp: Unknown host
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code
2008 Mar 03
7
help for the first poster- a simple question
Hi, there,
I cannot get accurate value for calculation.
for example:
ld<-sqrt(1*0.05*0.95*0.05*0.95)
0.05*0.95-ld=-6.938894e-18
0.05*0.95-ld==0 is False.
I met this problem in my program, how can I handle it. Thanks.
xj.
2006 Mar 23
3
dovecot died
Hello,
today our dovecot imap server died. The following message appeared in
the logfile:
dovecot: Mar 23 07:00:58 Error: pipe() failed: Too many open files
We have one dovecot instance for pop3 and one for imap, so while the
pop3-service was still available, the imap-service was not running any more.
I've seen a lots of users keeping there imap-connections idle for hours,
often more
2003 Jun 18
1
suggestion for make.names
I would like to suggest a modification to the make.names() function.
The current implementation has two problems:
1. It doesn't check if a name matches an R keyword (like "function").
2. The uniqueness algorithm is not invariant to concatenation.
In other words,
make.names(c("a","a","a"),unique=T) !=
2003 Jun 18
1
suggestion for make.names
I would like to suggest a modification to the make.names() function.
The current implementation has two problems:
1. It doesn't check if a name matches an R keyword (like "function").
2. The uniqueness algorithm is not invariant to concatenation.
In other words,
make.names(c("a","a","a"),unique=T) !=
2001 Nov 21
2
distances from points to line
Dear all,
I have discovered that there are many things that I used to do in my GIS
which are easily done directly in R, for example calculating interpoint
distances using geoR and pick out points inside a polygon using splancs.
I now wonder, is there a function to create a line object like a
watercourse and then calculate the distances between many points in space
and this line?
I couldn't
2011 Feb 08
4
NoSQL Storage Backend
Hello,
I found a posting on the mailing list from 2008 "Adding new storage
backend to Dovecot" while searching for POP3 and IMAP servers, that
allow to use a NoSQL backend rather than a traditional file system.
The problem with traditional filesystems is, that they are very limited.
You cannot easily extend it, even with RAID 10 all messages may be lost
due to a RAID controller
2004 Nov 07
3
dispatch.cgi not found error
I''m following along on the 10 minute tutorial. Accessing blog at
http://www.ampede.com/blog/ works fine. I then created Weblog using the
script/new_controller generator. When I try to access
http://www.ampede.com/blog/weblog/, I get:
-------------------------------------------------------------
Not Found
The requested URL /dispatch.cgi was not found on this server.