# NOT RUN {
what = list(
list(abb = "", population = 1, area = 1,
latitude = 1, longitude = 1),
list(name = "", population = 1, area = 1)
)
data <- scanRepeated("stateCities.txt", what, sep = ",")
# }
# NOT RUN {
## produces a list of 100 elements, alternately state and city data.
# }
Run the code above in your browser using DataLab