Skip to content

Commit

Permalink
seqAddValue with a factor variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengxwen committed Jun 25, 2024
1 parent 8a043f7 commit f767a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/AddValue.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
# modify annotation/filter
.r_annot_flt <- function(gdsfile, val, replace, nvar, compress, verbose)
{
stopifnot(is.vector(val), length(val)==nvar)
stopifnot(is.vector(val) || is.factor(val), length(val)==nvar)
if (!is.null(index.gdsn(gdsfile, "annotation/filter", silent=TRUE)))
stopifnot(replace)
n <- add.gdsn(index.gdsn(gdsfile, "annotation"), "filter", val,
Expand Down

0 comments on commit f767a38

Please sign in to comment.