DolphinDB
  • Chapter 1: Introduction
  • Chapter 2: Data Types and Data Forms
  • Chapter 3: Objects
  • Chapter 4: Operators
  • Chapter 5: Programming Statements
  • Chapter 6: Data Manipulation
  • Chapter 7: Functional Programming
  • Chapter 8: SQL Statements
  • Chapter 9: File I/O
  • Chapter 10: Database and Distributed Computing
  • Chapter 11: System Management
  • Chapter 12: Programming APIs
  • Chapter 13: Functions and Commands
    • Categories
    • Function References
      • A
      • B
      • C
      • D
      • E
      • F
      • G
      • H
      • I
      • J
      • K
      • L
      • M
      • N
      • O
      • P
      • Q
      • R
        • rad2deg
        • rand
        • randBeta
        • randBinomial
        • randChiSquare
        • randDiscrete
        • randExp
        • randF
        • randGamma
        • randMultivariateNormal
        • randNormal
        • randLogistic
        • randomForestClassifier
        • randomForestRegressor
        • randPoisson
        • randStudent
        • randUniform
        • randWeibull
        • rank
        • ratio
        • ratios
        • rdp
        • read!
        • readBytes
        • readLine
        • readLines
        • readLines!
        • readObject
        • readRecord!
        • rebalanceChunksAmongDataNodes
        • rebalanceChunksWithinDataNode
        • reciprocal
        • refCount
        • regexCount
        • regroup
        • regexFind
        • regexReplace
        • remoteRun
        • remoteRunWithCompression
        • removeHead!
        • removeTail!
        • rename!
        • renameTable
        • repartitionDS
        • repeat
        • replace
        • replace!
        • replay
        • replayDS
        • repmat
        • resample
        • reshape
        • residual
        • restore
        • restoreDB
        • restoreDislocatedTablet
        • restoreTable
        • reverse
        • ridge
        • right
        • rollingPanel
        • round
        • row
        • rowAnd
        • rowAt
        • rowAvg
        • rowBeta
        • rowCorr
        • rowCount
        • rowCovar
        • rowDenseRank
        • rowImax
        • rowImin
        • rowKurtosis
        • rowMax
        • rowMin
        • rowNames
        • rowNo
        • rowOr
        • rowProd
        • rowRank
        • rows
        • rowSize
        • rowSkew
        • rowStd
        • rowStdp
        • rowSum
        • rowSum2
        • rowVar
        • rowVarp
        • rowWavg
        • rowWsum
        • rowXor
        • rpad
        • rpc
        • rshift
        • rtrim
      • S
      • T
      • U
      • V
      • W
      • X
      • Y
      • Z
      • Appendix
    • Commands References
    • Themes
  • Chapter 14: Error Code Reference
DolphinDB
  • »
  • Chapter 13: Functions and Commands »
  • Function References »
  • R »
  • right

right

Syntax

right(X, n)

Arguments

X is a string scalar or vector.

n is a positive integer.

Details

Return the last n characters of string X.

Examples

$ right("I love this game!", 6);

  game!
Previous Next

© Copyright 2016-2023 by DolphinDB, a database company. All Rights Reserved.

Built with Sphinx using a theme provided by Read the Docs.