


Patient ID - Pharmacy|Patient Gender|Patient Ethnicity|PHI Consent?|Patient State|Patient Birth Year|Patient Height|Patient Weight|PHI Consent Date|Patient MRN|Patient Phone - Pri|Patient Phone - Sec|Patient SSN|Patient Email|Patient Hub ID|Patient Last Name|Patient First Name|Patient Address1|Patient Address2|Patient City|Patient Postal Code|Patient Birth Date Then the body displays all of the columns followed by all the rows of data. What I need is below in which you will see it shows the header, name, number of rows. I believe I am close as when I used the code above export the DF to a pipe delimited format, I get the following:

Write_delim(employ.data, file = "EIN01_Pipe_delimited.txt", delim = "|") I need to Export a Pipe Delimited Text File From R with a header and trailer.ĭue to the sensitivity of the data, I am working with, I provided a mock of what could be done with the output below.Įmployee <- c('John Doe','Peter Gynn','Jolie Hope')Įmploy.data <- ame(employee, salary, startdate)Ĭode used to export the DF as a pipe delimited file:
