view_vd: View data in VisiData

View source: R/view_in.R

view_vdR Documentation

View data in VisiData

Description

Opens data in VisiData through the Terminal application on macOS. If the input is an sf object, the geometry column will be dropped before viewing.

Usage

view_vd(data, title = NULL, type = "csv")

Arguments

data

A data.frame, tibble, or sf object to view

title

Character string for the Terminal window title. Defaults to "misc::view_vd"

type

Either "csv" or "json" format for writing the temporary file. Use "json" for preserving list-columns.

Details

This function only works in interactive sessions on macOS. It creates a temporary file and opens it in VisiData through the Terminal application. The temporary filename includes a timestamp for identification.

Value

Returns the input data invisibly

Examples

## Not run: 
# View a data frame
mtcars %>% view_vd()

# View with custom title
mtcars %>% view_vd(title = "Car Data")

# View with list columns preserved
nested_df %>% view_vd(type = "json")

## End(Not run)

kguidonimartins/misc documentation built on Dec. 20, 2024, 7:03 p.m.