Displaying 20 results from an estimated 6000 matches similar to: "String values as data marks on X/Y axes?"
2005 Nov 07
1
Deleting Rows/Columns
Sorry to bother the group but I am wondering if there are some official ways
to delete a row/column, i.e., some functions of dataTable manipulation? For
rows operation I use subset() but what about columns?
Any advice is welcome and I will be more than grateful if somebody could
make a summary on this issue.
Xiaofan
---------------------------------------------------------
Xiaofan Li
2005 Nov 06
3
How can I assign an argument to transfer whether by ref or by value?
Hello guys,
I am wondering the default way of transferring arguments in R. Is it by
value or by ref in default case, or could that be changed explicitly?
Cheers,
Xiaofan
---
Xiaofan Li
Department of Applied Mathematics and Theoretical Physics
University of Cambridge
2005 Jul 14
1
Fwd: Re: Problem installing R packages
Hi,
I am trying to install the R libraries "rmutil" and "repeated" on a Mac OS
X version 10.4.1 (which has the latest version of the Mac Developer tools
installed) and I am having trouble compiling the libraries.
The error message I receive is as follows (I have only included the error
message when I try and install the rmutil library):
............................
*
2010 Dec 17
4
Changing a value in a particular row and column within a text file
Dear list,
I need to change a value within a particular line of a plain text file
with characters and numbers, and I haven't found any way of doing this
by using R.
What I have a is a file that doesn't have tabular data (so, I think
that 'read.table' or 'read.delim' are not the right tools for this),
but some text, and I now exactly the row that has to be modified and
the
2010 Jul 30
3
simple table/matrix problem
Hi
Given three vectors
x <- c(fish=3, dogs=5, bats=2)
y <- c(dogs=1, hogs=3)
z <- c(bats=3, dogs=5)
How do I create a multi-way table like the following?
> out
x y z
bats 2 0 3
dogs 5 1 5
fish 3 0 0
hogs 0 3 0
('out' is a matrix).
See how the first line shows 'x' has 2 bats, 'y' has zero bats, and 'z'
has 3 bats
and so on for each
2009 Sep 08
5
sparse vectors
Hi
I deal with long vectors almost all of whose elements are zero.
Typically, the length will be ~5e7 with ~100 nonzero elements.
I want to deal with these objects using a sort of sparse
vector.
The problem is that I want to be able to 'add' two such
vectors.
Toy problem follows. Suppose I have two such objects, 'a' and 'b':
> a
$index
[1] 20 30 100000000
2009 Jun 12
1
bundle deprecation
Hi
I read that bundles are to be deprecated in 2.10.
The BACCO bundle contains three packages
(emulator, calibrator, approximator) which I
am happy to unbundle.
But the 'BACCO' moniker has some considerable
cachet for me in terms of recognizability (eg
with grant-giving bodies), as it has become an umbrella
term for a whole bunch of related statistical
functionality of which the three
2009 Jan 22
1
pdf() and pch problems
Hi
R-2.8.1, Suse 11.1
I'm having problems with pdf(). In the following
transcript, file 'f.pdf' does not use the expected symbols for the plot.
It uses a 'q' letter instead of the open circle I get when
viewing the graphics window.
I also get the same under r47678.
Does anyone else get this?
le112:~/scratch/R-2.8.1% R --vanilla --quiet
>
2009 Jan 22
1
pdf() and pch problems
Hi
R-2.8.1, Suse 11.1
I'm having problems with pdf(). In the following
transcript, file 'f.pdf' does not use the expected symbols for the plot.
It uses a 'q' letter instead of the open circle I get when
viewing the graphics window.
I also get the same under r47678.
Does anyone else get this?
le112:~/scratch/R-2.8.1% R --vanilla --quiet
>
2010 Nov 10
1
S4 package warning
Hello everyone. R-2.12.0, suse linux 11.3.
I am debugging a package that uses S4 methods
and R CMD check gives the following warning:
> Warning in methods::findMethods(g, env) :
> non-generic function 'mdm' given to findMethods()
> See the information on DESCRIPTION files in the chapter 'Creating R
> packages' of the 'Writing R Extensions' manual.
I
2009 Jan 22
1
reshape() problems
Hi
I have a data frame with timeseries information like this:
year cell Q1 Q2 Q3 Q4
1940 1 1.2 1.4 1.4 1.9
1941 1 2.9 2.1 3.4 2.4
1942 1 2.7 3.2 1.5 2.6
1940 2 1.4 2.1 2.6 2.4
1941 2 2.4 1.4 1.4 3.4
1942 2 1.4 2.4 2.5 4.4
where the Qs mean 'quarter'. I want to extract from
2010 Jun 29
3
table() of a factor
Hi
suppose I have a factor 'x':
> x <- as.factor(c(rep("a",3),"b","d"))
> table(x)
x
a b d
3 1 1
>
>
But this is not what I want because
I need to include the fact that the count of "c" is zero.
I can't just change the levels of x:
> levels(x) <- c("a","b","c","d")
>
2006 Nov 08
2
Numerical Integration
Hi everyone,
I'm trying to integrate f(x) over x where f(x) does not have a close form
but only numerical values at certurn knots of x. Is there a way that I can
use any generical R function (such as integrate) or any package to do so?
Thanks! I appreciate your time.
Best Regards,
Martha Cao
2006 Oct 16
1
linear mixed effects models with breakpoints
Hi folks
I have some data to which I've been fitting linear mixed effects
models. I am currently using a lme model in the nlme package, with terms
for random effects due to repeated measures on individuals and the
corCAR1 serial correlation structure. However, there is some suggestion
in the data (and from theory) that a breakpoint (change point) model may
be more appropriate. Scott, Norman
2009 Oct 16
1
generalization of tabulate()
Hi
I want a generalization of tabulate() which works on rows of a matrix.
Suppose I have an integer matrix 'observation':
> observation
y1 y2 y3
1 4 0
1 4 0
2 0 3
4 1 0
0 5 0
0 1 4
2 0 3
Each row corresponds to a (multivariate) observation. Note that the
first two rows are identical: this means that data "c(1,4,0)" was
observed twice.
Now suppose I can list the sample
2006 Oct 24
2
Progress Monitor in R
Hi there,
I'm writing a program in R that has a few nested loops. I'd like to
monitor the progress when the program is running and be able to estimate
the remaining time.
I'd highly appreciate it if anyone can shed a light on this issue. Thanks
for your time!
Best Regards,
Martha Cao
2010 Jan 26
1
add points to 3D plot using p3d {onion}
Hi,
Can anyone guide me as to how I can add points to a p3d() plot from
the onion package?? I want to plot points with different colors on the
same 3D plot.? Perhaps I can do this without adding points but somehow
directing the 'h' parameter to give different color to points based on
a factor I assign to them?
FYI, I can do this using using scatterplot3d() and points3d(), but
these plots
2008 Dec 11
1
Complex integration in R
Dear R-user
I need a function to approximate a complex integration. My function is:
aprox2=function(s,x,rate){
dexp(x,rate)*exp(-s*x)
}
where argument s is a complex number. I can't use the integrate function
because it's only used with "numeric" arguments
Does anyone know some function to approximate complex integrals?
Thanks
Borja
[[alternative HTML version deleted]]
2009 Mar 02
2
Goldbach partitions code
Folks,
I put up a brief note describing my naive attempts to compute Goldbach
partitions, starting with a brute-force approach and refining
progressively.
http://jostamon.blogspot.com/2009/02/goldbachs-comet.html
I'd welcome your suggestions on improvements, alternatives, other
optimisations, esp. to do with space vs time tradeoffs.
Is this an example interesting enough for
2009 Oct 13
2
S4 tutorial
I'm looking for some tutorial on S4. I only find the following one,
which is not in English. Can somebody let me know if there is any
introductory material? I'm very familiar with OO and C++. If there is
some material that suits my background, it will be great.
https://stat.ethz.ch/pipermail/r-help/2009-January/184108.html