Search notes:

R function: read.fwf

#
#    Reads a «fixed width value» file.
#
#    Compare with -> read.csv
#

data <- read.fwf("data.fixed_width", width=c(5, 7, 7, 5), header=FALSE, col.names=c('col 1', 'col 2', 'col 3', 'col 4'))

show(data)

#   col.1   col.2   col.3 col.4
# 1 foo   bar     baz       qux
# 2 one   two     three    four
# 3 12345 abcdefg 7654321 fedcb
Github repository about-r, path: /functions/read.fwf.R

See also

Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758201060, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/read_fwf(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78