How to check if data has been imported in R language?

In R language, you can use the following methods to check if the data has been successfully imported:

  1. show me the first few rows of data
  2. Display the first few rows
head(data)
  1. Return the last elements of the data.
  2. return the last few lines of the data
tail(data)
  1. convert to string
  2. Converts a value to a string.
str(data)
  1. give me a brief overview
  2. Can you provide a brief summary of the information?
summary(data)
  1. Display()
  2. Display()
View(data)

By using the above methods, you can view partial content, structure, and summary statistics of the data to determine if it has been successfully imported.

bannerAds