Displaying 5 results from an estimated 5 matches for "york8866".
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 Oct 18
3
replacing random repeated numbers with a series of sequenced numbers
Hi all,
I have a dataset with one column like below:
ID
1001
1001
1001
1122
1122
1122
1421
1421
1789
1789
..
These numbers are no in sequence and they have different repeats. How could
replace them with sequenced numbers?
Such as follows replacing the ID column with the SID column.
ID SID
1001 1001
1001 1001
1001 1001
1122 1002
1122 1002
1122 1002
1421 1003
1421 1003
1789 1004
1789 1004
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.