similar to: Sequence of ordered variable to add as column

Displaying 20 results from an estimated 6000 matches similar to: "Sequence of ordered variable to add as column"

2010 Mar 18
2
Reshape dataframe according to ordered variables
Dear all, I am still a R apprentice... Apologies for the basic question. I am trying to reshape a dataframe based on the order of two variables (a character variable and a numerical variable). To simplify it, consider the following dataframe > df<-data.frame(id=c("b","b","a","a","a"),ord=c(2,1,1,3,2)) id ord 1 b 2 2 b 1 3 a 1 4
2011 May 31
2
Latin Hypercube Sampling with a condition
Hello all, I am trying to do a Latin Hypercube Sampling (LHS) to a 5-parameter design matrix. I start as follows: library(lhs) p1<-randomLHS(1000, 5) If I check the distribution of each parameter (column), they are perfectly uniformly distributed (as expected).For example, hist(p1[,1]) Now the hard (maybe strange) question. I want the combination of the first three parameters to sum up to
2011 Sep 21
2
problem with function "Truncate" in package "distr"
Hello all, Can someone tell me why the following mixture of two log-normal distributions does not get truncated? What puzzles me is that the function works almost always, but for certain combinations (like the one below), it does not. # R code example library(distr) mix<-UnivarMixingDistribution(Lnorm(3.2,0.5),Lnorm(5.4,0.6),mixCoeff=c(0.3,0.7))
2011 Feb 24
1
extract printed value from a function
Hello all, This shouldn't be difficult, but I am not able to extract a printed value from a function and assign it to an object. In my case, > library(DAAG) > twotPermutation(c(2,3,4),c(3,6,5),plotit=F) [1] 0.298 I would like to assign this result to an object. Thanks, Duarte
2006 Nov 24
6
Rails 1.2 RC1 problem
Hi Have this helper method inside a sites_helper.rb module def distritos [ ['0', 'Todos'], ['1', 'Aveiro'], ['2', 'Beja'], ['3', 'Braga'], ['4', 'Brangança'], ['5', 'Castelo Branco'], ['6', 'Coimbra'], ['7',
2009 Mar 22
1
barplot2 x-axis
Dear R users, I am trying to build a barplot2 graph however I can't find a way of defining the scale for the x-axis. I would like to show in my x-axis only the numbers 0, 25, 50, 75 etc. (so far R is giving me a random scale hard to interpret and it doens't look nice...). Could anyone advise me on how to do this please, it would be a great help! Thank you. Below I show the code I have
2008 May 13
5
wineRC1_opensuse10.3_err_stdp
hi All I updated my wine ot RC1 and run winecfg then I have some strange line Code: err:winedevice:ServiceMain driver L"sptd" failed to load all work but what it can mean? I try to find any info in wine bugzilla but not find anything PS:In addition I has well working warcraft3 in earlier versions of wine... but now it work slow... Code: err:winedevice:ServiceMain driver
2010 Dec 01
4
Sequence for repeated numbers
Hello fellows, I would like to create a sequence for repeated numbers in a dataset. For example: ID <- c(1:20) grade <- c(4,4,4,5,5,7,7,7,7,8,8,8,9,9,9,9,9,10,10,10) Data: ID Grade 1 4 2 4 3 4 4 5 5 5 6 7 7 7 8 7 9 7 (...) I would like to create a variable "sequence": Data: ID Grade Sequence: 1 4 1 2 4 2 3 4 3 4 5
2010 Apr 18
1
unorder an ordered factor
Given an ordered factor, how does one unorder it? I tried various commands with reorder, with order=F, but they all gave me error messages. I also tried to drop the order with various 'as dot something' commands, but these didn't work either. -- View this message in context: http://n4.nabble.com/unorder-an-ordered-factor-tp2014745p2014745.html Sent from the R help mailing list archive
2003 Jan 14
3
PLS regression?
Hi all, I would like to do some QSAR analysis (quantitative structure activity relationship). I need to use some Partial Least Squares (PLS) regression, but I have not seen this option on the R-project. Is it possible to do this kind of regression on R? thank you in advance best regards, olivier [[alternate HTML version deleted]]
2007 Jan 08
2
Contrasts for ordered factors
Dear all, I do not seem to grasp how contrasts are set for ordered factors. Perhaps someone can elighten me? When I work with ordered factors, I would often like to be able to reduce the used polynomial to a simpler one (where possible). Thus, I would like to explicetly code the polynomial but ideally, the intial model (thus, the full polynomial) would be identical to one with an ordered factor.
2007 May 29
1
Fw: hierarhical cluster analysis of groups of vectors
Hi Rafael, What about multivariate logistic regression? ----- Forwarded Message ---- From: Rafael Duarte <rduarte@ipimar.pt> To: Anders Malmendal <anders@chem.au.dk> Cc: r-help@stat.math.ethz.ch Sent: Tuesday, May 29, 2007 3:21:11 PM Subject: Re: [R] hierarhical cluster analysis of groups of vectors It seems that you have already groups defined. Discriminant analysis would probably
2006 Dec 20
2
\Sexpr in MikTex
Greetings, \Sexpr{} has worked on MikTex with earlier versions of R, I can not seem to get it to work with R-2.4.0. I run Sweave with MikTex using the following statement in Run under Accessories. latex -include-directory="C:\Program Files\R\R-2.4.0\share\texmf" "C:\Documents and Settings\Suzette\Desktop\MyFile\MyProgram.tex" Any advice would be much appreciated, Suzette
2008 Apr 08
2
Error: expected the collection operator c error pos 98 (error on line 1)
Greetings, I implemented BRugs to run the EWOC model with a cohort size N=1. I output the simulation data using bugsdata(data), where data is the following list. > data $Dose [1] 140 $Y [1] 0 bugsdata(data) puts out the file data.txt as follows. list(Dose=1.40000E+02, Y=0.00000E+00) after I type the following line modelData("data.txt")
2005 Sep 21
4
UTMP duplicated entries
Hi everybody! I've been noticing some strange entries in samba/utmp. I have a lot of 00:00 timed sessions. But the worst problem is that i found some conflicting information. Since windows doesn't allow concurrent login sessions, I think utmp should not have generated the following entries. liana smb/2 192.168.0.207 Fri Sep 2 18:43 - 00:52 (06:08) rodrigobaso
2002 Sep 17
1
ActiveTcl Version
Dear Tcl/Tk users, Will R work with the more recent version of ActiveTcl 8.4.0.1 or should I use ActiveTcl 8.3.4.3? Peter --------------------------------------------------------------- Peter Ho Departamento de Ci?ncias de Engenharia e Tecnologia Escola Superior de Tecnologia e Gest?o Instituto Polit?nico de Viana do Castelo Avenida do Atl?ntico- Apartado 574 4901-908 Viana do Castelo Email:
2012 Dec 21
2
how to recode an ordered factor
Dear R helpers, I'm trying to recode an ordered factor to reverse its scale, but I can't figure out how to make it. I am using the Recode function provided by the Car package. I've created an ordered variable: data$o.var1 <- ordered(data$var1, levels=c(1,2,3,4), labels =c("very satisfied", "fairly satisfied", "not very satisfied", "not at all
2006 Jun 07
3
Problem in window
My error in window of my program fixme:enhmetafile:PlayEnhMetaFileRecord ExtSelectClipRgn How proced for not apresent this problem ? __________________________________________________ Fale com seus amigos de gra?a com o novo Yahoo! Messenger http://br.messenger.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Mar 09
2
SaMBa 4 - authenticate ftp server
Hello guys, Does anyone know if it is possible to authenticate an ftp server (proftpd or vsftpd) based LDAP Samba 4? Thanks -- Celso Vianna BSD User: 51318 http://www.bsdcounter.org Palmas/TO
2004 Nov 17
2
version 1.0.1 X 1.1.4
I need to compile with version 1.1.4 because this is the one distributed with Mandrake 10 and it is my desire to let my application compile in this distribution and be compatible with other ones. Fl?vio Jean-Marc Valin wrote: >Why do you want your app to with with 1.1.4 in the first place. It's a >old unstable version and its API has been changed since then. > > Jean-Marc >