Description Usage Arguments Value
get a quick View of gigantic data, defaults to printing to RStudio's View().
1 2 3 4 5 6 7 8 | view.sample(
x,
title,
transpose = TRUE,
sample.n = 3,
sample.method = "head",
stdout = FALSE
)
|
x |
an object to view. view.sample() is designed to work best with data frames but will work with vectors as well. |
title |
title for viewer window, pased to View(). |
transpose |
a boolean value determining whether or not the data frame should be transposed. Defaults to TRUE so long data frames can be easily examined. |
sample.n |
an integer value determining how many rows should be sampled |
sample.method |
a string describing the way rows should be chosen from x. Valid values include:
|
stdout |
a boolean value determing whether the results should be sent to R's standard output. The default value, FALSE, sends the output to RStudio's View() function. |
unless stdout==TRUE, does not return a value. Otherwise, returns the sampled data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.