Date1 05/01/1990 06/02/1995 07/03/2001 08/03/2003 I would like to create a corresponding column that tests the Date1 column and creates a variable in another column that states either “Twentieth Cent
See ?casefold. --sundar Andrew Scott wrote: Dear S-News Readers , I've got a quick question: Is there an S-Plus command that converts a character field into upper case? Thanks Andrew Scott
Something like: merge(x, aggregate(list(Mean = x$V1), x["V4"], mean)) where x is your "Data.Set.1" below. --sundar Last question of the day... I want to assign the mean to each row of input (V4) grou
Roberts, J. Kyle wrote: I have a dataset in which I need to dummy code (sort of) two separate variables. Variable 1 I have 5 years of data on students in teachers classrooms. Each teacher entered the
Using S-Plus 6.2 for Windows XP I have a vector of values that looks like this: 0 0 12 15 16 0 0 18 4 3 2 0 0 Does there exist an elegant way to achieve the following =removing the 0's at the start o
Eric yang wrote: Dear members, I've created a function that reads in 10 arguments in the function call, example my.fun <- function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) { ... }
I’m working with a data frame with 6 columns. The first column indicates the year (ranging from 1993 until present) and the other ones the measurements at different locations. For each year there ar
Hello to all -- My apologies for what I know to be an elementary question, but cannot seem to find the answer to. I would like to extract the row name of a matrix where the third column has it's maxi
I would like to find the exact match of a substring(/sub-vector) within a string (/vector). For example, suppose I have x <- c(F, F, F, T, T, F, F, T, T, F, F, T, T, T, F, F, F, F, F, T, T, T, F, F,
Thanks, Jag See ?unique or ?duplicated. Probably you want: data[!duplicated(data[c("col1", "col2")]), ] If "col1" and "col2" are the only columns in data, then you simply need: unique(data) HTH, --su