search for: rearrange

Displaying 20 results from an estimated 921 matches for "rearrange".

Did you mean: rearranged
2009 Jul 13
1
R in rearranging equations
Hi, can anyone tell me if R can be used to rearrange very complicated equations in terms of one of the variables? I have: dx/dt = a*b*m*y*(1-x)-r*x and, having set: dy/dx = 0, need to rearrange in terms of x. The problem I have is that I don't know how to rearrange equations when the variables are not yet defined (I get messages warning me...
2011 Nov 07
4
rearrange set of items randomly
Dear all, I hope that this question is not too weird, I will try to explain it as good as I can. I have to write a function for a school project and one limitation is that I may not use the in built function sample() At one point in the function I would like to resample/rearrange the items of my sample (so I would want to use sample, but I am not allowed to do so), so I have to come up with sth else that does the same as the in built function sample() The only thing that sample() does is rearranging the items of a sample, so I searched the internet for a function that does...
2006 Aug 06
2
paired t-test. Need to rearrange data?
...(replicate(6, c(rnorm(n=1, mean=1), rnorm(n=1, mean=2)))) test.data <- data.frame(id, time, y) test.data I would like to perform a paired t-test of the y-values at time=1 against those at time=2, with samples paired by their id. Is it necessary to arrange the data in a format like this: # rearranged data id <- letters[1:6] y1 <- replicate(6, rnorm(n=1, mean=1)) # y-value at time = 1 y2 <- replicate(6, rnorm(n=1, mean=2)) # y-value at time = 2 test.data2 <- data.frame(id, y1, y2) test.data2 ...in order to perform a paired t-test? t.test(y1, y2, paired=T) If yes, which is the mos...
2010 Oct 10
0
rearrange command in quantreg package
Dear all, I want to use the "rearrange" command which is based on Chernozhukov et al paper and is included in the quantreg package. So, I run a quantile regression in which I included dummy variables for state and years in order to estimate the respective fixed effects quantile regression. The problems are the followings: 1. At ex...
2010 Feb 23
3
how to rearrange a dataframe
Hi all, I'd appreciate if anyone can help me with this... I have a data frame that looks like this: 1 + name1 1 2 3 2 + name2 5 9 10 2 - name3 56 74 93 1 - name4 65 75 98 I need to rearrange this in a way so that the rows with "1" in the first column, and "-" in the second column; then columns 4 and 6 should switch places. That is, column 6 would be now column 4 and column 4 would be column 6 (column 5 should stay as column 5) In the same way, if the first column i...
2007 Sep 13
1
rearrange problem
Hi All, I am trying to rearrange alphabetically each element in a character vector. ex: say the first element in the vector is "cba", and my goal is to turn it into "abc". The suggested function to use is sort(). But it turns out that sort doesn't work at the level of element. So I am wondering that if ther...
2011 Jan 31
0
Function rearrange (quantreg)
Dear all How can I obtain the data from the function "rearrange" in package quantreg More especifically, based on the example below (available in the help of the rearrange function), how can I access the data generated by "rearrange(zp)" ? data(engel) z <- rq(foodexp ~ income, tau = -1,data =engel) zp <- predict(z,newdata=list(i...
2010 Feb 18
2
Rearranging data
...88 6    corp2   17-Feb             1                    95 7    corp2   16-Feb             1                  135 8    corp2   15-Feb             1                  140 13  corp11  17-Feb             1                    30 14  corp17  17-Feb             1                    16 My objective is to rearrange filtered1 as date         corp1   corp2   corp11    corp17 17-Feb       65        95         30          16 16-Feb       70       135 15-Feb       69       140 14-Feb       89 13-Feb       88 #(The above figures represent the corp-wise and date-wise rates for investment_id = 1.) Please guide me...
2003 Oct 27
1
packet rearranging questions
Hello again. If you recall, I am the guy working on enabling Audacity to losslessly rearrange Ogg Vorbis files for my senior thesis. I have more or less completed the required modifications to Audacity to support this. You can read more about the work this entailed by reading my journal: http://www.reverberate.org/computers/thesis/journal Now my attention moves to the Ogg Vorbis code ne...
2007 Nov 27
2
rearrange data: one line per subject, one column per condition
...5 1 854.1266667 2 6 1 1191.676154 1 7 1 1028.175385 1 1 2 46.36625 2 2 2 76.152857 1 3 2 76.152857 2 4 2 57.4263636 1 5 2 54.1266667 2 6 2 191.676154 1 7 2 028.175385 ... Here, one line equals the value of one subjects VARIABLE in function of the GROUP and the CONDITION. However, I would like to rearrange the data so that the columns of my data equal the 2 conditions and the lines the subjects. This is something like: subj group condition1 condition2 1 1 746.36625 46.36625 2 2 1076.152857 76.152857 ... I know its possible the other way around. But that's not what I need (this time). Before an...
2006 Aug 08
0
(Fwd) Re: paired t-test. Need to rearrange data?
------- Forwarded message follows ------- From: Petr Pikal <petr.pikal at precheza.cz> To: Henrik Parn <henrik.parn at bio.ntnu.no> Subject: Re: [R] paired t-test. Need to rearrange data? Date sent: Tue, 08 Aug 2006 16:13:47 +0200 Hi Uff, it takes me a bit headache but this shall do it ?unstack ?table ?t new.list<-unstack(test.data,y~id) new.test.data<-t(as.data.frame(new.list[table(test.data$id)>1])) # if you have more than 2 catches you need to modify this^...
2003 Feb 05
1
rearranging rows
Dear all, I am working with a matrix structured as follows Factor 1 Factor2 ... Country 1 Country 1 Country 2 Country 2 ... Country N Country N and I need to rearrange it according to the following scheme Factor 1 Factor2 ... Country 2 Country 2 Country N Country N ... Country 1 Country 1 where countries are ordered accordingly to the average value of factor 1 correspondent to each country. What is the easy way of doing it? Many than...
2011 Apr 21
1
Rearranging columns with cbind
I'm getting an error that I don't understand when trying to rearrange my data columns with cbind. My data is in 27 columns, like so: > data <- read.table("CalledFeatsNimblegen.csv", header=T, sep=",") > names(data) [1] "MF_not_mC" "MF_promoter" "MF_genebody" "FF_not_mC"...
2008 May 16
2
How to swap and rearrange rows?
Dear R-expert, How to swap and rearrange the row so that I will have Jan-Dec in order? > est31 ??????????? p0 est.alpha est.beta? est.rate Jan? 0.8802867 0.7321440 7.241757 0.1380880 Mar? 0.8598566 0.7096567 7.376367 0.1355681 May? 0.6204301 0.8657272 6.036106 0.1656697 July 0.5032258 0.9928488 4.027408 0.2482986 Aug? 0.5322581 0.96257...
2009 Jan 29
3
bootstrapping in regression
...p-values for regression coefficients from the established test statistics distributions (t-distr for individual coefficients, F-values for whole-model-comparisons), but instead apply a more robust approach by bootstrapping. In the simple linear regression case, one possibility is to randomly rearrange the X/Y data pairs, estimate the model and take the beta1-coefficient. Do this many many times, and so derive the null distribution for beta1. Finally compare beta1 for the observed data against this null-distribution. What I now wonder is how the situation looks like in the multiple regressio...
2010 Feb 20
3
Rearranging a data frame for multiple observations
Hi there, I think I'm struggling with a fairly simple problem but can't seem to solve it. I have multiple observations for one unique identifier. Ultimately I want to end up with one line per identifier with multiple observations in rows. I'm really stuck any help would be really appreciated. CAO0337134 05/09/95 CAO0337134 27/09/05 CAO0347741 10/10/04 CAO0347741 12/10/04
2011 May 08
2
Rearranging variables in table in non-alphabetical (manually specified) order
Dear all, I'm trying to rearrange variables in a table in a custum order for using it with levelplot. So far I could only find examples showing how to sort alphabetically. Here is a short example:? a <- c("Anna","Anna","Michael","Klaus","Klaus","Anna","Fritz"...
2009 Jul 09
1
Wiki page "HowTos/Subversion" needs rearrangement
Dear all, While translating the "HowTos/Subversion" wiki page, I've found that the order of the following paragraphs need to be rearranged in this way to make sense: == References: == Subversion: ... Version Control with ... == 1) Installation: == [root at lucifer ~] ... The first thing ... <--- this has been moved When you install ... <--- this has been moved Regards, Timothy Lee
2006 Jun 23
1
rearranging data frame rows
...number of individuals, coded in the first column with a name, in an order I find convenient. The second contains different data about the same indivduals, in a different order. Both data frame have the individual names in the first column. I need to reorder the second data frame so the rows are rearranged in the same manner as the fist. How? I cannot turn the individual names in a numeric vairable with as.numeric(data1[,1]), because the two data frames are subset of different data, so the the factor levels are way off between the two. I think I need to actually use the names as a index. Cheer...
2006 Jun 23
0
R: rearranging data frame rows
...coded in the first column with a name, in an order I find convenient. > >The second contains different data about the same indivduals, in a different >order. Both data frame have the individual names in the first column. > >I need to reorder the second data frame so the rows are rearranged in the same >manner as the fist. How? > >I cannot turn the individual names in a numeric vairable with >as.numeric (data1[,1]), because the two data frames are subset of different data, >so the the factor levels are way off between the two. I think I need to actually >use t...