Es gibt eine Reihe von Funktionen, um den Inhalt eines Objekts oder eines Datensatzes aufzulisten.
# list objects in the working environment ls()Bereitgestellt von
# list objects in the working environment ls()
# list the variables in mydata names(mydata)Bereitgestellt von
# list the variables in mydata names(mydata)
# list the structure of mydata str(mydata)Bereitgestellt von
# list the structure of mydata str(mydata)
# list levels of factor v1 in mydata levels(mydata$v1)Bereitgestellt von
# list levels of factor v1 in mydata levels(mydata$v1)
# dimensions of an object dim(object)Bereitgestellt von
# dimensions of an object dim(object)
# class of an object (numeric, matrix, data frame, etc) class(object)Bereitgestellt von
# class of an object (numeric, matrix, data frame, etc) class(object)
# print mydata mydataBereitgestellt von
# print mydata mydata
# print first 10 rows of mydata head(mydata, n=10)Bereitgestellt von
# print first 10 rows of mydata head(mydata, n=10)
# print last 5 rows of mydata tail(mydata, n=5)Bereitgestellt von
# print last 5 rows of mydata tail(mydata, n=5)
Teste das kostenlose erste Kapitel dieses Kurses über Datenbereinigung.
Dokumentation
Es gibt eine Reihe von Funktionen, um den Inhalt eines Objekts oder eines Datensatzes aufzulisten.
Zum Üben
Teste das kostenlose erste Kapitel dieses Kurses über Datenbereinigung.