Displaying 20 results from an estimated 7000 matches similar to: "Adding values to the end of a vector?"
2005 Jan 07
4
hist function to give each cell equal area
Hi,
I want to use hist with non-equi-spaced breaks, picked such that the
fraction of the data points falling in the cells (defined by 'breaks') is
roughly equal accross all cells.
Is there such a function that will automatically try to determine the
breaks to fullfill this requirement?
Something like..
hist( x, br = magic_function_to_pick_breaks())
For example, if x looked like
2004 Nov 03
4
Legend placement in barplot?
This has been asked before, but all the answers are hidiously complex.
The
legend.text=TRUE
option of barplot is almost exactly what I need, except I need a
legend.placement='tl'
(top left) option. This option would be in contrast to the default
placement which we could call 'tr' (top right).
Anyone know how to edit the barplot code to make this change? Could
someone like me
2005 Jun 06
6
Strange characters in 2.1.0?
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
Signif. codes: 0 <80><98>***<80><99> 0.001 <80><98>**<80><99> 0.01
<80><98>*<80> <99> 0.05 <80><98>.<80><99> 0.1 <80><98> <80><99> 1
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
hmm... they go away when I
2004 Sep 18
2
edit(crash)?
I found that the edit command kills my linux/R/emacs environment
sometimes.
How should I report this bug?
2005 May 25
2
weighted.mean and tapply (again)
I read answers to questions including the words "tapply" and
"weighted.mean", but I didn't understand either the problem (data) or the
solution provided.
Here is my question ...
> dat[1:10,]
GROUP VALUE FREQUENCY
1 2 2 78
2 2 3 40
3 2 4 16
4 2 5 3
5 2 6 1
6 2 8 1
7
2004 Oct 06
2
R-(wiki)-pedia?
Is there an R wiki?
Looking at the huge amount of traffic on this list, I think wiki could be
an exelet outlet for all the constructive enthusiasm here.
I don't think it would be too hard to port the existing R documentation
(the stuff you get with the ?) onto a wiki system, then users could add
their own examples and comments.
Having distinct web page style organization would be easier to
2004 Nov 04
4
highly biased PCA data?
Hello, supposing that I have two or three clear categories for my data,
lets say pet preferece across fish, cat, dog. Lets say most people rate
their preference as being mostly one of the categories.
I want to do pca on the data to see three 'groups' of people, one group
for fish, one for cat and one for dog. I would like to see the odd person
who likes both or all three in the
2006 Mar 03
4
Plotting FAQ?
Hi,
Since I started to make some 'final' plots of my data I found that I
have tons of questions related to 'the little things'. Rather than
bother the list with all the questions (ahem), or search the archives
for similar questions and translate the context, I would like to find a
FAQ for plotting in particular (and R programming in general). I know
for sure (searching the
2004 Nov 04
2
Bug report (PR#7341)
Full_Name: Dan B
Version: na
OS: na
Submission from: (NULL) (80.6.127.185)
I can't log into the bug tracker (I can't find where to register / login).
In this way I can't add the following context diff (hopefully in the right
order) for my changes to the matrix.Rd...
Hmm... I guess this should be a separate report anyway...
The first diff explains how the dimnames list should
2004 Aug 14
2
numerical accuracy, dumb question
I store an id as a big number, could this be a problem?
Should I convert to at string when I use read.table(...
example id's
1001001001001
1001001001002
...
1002001002005
Bigest is probably
1011001001001
Ta,
Dan.
2004 Oct 11
2
hclust title and paste - messed up
I use the following code to scan a (limited) parameter space of clustering
strategies ...
data <- read.table(...
dataTranspose <- t(data)
distMeth <- c("euclidean",
"maximum",
"manhattan",
"canberra",
"binary"
)
clustMeth <- c("ward",
2005 Jan 04
2
print(cat(bleh)) shows up strange NULL
I am trying the following code...
for(i in 1:bins){
print(cat(c(i, length(var1[var1==i]))))
}
Where var1 is a vector with zero or more values = {1, 2, ..., bins} (or
something like that).
The result I get is...
1 33NULL
2 28NULL
3 39NULL
4 27NULL
5 32NULL
6 30NULL
7 23NULL
8 16NULL
9 10NULL
10 15NULL
11 13NULL
12 7NULL
13 3NULL
14 7NULL
15 2NULL
16 0NULL
17 2NULL
18 0NULL
19 0NULL
20 3NULL
2004 Oct 11
1
plot hclust - canberra dist + median linkage
Gives strange results.
I get 'weird' dendrograms with canberra / binary distance metric and
median / centroid cluster methods.
Is this just my data?
Dan
2005 Jan 04
1
R help search and Java(tm)?
I found this great search
source("http://www.statslab.cam.ac.uk/~djw1005/Stats/Interests/search.R")
helpHTML()
Has (or will) this become the standard search method?
Is R 'Free Software'? The dependence on Java seems a bit of a pain for
'freeness'.
Did the above make it into CRAN?
Cheers,
Dan.
2005 Aug 10
1
Question about curve fitting...
Meta:
This question is somewhat long and has two parts, I would be very happy
for someone just to nudge me in the right direction with the manual /
tutorial, as I am somewhat lost...
1) How do I fit a curve of the form "y = k1 * x^k2" ?
I want to estimate values of k1 and k2 given the x/y data I have, and I
can't work out how to get R to calculate and return their estimates.
2)
2004 Jun 01
2
X/Emacs and R in Linux
Martin Maechler said...
>
>>>>>> "lanceh" == lanceh <lanceh at ibm.net> writes:
>
> lanceh> Sorry if this is a redundent question but I searched the
> lanceh> archives and although I found a couple of similar questions I
> lanceh> saw no responses. I am running in Linux and when I try to
>
>You should have looked in the
2006 May 09
1
Calling R from C
Dear R-helpers,
I'm trying to transfer a loop from R code to C to improve performance using
the .Call interface. However, I ran into problems before even getting
started, and I hope (fear) I'm missing something completely obvious here.
I use the following C function (passing an integer to the C function and
printing it):
#include <R.h>
#include <Rinternals.h>
SEXP
2004 Jun 16
4
non-linear binning? power-law in R
First, thanks to everyone who helped me get to grips with R in (x)emacs
(I get confused easily). Special thanks to Stephen Eglen for continued
support.
My question is about non-linear binning, or density functions over
distributions governed by a power law ...
y ~ mu*x**lambda # In one of its forms
# (can't find Pareto in the online help)
Looking at the following
2004 Dec 08
2
Surface graph.
What package/code could I use to create a 3-d surface graph of the predicted
values over two of the explanatory variables' coefficients?
Jim
James Bang
Department of Economics
University of Illinois
Well I AM missing the back of my head.you COULD cut me a little slack!
-Homer Simpson
2003 Aug 20
2
grid Graphics by Paul Murrell
Dear All,
I've been trying to format a plot output using par() with mfrow, fin,
mai, etc and basically it's proving to be a pain. I searched on google
and found that Paul Murrell had written a grid Graphics program which
seems perfect. However, when I try and use say viewport() I just get a
function not found error. Can someone tell me what I'm doing wrong please?
Thank-you