search for: isnum

Displaying 3 results from an estimated 3 matches for "isnum".

Did you mean: snum
2006 May 16
2
Using REGEX function
....&nbsp; However, the Asterisk parser doesn't seem to understand what's going on.&nbsp; I'm trying to use REGEX to determine if a variable matches a standard 10 digit US/Canada number.&nbsp; To do this, I started with the following:<br> <br> exten => _76.,1,Set(isnum=${REGEX("[2-9][0-9]{2}[2-9][0-9]{6}" ${EXTEN:2})})<br> exten => _76.,2,GotoIf($["${isnum}" = "1"] ? 3:5)<br> [...]<br> <br> Where the regular expression says:&nbsp; match digit 2-9, then digit 0-9 twice, then digit 2-9, then digit 0-9 six...
2006 Aug 17
2
getting sapply to skip columns with non-numeric data?
getting s-apply to skip columns with non-numeric data? I have a dataframe ?x? of w columns. Some columns are numeric, some are not. I wish to create a function to calculate the mean and standard deviation of each numeric column, and then ?bind? the column mean and standard deviation to the bottom of the dataframe. e.g. tempmean <- apply(data.frame(x), 2, mean, na.rm = T) xnew <-
2003 Feb 20
2
is.numeric
Hi, I have a vector, which contains both strings and numbers, e.g. > foo <- c("str1",1234,"str2",0.9876) I want to know if a distinct element of the vector is a string or a number and took "is.numeric", but > is.numeric(foo[2]) [1] FALSE because R treats the numbers in a mixed vectors as strings: > foo [1] "str1" "1234"