f what your code or data looks like, or how often
> each of the operations is being done.
>
> There are probably many ways of speeding up the code, but with no idea
> of what the code is, no solutions can be specified.
>
> On Thu, Sep 9, 2010 at 11:09 PM, rajesh j wrote:
> >
Hi,
I perform the operations unlist,strsplit,gsub and the for loop on a lot of
strings and its heavily slowing down the overall system. Is there some way
for me to speeden up these operations..maybe like alternate versions that
exist which use multiprocessors etc.
--
Rajesh.J
[[alternat
Is there a c++ equivalent switch statement in R?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posti
d
3: In `[<-.factor`(`*tmp*`, ri, value = "6") :
invalid factor level, NAs generated
On Mon, Sep 6, 2010 at 9:17 PM, rajesh j wrote:
> But If I do that how will I resize later?
>
>
> On Mon, Sep 6, 2010 at 8:54 PM, ONKELINX, Thierry <
> thierry.onkel...
of some data and an aching desire for an answer does not
> ensure that a reasonable answer can be extracted from a given body of
> data.
> ~ John Tukey
>
>
> > -Oorspronkelijk bericht-
> > Van: r-help-boun...@r-project.org
> > [mailto:r-help-boun...@r-
Hi,
first off, I wanna ask how do I declare a data.frame of 0 rows and n
columns?
Coming to my problem,
I have a data.frame of 22 columns by dynamic rows which I insert using
rbind. The total number of rows could go upto 2,00,000. The problem is that
after about 800 or 900 get inserted rbind sta
great! Thanks
On Sun, Sep 5, 2010 at 9:31 PM, Joshua Wiley wrote:
> On Sun, Sep 5, 2010 at 8:36 AM, rajesh j wrote:
> > No, the examples dont cover it...if i have
> > dat <- list(INT = c("1","2","3"),
> > NUM = c("
4.56","6.78"),
>INT = c("4", "5", "6"),
>NUM = c("3.44"))
>
> ints <- which(names(dat)=="INT")
> nums <- which(names(dat)=="NUM")
>
> dat[ints] <- lapply(dat[ints], as.in
gt; ints <- which(names(dat)=="INT")
> nums <- which(names(dat)=="NUM")
>
> dat[ints] <- lapply(dat[ints], as.integer)
> dat[nums] <- lapply(dat[nums], as.numeric)
>
> str(dat)
>
> Cheers,
>
> Josh
>
> On Sun, Sep 5, 2010 at 6:33 A
d to do a which on INT[0],NUM[0],INT[0] and NUM[0]...ie the [0] index
of all the vectors...
and test if they hold a value
On Sun, Sep 5, 2010 at 9:03 PM, Joshua Wiley wrote:
> On Sun, Sep 5, 2010 at 8:16 AM, rajesh j wrote:
> > Hi,
> > in a way similar to names(dat), can I addres
> > by(indat$V1, cumsum(is.na(indat$nflag)), function(x)
> assign(as.character(x[1]), as.numeric(x[-1]) ,envir = .GlobalEnv) )
> cumsum(is.na(indat$nflag)): 1
> [1] 1 3 4
> -
> cumsum(is.na(indat$nflag)): 2
> [1] 2 5
.
here's an example,
a list has vectors
INT
"2"
"3"
"4"
NUM
"2.37"
"4.56"
On Sun, Sep 5, 2010 at 6:56 PM, David Winsemius wrote:
>
> On Sep 5, 2010, at 9:22 AM, rajesh j wrote:
>
> for e.g., I get the following as a string ve
for e.g., I get the following as a string vector
"int" "4" "5" "6"
after reading the first element, I have to convert this to a integer vector
On Sun, Sep 5, 2010 at 6:44 PM, David Winsemius wrote:
>
> On Sep 5, 2010, at 8:48 AM, rajesh j wrote:
>
Hi,
Is it possible to convert a string vector to integer or numeric vector? In
my situation I receive data in a string vector and have to convert it based
on a given type.
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.or
on compiling for Windows linked at CRAN.
>
> "rajesh j" wrote:
>
> >Hi,
> >
> >I built a package in linux and would like to use it in windows. I cant
> build
> >the package again in windows because it would miss the necessary libraries
> >etc(I'
I thought building a binary took care of that issue. How do I port a linux
library to windows?
On Wed, Sep 1, 2010 at 9:12 PM, Duncan Murdoch wrote:
> On 01/09/2010 11:34 AM, rajesh j wrote:
>
>> This problem doesnt seem to have anything to do with Rcpp. I can't build
>> i
; R CMD INSTALL wonderland
>
> Otherwise, you can use win-builder: http://win-builder.r-project.org/
>
> Romain
>
> Le 01/09/10 17:05, rajesh j a écrit :
> >
> > Hi,
> >
> > I built a package in linux and would like to use it in windows. I cant
> build
>
Hi,
I built a package in linux and would like to use it in windows. I cant build
the package again in windows because it would miss the necessary libraries
etc(I'm using Rcpp). So I need to generate a binary version and try to
install it in windows. I tried this and I get the error
/cygdrive/RToo
Awesome. Thats exactly what I want.
On Sat, May 22, 2010 at 12:45 AM, Erik Iverson wrote:
>
> rajesh j wrote:
>>
>>> Hi,
>>>
>>> I wish to plot multiple histograms(representing different data so
>>> different
>>> range along xaxis but
Hi,
I wish to plot multiple histograms(representing different data so different
range along xaxis but y axis is the same) horizontally in ggplot2. I'd like
it to look like facets. Is this possible?
--
Rajesh.J
[[alternative HTML version deleted]]
Hi,
I've solved the problem. This command works
axis(1,at=axTicks(1),label = axTicks(1)/100);
Thanks for your help
~Rajesh
On Mon, May 17, 2010 at 9:55 AM, rajesh j wrote:
> Hi,
> I tried using this in my plot and I get an error saying
> 'at' and 'labels'
tty(x) / 10)
>
> On Sat, May 15, 2010 at 2:10 PM, rajesh j wrote:
>
>> Hi,
>>
>> I have a plot whole tick values along the axis have a certain range 0 - x
>> .
>> I need to normalize this range without changing my data files. for e.g.,
>> if my plot has
Wonderful. Thanks
On Sat, May 15, 2010 at 10:47 PM, Henrique Dallazuanna wrote:
> Try this:
>
> x <- 1:100
> plot(x, xaxt = 'n')
> axis(1, axTicks(1), pretty(x) / 10)
>
> On Sat, May 15, 2010 at 2:10 PM, rajesh j wrote:
>
>> Hi,
>>
>>
Hi,
I have a plot whole tick values along the axis have a certain range 0 - x .
I need to normalize this range without changing my data files. for e.g.,
if my plot has tick values at 10,20,30,40,50... i have to make this 2,4,6,
etc. but without changing the plot data... I am hoping I can add somet
Hi,
I'd like to plot resonance contours on my spectrogram in the seewave
package. Is this possible?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do r
Hi,
I need to plot spectrogram of a waveform.What package offers this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://w
Hi,
I need to plot a spectogram for a speech signal. Is there a package that can
do this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the po
Hi,
I need my plot to occupy a thin strip-like area but the plot area in R is a
square so when I save it and reduce its height to a strip in my document the
font in the graph looks flattened. Is there someway i can do this in R
itself?..so that my plot is a strip but the font looks normal
--
Raj
Hi,
I plotted a histogram using ggplot2 and saved it as a pdf.However, the
portions outside the histogram dont appear transparent when I use a
non-white bg colour in my latex document.What can I do to make them
transparent?
--
Rajesh.J
[[alternative HTML version deleted]]
__
Hi,
I'm drawing two histograms in the same plot.However, my point of comparison
is the difference in their x coordinates.But my problem is one histogram is
much taller than the other.How can I get them both to the same height?
--
Rajesh.J
[[alternative HTML version deleted]]
__
Hi,
I used the command ggplot as follows...
p<-ggplot(a,aes(x=a$V1,colour=a$V2,fill=a$V2))
p + geom_density(alpha = 0.2,xlim=c(-10,10),ylim=c(0,0.5))
when I say,
dev.print(device=postscript,file="/alpha/dct.pdf")
I get
Warning message:
In grid.Call.graphics("L_polygon", x$x, x$y,
list(as.integer
its a function in ggplot2 for plotting complicated histograms.
2009/7/21 Uwe Ligges
>
>
> rajesh j wrote:
>
>> Hi,
>> I have a histogram.But I need seperate colours for fixed range of
>> values.for
>> eg. between 2-3 on the x axis a colour.3-4 another colo
Hi,
I've used the following command in qplot
qplot(a$V1,geom="histogram",binwidth=0.15,fill =
factor(a$V2),ylab="Frequency",xlab="Rate");
but the title in the legend shows up as factor(a$V2)...how can i change
this?
--
Rajesh.J
[[alternative HTML version deleted]]
_
Hi,
I have a histogram.But I need seperate colours for fixed range of values.for
eg. between 2-3 on the x axis a colour.3-4 another colour etc. and the
legend has to say what each colour is.How can this be done in
geom_histogram?
--
Rajesh.J
[[alternative HTML version deleted]]
_
Hi,
Thanks a lot! That worked wonders! Dint know R was that flexible.I was
looking for packages that do it in vain.
On Sat, Jul 11, 2009 at 6:10 PM, Soetaert, Karline
wrote:
> Rajesh,
>
>
>
> To add a plot next each graph node I would open a new figure, with smaller
> size (see ?par)
> a. The p
Hi,
I'm using the diagram package to make some graph networks.But the plot
window seems to have some kind of margin thats not letting the graph use
entire plot space.How do i remove this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-h
itute.org/efg/R/
> http://addictedtor.free.fr/graphiques/
>
> bests
>
> milton
>
> On Fri, Jul 10, 2009 at 4:04 AM, rajesh j wrote:
>
>> Hi,
>>
>> I actually dont need something thats about hmm's.Something like the
>> plotmat in diagram package would suffice.But I
Hi,
I wish to use different colours for different arrows. Is this possible?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide htt
ry/mhsmm/html/hmmfit.html
> http://finzi.psych.upenn.edu/R/library/RHmm/html/HMMSim.html
>
> May be some of then may contain things of your interest.
>
> Bests
>
> milton
>
> On Fri, Jul 10, 2009 at 2:43 AM, rajesh j wrote:
>
>> Hi,
>>
>> I need to draw
Hi,
I need to draw hmm's in R.I also need to include a small plot near each
state of the hmm.How can I do this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
Hi,
I would like to write text on top of an arrow.How can I do this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://ww
cs system) or
> using a plot function that plays with the graphics settings and leaves them
> in a different state from when the plotting was done (filled.contour is one
> such function).
>
> If you can show us the code that you are seeing the problem with, then it
> will be easier f
Hi,
I have a multiplot of 6 rows and 1 column.I need to draw vertical lines in
each plot.However when I use abline(v=locator(1)$x) in some plots the line
only comes for half the box and it goes beyond the box in others.I suspect
this has something to do with the margins.any help?
--
Rajesh.J
Hi,
I'm trying to modify this function.I want to remove the existing xaxis(the
tick marks and the values below each tick) and make it dynamic so that i can
choose whether i want the xaxis at the top or bottom but i cant seem to
change that.can somebody help me?
plot.Sample <- function(x,xlab=NULL,
Hi,
I need to represent data structures in a figure.stuff like trees with nodes
and pointers etc.can someone guide me to a package that does this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://st
Hi,
I have a multiplot in which i need to label each plot as (a) (b) etc.
preferably on the right side of each plot. My layout is one plot below the
other.How can i do this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project
Hi everyone,
I have a certain requirement and I'm not sure what to do.I need to reduce
the spacing between plots in a multiplot. Make them really close together
such that they almost touch.
Also, I need to add a rectangular strip under my plot(very close to it) such
that the strip contains some te
Hi,
I need to draw a line segment between two points on different plots in the
same multigraph.I've tried looking at the zoominplot function in plotrix but
havent understood much.any help is appreciated
~Aks
[[alternative HTML version deleted]]
__
hi,
I need to draw a line joining graphs,but abline stops within a graph.What do
i do to cover portions between two graphs
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listi
Hi,
I'd like to blow up portions of my graph and put it in boxes beside the
graph.Is there an addon to do this?
--
Rajesh.J
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
hi,
Lets say I plotted a graph and forgot to add a parameter like xlab,ylab etc.
do I have to replot or can I add it later?
--
Rajesh.J
"I skate to where the puck is going to be, not where it has been." - Wayne
Gretzky
---
Hi,
I'd like to plot vertical lines on my plot using the locator.But since
locator returns two values I end up getting 2 vertical lines for every
click.Is there some way only the x coordinate from locator can be returned?
--
Rajesh.J
"
Hi,
I have a really large graph and would like to zoom in on portions of the
graph and post them as blocks below the graph.Is there an add on package to
do this?
--
Rajesh.J
"I skate to where the puck is going to be, not where it has b
Hi,
I'm using the add-on package "sound".I have the following
> q<-loadSample("a.wav")
> plot.Sample(q,axes=FALSE)
this gives me the error.
Error in plot.default(sound(s)[1, ], type = "l", col = "red", ylim = c(-1,
:
formal argument "axes" matched by multiple actual arguments
I'm guessing the
54 matches
Mail list logo