refine_move_column: Move a column in OpenRefine project

View source: R/refine_operations.R

refine_move_columnR Documentation

Move a column in OpenRefine project

Description

This function allows users to move an existing column in an OpenRefine project via an API query to /command/core/apply-operations and the core/column-move operation.

Usage

refine_move_column(
  column,
  index = 0,
  project.name = NULL,
  project.id = NULL,
  verbose = FALSE,
  validate = TRUE,
  ...
)

Arguments

column

Name of the column to be removed

index

Index to which the column should be placed in the project; default is 0 to position the new column as the first column in the project

project.name

Name of project

project.id

Unique identifier for project

verbose

Logical specifying whether or not query result should be printed; default is FALSE

validate

Logical as to whether or not the operation should validate parameters against existing data in project; default is TRUE

...

Additional parameters to be inherited by refine_path; allows users to specify host and port arguments if the OpenRefine instance is running at a location other than http://127.0.0.1:3333

Value

Operates as a side-effect passing operations to the OpenRefine instance. However, if verbose=TRUE then the function will return an object of the class "response".

Examples


## Not run: 
fp <- system.file("extdata", "lateformeeting.csv", package = "rrefine")
refine_upload(fp, project.name = "lfm")
refine_move_column("sleephours", index = 0, project.name = "lfm")

## End(Not run)



vpnagraj/rrefine documentation built on Nov. 21, 2022, 12:20 a.m.