search for: reshapelong

Displaying 8 results from an estimated 8 matches for "reshapelong".

2001 Feb 27
2
Remove columns by name data[-c("subj","drug")]
Is there an easy way to remove data frame columns by name instead of by index? The following gives the idea remove<-c("subj","drug") data[-remove] I found a solution with a few evals and substitutes, similar to that used in reshapeLong, but there must be an easier way out. Dieter --------------------------------------- Dr. Dieter Menne Biomed Software 72074 T?bingen Tel (49) (7071) 52176 FAX (49) (7071) 55 10 46 dieter.menne at menne-biomed.de www.menne-biomed.de -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-...
2011 Nov 17
1
Introducing \n's so that par.strip.text can produce multiline strips in lattice
...quot;5.11", "6.11", "1.1", "2.1", "3.1", "4.1", "5.1", "6.1" ), .Names = c("Indicator", "Units", "Expression", "time", "X03", "id"), class = "data.frame", reshapeLong = structure(list(varying = structure(list( X03 = c("X03.07", "X03.08", "X03.09", "X03.10", "X03.11", "X03.1")), .Names = "X03", v.names = "X03", times = c(7, 8, 9, 10, 11, 1)), v.names = "X03", idvar =...
2011 Nov 18
1
Drawing ticks in the 3rd and 4th row of a lattice
...emicals Ltd..1", "Essar Oil Ltd..1", "Chennai Petroleum Corpn. Ltd..1", "Hindalco Industries Ltd..1", "Sterlite Industries (India) Ltd..1", "Steel Authority Of India Ltd..1" ), .Names = c("Company", "time", "X03"), reshapeLong = structure(list( varying = structure(list(X03 = c("X03.07", "X03.08", "X03.09", "X03.10", "X03.11", "X03.1")), .Names = "X03", v.names = "X03", times = c(7, 8, 9, 10, 11, 1)), v.names = "X03", idv...
2010 Sep 21
1
reshape is re-ordering my variables
...6 ... $ time: int 1 1 1 1 1 1 1 1 1 1 ... $ init: int 0 0 0 0 0 0 0 6 0 0 ... $ FTy : int 0 8 12 3 9 1 5 16 5 5 ... $ FTm : int 0 0 0 0 0 0 0 0 0 0 ... $ PTy : int 2 0 0 1 2 0 0 0 0 0 ... $ PTm : chr "SM" "JF" "IW" "MS" ... - attr(*, "reshapeLong")=List of 4 ..$ varying:List of 5 .. ..$ FTm : chr "Q6.FT.RC.1.months" "Q6.FT.RC.2.months" "Q6.FT.RC.3.months" "Q6.FT.RC.4.months" .. ..$ FTy : chr "Q6.FT.RC.1.years" "Q6.FT.RC.2.years" "Q6.FT.RC.3.years" "...
2001 Feb 26
1
"untable" function
Dear R-users! I am using R1.2.0 under Windows NT4.0, and have data of the following form: > #simple example of data structure: > x <- data.frame(group=LETTERS[1:3], class1=1:3, class2=4:6) > x group class1 class2 1 A 1 4 2 B 2 5 3 C 3 6 I would like to convert this to a data.frame y of the following form: > y group class counts 1
2003 May 27
2
R doesn't remove temporary dirs and about bugreport
...whether my bug report was received? I've sent to r-bugs at biostat.ku.dk the following but it seemed to me there were no any reaction. Also I had some troubles with mail server, and the letter could be lost. ==== the source code of the 'reshape' function contains the following reshapeLong <- function(data, varying, v.names = NULL, timevar, idvar, ids = 1:NROW(date), times, drop = NULL, new.row.names = NULL) { I suspect the expression ids=1:NROW(date) is erroneous. The 'date' variable doesn't appear anywhere else in this function. Maybe, 'data' ? ===...
2013 Apr 03
0
R 3.0.0 is released
...is defunct: use par("bg") or NA instead. o The long-defunct functions Rd_parse(), anovalist.lm(), categpry(), clearNames(), gammaCody(), glm.fit.null(), lm.fit.null(), lm.wfit.null(), manglePackageNames(), mauchley.test(), package.contents(), print.coefmat(), reshapeLong(), reshapeWide(), tkclose(), tkcmd(), tkfile.dir(), tkfile.tail(), tkopen(), tkputs(), tkread(), trySilent() and zip.file.extract() have been removed entirely (but are still documented in the help system). o The unused dataPath argument to attachNamespace() has been rem...
2013 Apr 03
0
R 3.0.0 is released
...is defunct: use par("bg") or NA instead. o The long-defunct functions Rd_parse(), anovalist.lm(), categpry(), clearNames(), gammaCody(), glm.fit.null(), lm.fit.null(), lm.wfit.null(), manglePackageNames(), mauchley.test(), package.contents(), print.coefmat(), reshapeLong(), reshapeWide(), tkclose(), tkcmd(), tkfile.dir(), tkfile.tail(), tkopen(), tkputs(), tkread(), trySilent() and zip.file.extract() have been removed entirely (but are still documented in the help system). o The unused dataPath argument to attachNamespace() has been rem...