So drucken Sie eine bestimmte Anzahl von Zeilen gelesen.Tabelle in R-Studio

da=read.table("m-ibm6708.txt",header=T)  #<== Load data with header

#<== Check dimension of the data (row = sample size, col = variables)
###############502 rows, col 1 = date, col 2 = ibm, col 3 = sprtn
#<== Print out the first 6 rows of the data object "da".
printrows <- da[1:6]
printrows    

Die print-Zeilen, hat nicht funktioniert. Ich versuchte ein paar Dinge. Ich denke, es könnte nutzen cbind. da ist ein großer Tisch, aber ich brauche nur die ersten 6 Zeilen angezeigt.

Sie können die head Funktion: head(da, 6)
Danke Jungs für die Hilfe!

InformationsquelleAutor user3553260 | 2014-09-04

Schreibe einen Kommentar