search for: splitvars

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

2009 Jan 31
1
display p-values and significance levels
Hi there, I got a piece of code for the Iris data which allows to display correlation coefficients for each Iris species in the lower panel (color coded). I would now like to add e.g. a "*" to show the significance of each correlation next to the correlation coefficient. Furthermore I would like to make a t.test between the species "setosa" and "versicolor" for
2004 Jul 16
3
Strange (non-deterministic) problem with strsplit
...List of 3 $ y: chr "y+x+d" $ x: chr "b+d+e" $ g: chr "a*[square box]" (square box not reproduced here because copy and pasting it seems to break my web mail) Can anyone reproduce the problem and/or suggest any solutions? parseFormula <- function(formula) { splitvars <- function(x) { strsplit(x, "\\+|\\*")[[1]] } stripwhitespace <- function(x) { gsub("\\s", "", x, perl=T) } vars <- stripwhitespace(as.character(formula)[3]) varsplit <- strsplit(vars, "|", fixed=TRUE)[[1]] parts <- list( y = st...
2004 Jul 16
3
Strange (non-deterministic) problem with strsplit
...List of 3 $ y: chr "y+x+d" $ x: chr "b+d+e" $ g: chr "a*[square box]" (square box not reproduced here because copy and pasting it seems to break my web mail) Can anyone reproduce the problem and/or suggest any solutions? parseFormula <- function(formula) { splitvars <- function(x) { strsplit(x, "\\+|\\*")[[1]] } stripwhitespace <- function(x) { gsub("\\s", "", x, perl=T) } vars <- stripwhitespace(as.character(formula)[3]) varsplit <- strsplit(vars, "|", fixed=TRUE)[[1]] parts <- list( y = st...