Displaying 20 results from an estimated 1000 matches similar to: "replacing random repeated numbers with a series of sequenced numbers"
2012 Nov 21
4
help with if statement
Hi all,
I had a dataset A like:
TIME DV
0 0
1 10
5 20
24 30
36 80
48 60
72 15
I would like to add 24 to those values higher than 24 in the TIME column.
I did the following:
If (A$TIME>=24) {
A$TIME <- A$TIME+24}
It did not work. How should I do it?
Thanks,
--
View this message in context: http://r.789695.n4.nabble.com/help-with-if-statement-tp4650315.html
Sent from the
2012 Jul 16
2
extract number from a mixture of character and number
Hi, all,
I have a column like the following:
ID TIME
sub_001 0
sub_001 24
sub_002 0
sub_002 24
sub_003 0
sub_003 24
sub_004 0
sub_005 24
..
..
is there a way for me to just
2012 Jun 20
3
data normalization
I have a dataframe such like the following:
ID TIME DV
1 0 0.880146038
1 1 0.88669051
1 3 0.610784702
1 5 0.756046666
2 0 0.456263368
2 1 0.369991537
2 3 0.508798346
2 5 0.441037014
3 0 0.854905349
3 1 0.960457553
3 3 0.609434409
3 5 0.655006334
. . .
. . .
I would like to generate another column with the normalized values of DV.
for each ID, normalize to the value at TIME 0.
I was able to
2012 Jun 20
2
can not read a table
I have a table like the following:
TABLE NO. 1
ID TIME
1325 0
1325 0
. .
. .
. .
TABLE NO. 1
ID TIME
1325 0
1325 0
. .
. .
. .
TABLE NO. 1
ID TIME
1325 0
1325 0
. .
. .
. .
TABLE NO. 1
ID TIME
1325 0
1325 0
. .
. .
. .
I used the following code:
sim <- read.table("sim.tab", skip=1, as.is=T,header=T)
it did not work, as there're rows with characters in between the data.
2014 Apr 08
2
[LLVMdev] Why "I = ++I" instead of "++I" in COFFDump.cpp ?
On Mon, Apr 7, 2014 at 12:09 PM, Joerg Sonnenberger <joerg at britannica.bec.de
> wrote:
> On Mon, Apr 07, 2014 at 08:38:58AM -0600, Richard wrote:
> > Oops, meant to send this to the mailing list instead of to Reid
> > privately. (Why cc the mailing list instead of just sending to the
> > mailing list?)
> >
> > In article <CACs=
>
2010 Feb 09
1
error: unable to connect to libvirtd at 'a.b.c.d': Connection refused
Greetings:
I have an issue with connecting to the esx hypervisor from my guest Vm. The purpose of the connection is to obtain host related information (like network, devices etc).
I am not sure what is it that rejects the connect at the server side, and what i am missing.
I am running lib0.7.5, i have libvirtd running on guest-vm.
The host ESX has the ip address a.b.c.d.
?
Any
2009 Feb 17
6
Percentiles/Quantiles with Weighting
Hi All,
I am looking at applications of percentiles to time sequenced data. I had
just been using the quantile function to get percentiles over various
periods, but am more interested in if there is an accepted (and/or
R-implemented) method to apply weighting to the data so as to weigh recent
data more heavily.
I wrote the following function, but it seems quite inefficient, and not
really very
2003 Nov 06
2
created data doesn't remain when split...
I've been trying to figure out why the following is happening....
I've got some data I'll load in from a file...
rm(list=ls(all=TRUE))
trees <- read.table( "c:/cruisepak/data.txt", header=T)
trees$ct <- 1
And when I create some temp variable, then split the data to perform further
processing, the additional column doesn't maintain the data correctly....
mtrees
2006 Aug 24
2
help with pasting + expressions?
I can't believe I'm having such a hard time with this and I haven't been
able to find out how to solve this...
lab <- expression( paste( hat(v),
as.character(round(y.hat,2)), ",",
hat(sigma)^2, as.character(sigma.hat)) )
text( x=pt$x+2, y=pt$y,labels=lab )
## the text should be \hat{y} = <value of y.hat>, \hat{\sigma}^2 == <value
of sigma.hat>
and R
2010 Jun 30
11
[Bug 1789] New: On linux use abstract socket for X11 connections if possible
https://bugzilla.mindrot.org/show_bug.cgi?id=1789
Summary: On linux use abstract socket for X11 connections if
possible
Product: Portable OpenSSH
Version: 5.5p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs at
2020 Apr 10
2
[Bug 1421] New: abcde
https://bugzilla.netfilter.org/show_bug.cgi?id=1421
Bug ID: 1421
Summary: abcde
Product: conntrack-tools
Version: unspecified
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: conntrack-daemon
Assignee: 826706276 at qq.com
Reporter:
2005 Nov 21
5
[Bug 1122] __USE_GNU is internal glibc macro and should not be used
http://bugzilla.mindrot.org/show_bug.cgi?id=1122
Summary: __USE_GNU is internal glibc macro and should not be used
Product: Portable OpenSSH
Version: 4.2p1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Miscellaneous
AssignedTo: bitbucket at mindrot.org
2002 Apr 05
2
weighted 2 or 3 parameter weibull estimation?
I've figured out how to use optim (barely) to estimate 2 parameter =
weibull distributions. I can't get over how easy this is. What I need to =
do is use a weight in the observations.....
For example,=20
the tree diameters and weights are are=20
4.70 , 100
6.00, 98
7.10, 75.0
8.10, 86.3
8.60, 80.456
8.90, 20.5
9.50, 16.6
11.40, 12.657
11.80, 12.47
14.50,
2004 May 13
2
xtable without rownames
When I tried to read all the entries (after searching the FAQ) for "row
names xtable", I get
START-INFO-DIR-ENTRY * R FAQ: (R-FAQ). The R statistical system ...
... xtable* Export data to LaTeX and HTML tables. ... For dropping the row
names of a matrix
`x', it may be easier to use `rownames(x) <- NULL', similarly for column ...
2002 Jan 04
1
plotting maps?
I thought I had plotted a map of oregon and washington and overlayed some
points using R. Is that possibe since I can't seem to find the source file I
used or commands for plotting maps and points?
If not, sorry for the bother...
Thanks,
Jeff.
Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
jeff_hamann
2004 Feb 20
1
Sweave not found from MikTeX?
I've been working on a LaTeX document that contains Sweave code and cannot
get MikTeX to find the Sweave.sty file. I've added the c:\rw1081\share\texmf
path in the MikTeX roots (I've ven added the path in the environment
variables ) but to no avail. Is there a trick to getting Sweave installed
correctly when using MikTeX on Windows XP? Do I need to move/copy the
Sweave.sty file to the
2011 Jan 31
1
httpd-access.log parsing and graph construction.
R gurus:
I'm thinking about using R for website traffic analysis but didn't find anything in my web searches specific to R.
If I have the webpages (simple example would contain something like three (3) static pages with a couple of links each) and parse the apache access log file (httpd-access.log), then I can populate the graph representing the website and perform whatever analysis I
2006 Nov 13
2
indexing question
I have the following set of indices, call it idx, that correspond to the
indices of a vector say temp.
[1] 31 36 41 61 66 71 91 96 101 121 126 131 151
156 161 181 186 191 211 216 221 241 246 251 271 276 281
301 306 311 331 336 341 361 366
[36] 371 391 396 401 421 426 431 451 456 461 481 486 491
511 516 521 541 546 551 571 576 581
2005 May 23
6
colors and palettes and things...
After trying to find if there was a color picker in the FAQs and the help,
I thought I would send a post here. I was overwhelmed with all the
wonderful color choices R has predefined (discovered after typing in
colors()) but can't figure out what they all (by name) look like. Is there
a color picker or some other method to display all those colors next to
the name?
I think I can put together
2003 Feb 16
1
__stdcall funcitons called using .C() on win32 chokes
I've developed a dll (win32) of a bunch of functions prototypes as:
/* for building on *nix */
#ifndef WIN32
#define __stdcall /*nothing*/
#endif
void __stdcall dbh_2_height(
const unsigned long *func_idx,
const unsigned long *metric,
const unsigned long *species,
const double *dbh,
double *pred_height );
and have created a R interface