peek | R Documentation |
This returns a character vector which shows the top n lines of a file.
peek(x, n = 5)
x |
a filename |
n |
the number of lines to return |
## Not run:
filename <- tempfile()
x<-matrix(round(rnorm(10^4),2),1000,10)
colnames(x)=letters[1:10]
write.csv(x,file=filename,row.names=FALSE)
peek(filename)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.