Displaying 20 results from an estimated 1600 matches similar to: "re moving value from a vector"
2009 Apr 29
3
mode(x) <- "double"
Hi,
I need your help!!
I imported a big coloumn vector from a txt file but it results as mode
:"list" I want to change it in numeric otherwise I can't do my analysis.
This is what i get:
mode (data) <- "double"
Error in eval(expr, envir, enclos) :
(list) object cannot be coerced to type 'double'
>
Thanks a lot!!!
Alessandra
--
View this message in
2012 Mar 13
2
beginner's loop issue
Dear All,
I hope you don't mind helping me with this small issue. I haven't been using
R in years and I'm trying to fill in a matrix
with the output of a function (I'm probably using the Matlab logic here and
it's not working).
Here is my code:
for (i in 1:length(input)){
out[i,1:3] <- MyFunction(input[i,1],input[i,2], input[i,3])
out[i,4:6] <-
2009 Jul 03
3
Histogram
Hallo,
How can I have the control of the width of each bin in the histogram?
I would like to plot my data modifying the number and the width of the bins.
Is there a good pdf or manual where i can learn to use the plot/hist in R
very well?
I find the help not always clear
Thanks a lot
Ale
--
View this message in context: http://www.nabble.com/Histogram-tp24325261p24325261.html
Sent from the R
2009 Jul 07
2
rle
Hallo,
I have an other problem, I have this vector signData with an alternation of
1 and -1 that corrispond to the duration of two different percepts. I
extracted the durations like this:
signData<- scan("dataTR10.txt")
dur<-rle(signData)$length
Now I would like to extract only the positive duration, e.g.
signData <- c(1,1,1,1,-1,-1,-1,1,1,-1,-1)
posduration <- c(4,2)
I
2009 May 09
1
for loop
Hi,
I need your help.
I have a vector of numbers reflecting the switch in the perception of a
figure. For a certain period I have positive numbers (which reflect the
perception A) then the perception changes and I have negative numbers
(perception B), and so on for 40000 iterations. I need to take the rate of
this switch for my analysis. Namely, I need a new vector with numbers which
reflect how
2008 Feb 04
2
maybe a bug in the system.time() function? (PR#10696)
Full_Name: Alessandra Iacobucci
Version: 2.5.1
OS: Mac OS X 10.4.11
Submission from: (NULL) (193.48.71.92)
Hi,
I am making some intensive simulations for the testing of a Population Monte
Carlo algorithm. This involves also a study of the CPU times in two different
case.
What I am trying to measure is the "real" CPU time, the one which is independent
on the %CPU.
I'm using the
2007 Sep 14
1
Print to file
Hello list I'M new
I need help about print to file
How i can Print more table in a file (in append)
using xtable and print functions?
Tanks
Alessandra
2005 Mar 22
2
bottlenecks
Hi
I must to estimate the* performance.
I am try to understand which can be the eventual bottlenecks.
Have you some suggestion?
Can you to signal to me some problems?
Thanks
Alessandra
2007 Oct 08
5
Specify plot size
Hello,
I have another (possibly easy) question:
How to specify the size of a plot? When I draw a plot, I can freely change
the size of the window, which is nice for single plots to find the best
height/width ratio, but as I need a lot of plots in my work, I want to look
them all the same, so I need to specify the size in advance.
Thanks for help,
Christoph
2009 Nov 29
1
How to force regression coeffs for some values in a categorical variable
Hi,
I am a new R user. I am using it develop regression models with categorical
variables.
Is there a way to force some regression coefficients to be zero for some of
the values in a categorical variable (with 12 factor levels)?
I am recoding the values to the default value (1st in the order of dummy's).
But I am not sure if this is the correct approach if I want to force
coefficients to be
2007 Jun 26
3
surprising difference in log()
Hello everybody
My collegue and I noticed a strange behaviour of R on different
platforms. It's a simple computation, but results are rather different.
On Windows XP:
> floor(log(8,2))
[1] 3
which is what one should expect.
Here's instead the result with Mac OS X (same version, 2.5.0
(2007-04-23))
> floor(log(8,2))
[1] 2
Is it a "bug" in R or in the operating
2010 Jun 07
2
as.integer
Hi,
Is there a way to recursively change the variables imported with
read.table(..) - and then attached with attach(..) - from as.factor to
as.integer?
I have about 9 variables that are now recognized as factors but I need to do
statistics on them so I need to change them in as.integer. It works, but I
wonder if there is a way to to this for all the variables in one go.
Thanks a lot for your
2010 Apr 19
3
How to set proxy settings for R
Dear All,
I would like to run R on my computer (with win xp on it) at work bu the
proxy restrictions of the university don't let me download the packages or
to connect to a cran mirror, I usually get this message:
> chooseCRANmirror()
Warning message:
In open.connection(con, "r") :
unable to connect to 'cran.r-project.org' on port 80.
Do you know if there is a way to
2004 Aug 06
3
I need a Freelance Coder...
I must use Windows for Streaming.
and the interface must be an port or something else, because the software
interface runs on a dedicated server.
----- Original Message -----
From: "Ricardo Galli" <gallir@uib.es>
To: <icecast-dev@xiph.org>
Sent: Wednesday, February 25, 2004 10:10 AM
Subject: Re: [icecast-dev] I need a Freelance Coder...
<p>> On Wednesday 25 February
2004 Aug 06
3
PATCH: Faststart Try 3
Hi Mike
Find enclosed the patch with the fastart implementation for vorbis (for
the moment).
Now is based on size in bytes and the buffers are sent all together with
pre_data.
Hope you like it. At least is the smallest one: :-)
-rw-r--r-- 1 gallir gallir 5486 2003-01-21 01:29 update3c.diff
-rw-r--r-- 1 gallir gallir 10014 2003-01-19 20:14 update3b.diff
-rw-r--r--
2004 Aug 06
2
Re: PATCH: increase network congestion resilience
On Saturday 18 January 2003 03:37, Michael Smith shaped the electrons to
shout:
> We can't just drop packets, the transmission model assumed by the
> format handlers (and required by at least one of them) will not permit
It's not vorbis. Does it?
> us to drop any data. It'd be possible, in theory at least, to tag
> buffers with a flag to say that they can be dropped, but
2004 Aug 06
3
PATCH: increase network congestion resilience
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
find a patch which is an update to a patch sent months ago. Before it was
in net/sock.c, now I moved it to format.c, so net CVS module is not
affected. It polls the socket before trying to send() any byte to check
if the TCP buffers are full due to network congestion.
See below the warning messages of "normal" (at least in
2004 Aug 06
2
No source buffering
> |No, if you search old archives (almost two years ago,
> |http://breu.bulma.net/?l2480) you will see I've sent patches for server
> |buffering (fast start) and other things that were never included.
> |
> |You can check the difference with http://mcrg.uib.es:8000/live.ogg which
> |run my code realiable for more than a year now.
> |
> |The server also had a remote DoS
2004 Aug 06
1
PATCH: Faststart implementation
On Sunday 19 January 2003 03:35, Michael Smith shaped the electrons to
shout:
> There's a bad interaction here between the predata and this faststart.
> Suppose we have two logical streams (A and B), and the stream has just
> recently got to logical stream B. Now, this means the fast start queue
> contains the end of stream A, then the stream B headers, then the start
> of
2004 Aug 06
2
Any buffering on server?
On Monday 10 February 2003 13:25, Michael Smith shaped the electrons to
shout:
> If it takes this long, then there's something else wrong. It should be
> well under a tenth of a second (and probably closer to 1/100).
No, nothing wrong, at least darkice is doing very badly.
With darkice as encoder at about 30 kbps, there are about 3 buffers per
second, which mean that in the worst