Re: [R] Subsetting a data.frame - Read in with FWF format from .DAT file

2012-03-12 Thread RHelpPlease
Hi Michael, Thanks so much for your detailed reply! I gained a better understanding of the read.fwf function, along with ensuring I better note how these read-in functions convert variables, etc. As well, your tip on removing format while converting the PRVDR_NUM variable to numeric (from

[R] Subsetting a data.frame - Read in with FWF format from .DAT file

2012-03-09 Thread RHelpPlease
Hi there, I am having trouble subsetting a data frame by a conditional via one column (of many). I read the file into R through read.fwf, where I specified column widths. Original data is .DAT. I then utilized names function to read in column headings. For one column, PRVDR_NUM, I wish to

Re: [R] Subsetting a data.frame - Read in with FWF format from .DAT file

2012-03-09 Thread R. Michael Weylandt
Inline. On Fri, Mar 9, 2012 at 7:04 PM, RHelpPlease rrum...@trghcsolutions.com wrote: Hi there, I am having trouble subsetting a data frame by a conditional via one column (of many). I read the file into R through read.fwf, where I specified column widths. Original data is .DAT.  I then