Right
Return characters from the right of text. Strings shorter than the length defined will be unaffected.
Select characters from the right of the input. Using a negative length reverses the side of selection, selecting from the left.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the column(s) to edit. | string, integer, array | — | Yes |
output | Name of the output column(s). | string, array, null | null | No |
| Options | ||||
length | Number of characters to include from the right. If negative, this will remove the specified number of characters from the right. May not equal 0. | integer | — | Yes |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name. | array, object | — | No |
Examples
wrangles:
- select.right:
input: Column
output: Result
length: 3
| Column |
|---|
| pudding |
| Result |
|---|
| ing |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 58 |
| Catalog key | select.right |
| Recipe key | select.right |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | select |
| Documentation group | select |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.select.right |
| Legacy UUID | 89ee82ec-3bc5-4bfa-899b-7a1260ef9bdb |
Sources