Debian Codegraph @

man/hot_validate_character.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/rhandsontable.R
3 \name{hot_validate_character}
4 \alias{hot_validate_character}
5 \title{Handsontable widget}
6 \usage{
7 hot_validate_character(hot, cols, choices, allowInvalid = FALSE)
8 }
9 \arguments{
10 \item{hot}{rhandsontable object}
11
12 \item{cols}{vector of column names or indices}
13
14 \item{choices}{a vector of acceptable numeric choices. It will be evaluated
15 after min and max if specified.}
16
17 \item{allowInvalid}{logical specifying whether invalid data will be
18 accepted. Invalid data cells will be color red.}
19 }
20 \description{
21 Add numeric validation to a column
22 }
23 \examples{
24 library(rhandsontable)
25 DF = data.frame(val = 1:10, bool = TRUE, big = LETTERS[1:10],
26 small = letters[1:10],
27 dt = seq(from = Sys.Date(), by = "days", length.out = 10),
28 stringsAsFactors = FALSE)
29
30 rhandsontable(DF) \%>\%
31 hot_validate_character(col = "big", choices = LETTERS[1:10])
32 }
33 \seealso{
34 \code{\link{hot_validate_numeric}}
35 }