Use the built-in data set "airquality".
1. Extract the first 4 rows of the data frame and print them to the console.
Use the built-in data set "airquality".
1. Extract the first 4 rows of the data frame and print them to the console.
Write the built-in data set "airquality" to a Tab-separated text file with write.table. View it with a text editor (depending on your system). Change the NA value to . (period), and read the changed file back into R with a suitable command.