Re: [R] MApply and SubStr

2015-02-11 Thread Brian Trautman
That's exactly what I wanted, thank you very much! My intent was to perform the SubStr operation first, and then apply the types to the columns. I wasn't expecting the two types in the same column. I appreciate your response! On Tue, Feb 10, 2015 at 5:03 PM, David Winsemius wrote: > > On Feb 1

Re: [R] MApply and SubStr

2015-02-10 Thread David Winsemius
On Feb 10, 2015, at 3:58 PM, Brian Trautman wrote: > Hi! > > I'm trying to write a custom function that applies SubStr to a string, and > then depending on the arguments, converts the output to a number. > > The substring part of my code works fine, but it's not converting the way I > want to -

[R] MApply and SubStr

2015-02-10 Thread Brian Trautman
Hi! I'm trying to write a custom function that applies SubStr to a string, and then depending on the arguments, converts the output to a number. The substring part of my code works fine, but it's not converting the way I want to -- options('stringsAsFactors'=FALSE) require(data.table) substr_ty