# Kids3 Example # Read a fixed width fields data file. Use # setwd('c:/datasets') to set the current # working directory before running the examples. kids <- read.fwf('kids3.txt', widths=c(10,1,2), header=F, col.names=c('name', 'gender', 'age')) cat('Data Frame kids\n\n') print(kids)