[R] Matrix Manipulation R

2015-07-04 Thread Alex Kim
Hi guys, Suppose I have an extremely large data frame with 2 columns and .5 mil rows. For example, the last 6 rows may look like this: . .. ... 89 100 93 120 95 125 101NA 115NA 123NA 124NA I would like to manipulate this data frame to

[R] Matrix Manipulation R

2015-07-04 Thread Alex Kim
Hi guys, Suppose I have an extremely large data frame with 2 columns and .5 mil rows. For example, the last 6 rows may look like this: . .. ... 89 100 93 120 95 125 101NA 115NA 123NA 124NA I would like to manipulate this data frame to

[R] A Simple Question

2015-07-14 Thread Alex Kim
Hello, I am trying to create a matrix that looks like this, using the stri_locate_all function. x - ABCDJAKSLABCDAKJSABCD m - stri_locate_all_regex(x, 'ABCD') m [[1]] start end [1,] 1 4 [2,]10 13 [3,]18 21 I tried converting m into a

[R] Matrix Manipulation

2015-07-04 Thread Alex Kim via R-help
Hi guys, Suppose I have an extremely large data frame with 2 columns and .5 mil rows. For example, the last 6 rows may look like this: . .. ... 89 100 93 120 95 125 101NA 115NA 123NA 124NA I would like to manipulate this data frame to

[R] A simple question

2015-07-14 Thread Alex Kim via R-help
Hello, I am trying to create a matrix that looks like this, using the stri_locate_all function. x - ABCDJAKSLABCDAKJSABCD m - stri_locate_all_regex(x, 'ABCD') m [[1]] start end [1,] 1 4 [2,]10 13 [3,]18 21 I tried converting m into a