dssCut: Convert numeric to factor

View source: R/dssCut.R

dssCutR Documentation

Convert numeric to factor

Description

Same as base::cut

Usage

dssCut(
  x,
  new.name = "newObj",
  df = NULL,
  in.place = FALSE,
  breaks = NULL,
  labels = NULL,
  ...,
  async = TRUE,
  datasources = NULL
)

Arguments

x

a character name of a numeric vector which is to be converted to a factor by cutting

new.name

a character name of the new vector (or dataframe column). This parameter is ignored if in.place = TRUE (see below)

df

a character name of a dataframe. If specified, x and new.name above must be among its columns

in.place

a boolean. If true, the numeric vector will be replaced with the output of the function

breaks

either a numeric vector of two or more unique cut points or a single number (greater than or equal to 2) giving the number of intervals into which x is to be cut. Use the vector form (2 or more specific cut points) in order to achieve consistent levels among multiple nodes.

labels

same as for the 'cut' function. If only labels and no breaks are specified, breaks will be calculated as length(labels)

...

further parameters are sent directly to the cut function on each node

async

a logical, see datashield.aggregate

datasources

a list of opal objects obtained after logging into the opal servers (see datashield.login)

Value

name of the new object


sib-swiss/dsSwissKnifeClient documentation built on July 16, 2025, 6:25 p.m.