similar to: rearrange set of items randomly

Displaying 20 results from an estimated 6000 matches similar to: "rearrange set of items randomly"

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 that x etc can't be found). I'm not sure
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
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 there is an alternative function for this purpose. Please help me out .
2006 Aug 06
2
paired t-test. Need to rearrange data?
Dear all, I have received some data arranged like this: # original data id <- rep(letters[1:6], each=2) time <- as.factor(rep(1:2, 6)) y <- as.vector(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
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
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.9625738 4.103121 0.2437169 Oct? 0.6792115 0.8526226 5.105218
2007 Nov 27
2
rearrange data: one line per subject, one column per condition
Dear R-list, Is there a way to convert the typical long R data-format to a 1-line per subject format? I have data formatted as: Group subj condition variable 1 1 1 746.36625 2 2 1 1076.152857 1 3 1 1076.152857 2 4 1 657.4263636 1 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
2011 Nov 23
2
avoiding the sample in built function
Dear all, I am currently working on a function in which I would like to avoid using the command sample(). Therefore, I am now trying to make a for loop that does the same thing as the in built function sample does: Rearranging the items of a object randomly. So, the output I want to you get is the same as sample() would give me: e.g.: data <- c(5,4,6,7,8) sample(data) > data <-
2009 Jan 29
3
bootstrapping in regression
Hi, Please apologize if my questions sounds somewhat 'stupid' to the trained and experienced statisticians of you. Also I am not sure if I used all terms correctly, if not then corrections are welcome. I have asked myself the following question regarding bootstrapping in regression: Say for whatever reason one does not want to take the p-values for regression coefficients from the
2006 Jan 20
1
RFE: centos-announce subject line rearrange
hi, it's a nice thing that we've a centos-announce list, but currently the subject of this mails on this list has very long lines. eg: ----------------------------------------- [CentOS-announce] CESA-2006:0160 Moderate CentOS 3 i386 tetex - security update [CentOS-announce] CESA-2006:0140 Important CentOS 3 ia64 kernel - security update ----------------------------------------- which means
2008 Jan 07
1
How to rearrange lattice graphics output?
My question arises when I use levelplot graphics. For example, levelplot(z~x*y|fg) where fg is a factor with three levels of 'a','b','c'. The panels come out in a default order. I would like to rearrange the panels in a manner of 'c','b','a'. I used fg<-ordered(fg, levels=c('c','b','a')) But the panels are still the
2010 Feb 18
2
Rearranging data
Hi! I have just started learning R and today only I have joined this group. This is my first mail and I wish to thank all of you for allowing me to be part of this group. I have following problem. I have an input.csv file such that corp_id      date    investment_id       rate corp1        17-Feb         1                 65 corp1        16-Feb         1                 70 corp1        15-Feb   
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
2010 May 09
1
Is it possible to rearrange the facets in ggplot while keeping everything else the same?
Hello, First, ggplot2 is great! Second, sorry for the basic nature of my question. I have data in the form of a melt table like this: Subject Day Ab Variable Value 1 1 Yes A 3 1 3 Yes A 5 1 5 Yes A 7 2 1 No A 2 2 3 No A 4 2 5 No A 6 3 1 Yes A 1 3 3 Yes A 3 3 5 Yes A 5 4 1 No A 4 4 3 No A 6 4 5 No A 8 1 1 Yes B 3 1 3 Yes B 5 1 5 Yes B 7 2 1 No B 2 2 3 No B 4 2 5 No B 6 3 1 Yes B 1 3 3 Yes B 3 3 5
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")? b <-
2011 Jul 11
2
best way to aggregate / rearrange data.frame with different data types
Hi, I have a data.frame that looks like this: Subject <- c(rep(1,4), rep(2,4), rep(3,4)) y <- rnorm(12, 3, 2) gender <- c(rep("w",4), rep("m",4), rep("w",4)) comment <- c(rep("comment A",4), rep("comment B",4), rep("comment C",4)) data <- data.frame(Subject,y,gender,comment) data Subject y gender
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" [5]
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 example that is stated in the help****, I don't
2010 Feb 25
2
Rearranging entries in a matrix
I have a matrix, called data. I used the code below to rearrange the data such that the first column remains the same, but the y value falls under either columns 2, 3 or 4, depending on the value of z. If z=1 for example, then the value of y will fall under column 2, if z=2, the value of y falls under column 3, and so on. data x y z [1,] 50 13 1 [2,] 14 8 2 [3,] 3 7 3 [4,] 4 16 1 [5,] 6
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 <-