I've a dataset in tab delimited text file. The data have been exported from an old-school relational database software 4D. Most of the lines seems to be well formated but some lines include an ASCII carriage return character (^M in Emacs or Ascii code 13). I would like to read the data in R using a function such as read.table() and to find a way to ignore those ascii carriage return symbols. Does anyone have a solution ?
Ignoring ascii carriage return characters in R
428 Views Asked by PAC At
1
There are 1 best solutions below
Related Questions in R
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
- Extract series of observations from dataframe for complete sets of data
- Retrieve path of supplementary data file of developed package
- r package development - own function not visible for opencpu
- Label a dataset according to bins of a histogram
- multiply each columns of a matrix by a vector
Related Questions in VIM
- Firefox vim mode, can't switch to normal mode in style editor
- How to skip a command in redo
- Vim errorformat multiline string
- How to let Vim tell the switching across several `gvim.exe` processes?
- match wordchar and/or dot string of anylength
- augment the number of lines on indent
- Barebones vim with `nocp`
- Moved .vimrc in a new dir, trying to get it to work
- Copying text from gvim editor to system clipboard works only once per session
- Temporarily declare a word as wrong in vim spellchecker
- Automatically switch back to NerdTree after pressing "o" on file
- How to use Ctags to list all the references of a symbol(tag) in vim?
- Vim + Airline + Linux sloppy exit
- How to delete a WORD in vim in insert mode
- Prevent single letter deletes to spam clipboard manager
Related Questions in ASCII
- Keep track of numbers entered in by a user in assembly
- javascript treating special characters as utf characters
- Determining ISO-8859-1 vs US-ASCII charset
- Why is backspace allowed in my jQuery whether I filter it out or not?
- Forming an inverted ascii triangle art using JS looping
- Isn't '\0' != 0 true?
- Python-like Byte Array String representation in C#
- Best way to Convert pairs of base 10 integers to ascii characters in python
- how do i convert a hex string to its unicode ascii equivalent in swift?
- █ character string indexed in python
- Match high ASCII characters (but not the letter i)
- What is a code point and code space?
- How to remove repeated letter from words in Java
- How to get the ascii code for "x"
- Traceback from a Python Script: invalid literal
Related Questions in CARRIAGE-RETURN
- R read.csv how to ignore carriage return?
- VBA Return Carriage and Fill Code
- cobol 85 , carriage return and line feed
- Access 2013 Report - Chr(13)+Chr(10)
- MySQL Workbench: Display line breaks/new line
- how do remove carriage returns in a txt file
- When piping a file in windows to a python script, my \r are deleting my characters
- Remove Carriage Return from String Field in File Windows Command Line
- Symbol for carriage return in eclipse
- Record Separation in VSQL Export; CR LF
- Avoid carriage return in paragraph with doxc4j
- Cygwin inserting odd carriage returns without line breaks when running Python script
- Can't I use the \n\r sequence instead of \r\n?
- Anything like dos2unix for Windows?
- Is there any way to return an entire line of a .txt document?
Related Questions in 4D-DATABASE
- Open a html document with php
- Compiling a new pdo PDO_4D
- ODBC Query with multiple conditions gives no results
- Exceptions using 4D ODBC Driver in C#
- How does the create entity selection works in the 4D database?
- what is the purpose of __STAMP column in 4D?
- Uploading large files to a server (non blocking)
- 4D SQL (v15.6): mix of JOINS + WITH clause + INNER queries on FROM, SELECT
- Is it hard to learn 4D database if I do not have any other database skill?
- Wakanda 4Dmobile timeout issue
- Memory Leak examples written in 4D
- ORDA: How can I query field value against a field value?
- Save time duration of greater that 24 hours
- Connect to MySQL database from 4Dv12 or later version?
- Error 61 Array type cannot be modified in compiled database
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In Vim you can create the ^M character by typing control-v control-m
So you could replace every occurence of ^M with: