similar to: extract number from a mixture of character and number

Displaying 7 results from an estimated 7 matches similar to: "extract number from a mixture of character and number"

2005 Oct 26
1
pb with dyn.load - fortran code now attached
Hi, here are a couple of strange things happening with R.2.2.0 compiled under Mandrake-10.1 At the begining of the story I have segmentation fault using package RandomFields in conjuction with some Fortran code of mine loaded with dyn.load. One of my fortran programs contains a subroutine named fstat Trying to trace , I simplified the sequence as much as possible and I end up with the the
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 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.
2005 Oct 26
0
pb with dyn.load
Hi, here are a couple of strange things happening with R.2.2.0 compiled under Mandrake-10.1 At the begining of the story I have segmentation fault using package RandomFields in conjuction with some Fortran code of mine loaded with dyn.load. One of my fortran programs contains a subroutine named fstat Trying to trace , I simplified the sequence as much as possible and I end up with the the
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain the Searcher of multiple directories. If I do not have the searcher.close called, the end of runner/console or runner/server will pop out with system error: *** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 *** ======= Backtrace: ========= /lib/libc.so.6[0x638ac1]