search for: formc

Displaying 6 results from an estimated 6 matches for "formc".

Did you mean: form
2011 Oct 05
3
R CMD check
Dear R-Group, I have a function that sorts a data frame and oneo of the lines in the function is: vars <- unlist(strsplit(formc, "[\\+\\-]")) The function works fine and the above line is always reached. However, when I include the function in a package and run "R CMD check pkgname" it gives this error message: '\+' is an unrecognized escape in character string starting "[\+" Execut...
2004 Sep 24
0
Function sort.data.frame
...rame(Oats,~-Variety+Block) # If dat is the formula, then switch form and dat if(inherits(dat,"formula")){ f=dat dat=form form=f } if(form[[1]] != "~") stop("Formula must be one-sided.") # Make the formula into character and remove spaces formc <- as.character(form[2]) formc <- gsub(" ","",formc) # If the first character is not + or -, add + if(!is.element(substring(formc,1,1),c("+","-"))) formc <- paste("+",formc,sep="") # Extract the variables from the fo...
2007 Apr 20
2
sorting data in R
hello, I'd like know how to sort a data frame in R for example how I should do to sort by Catholic with swiss data frame like below thanks Fertility Agriculture Examination Education Catholic Infant.Mortality Courtelary 80.2 17.0 15 12 9.96 22.2 Delemont 83.1 45.1 6 9 84.84 22.2
2009 Oct 13
2
General means of matching a color specification to an official R color name
...is left to right in the formula # Useage is: # library(nlme); # data(Oats) # sort(Oats, by= ~nitro-Variety) if(by[[1]] != "~") stop("Argument 'by' must be a one-sided formula.") # Make the formula into character and remove spaces formc <- as.character(by[2]) formc <- gsub(" ", "", formc) # If the first character is not + or -, add + if(!is.element(substring(formc, 1, 1), c("+", "-"))) formc <- paste("+", formc, sep = "") # Extract the va...
2008 Jan 07
0
CR 6647661 <User 1-5Q-12446>, Now responsible engineer P2 kernel/zfs "set once" / "create time only" properties can''t be set for pool level dataset
...pool can''t currently have any of the create time only properties set: The examples below use the normalization property but this applies to all properties that are create time only. Attempt to set a create time only dataset property at pool creation time: # zpool create -o normalization=formC mypool /tmp/f property ''normalization'' is not a valid pool property This isn''t unexpected though because we can''t set dataset properties with zpool(1M), however: Create the pool and then attempt to set the property on the top level dataset: # zpool create mypo...
2009 Apr 15
0
CR 6647661 Updated, P2 kernel/zfs "set once" / "create time only" properties can''t be set for pool level dataset
...pool can''t currently have any of the create time only properties set: The examples below use the normalization property but this applies to all properties that are create time only. Attempt to set a create time only dataset property at pool creation time: # zpool create -o normalization=formC mypool /tmp/f property ''normalization'' is not a valid pool property This isn''t unexpected though because we can''t set dataset properties with zpool(1M), however: Create the pool and then attempt to set the property on the top level dataset: # zpool create mypo...