view.sample: view.sample

Description Usage Arguments Value

View source: R/view.sample.R

Description

get a quick View of gigantic data, defaults to printing to RStudio's View().

Usage

1
2
3
4
5
6
7
8
view.sample(
  x,
  title,
  transpose = TRUE,
  sample.n = 3,
  sample.method = "head",
  stdout = FALSE
)

Arguments

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:

  • head uses head() to pull the first sample.n rows

  • sample randomly chooses sample.n rows

  • tail uses tail() to pull the last sample.n rows

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.

Value

unless stdout==TRUE, does not return a value. Otherwise, returns the sampled data frame


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.