Displaying 17 results from an estimated 17 matches similar to: "help with reshaping data into long format (correct question)"
2008 Jan 15
0
Help with reshape data into long format
Dear list,
I have the following data set
id 1 2 3 4 5 6 7 8 9 10
disease a b c d e f g h i j
age 23 40 32 34 25 32 22 35 29 21
city NY LD NY SG NY LD VG SA LD SG
sex 1 1 2 2 2 2 1 1 1 2
treat_a y y y y
treat_b n n n n n n
ques1_1 2 4 5 6 8 3 1 2 4 5
ques1_2 6 4 5 12 10 9 8 4 5 7
2011 Mar 08
1
How to sort using a predefined criterion
Dear R helpers,
Suppose I have following data.frame.
df <- data.frame(category = c("treat_A", "treat_A", "treat_A", "treat_A", "treat_A", "treat_A", "treat_A", "treat_A", "treat_B", "treat_B", "treat_B", "treat_B", "treat_B", "treat_B",
2007 Apr 04
2
selection of character
Hi all,
I have a simple question:
I have a character vector like this
[1] "10_1" "1_1" "11_1" "2_1" "3_1" "4_1" "5_1" "6_1" "7_1" "8_1"
[11] "9_1" "1_3" "2_3" "3_3" "4_3" "1_4" "2_4" "3_4"
2012 Mar 09
1
Multiple Correspondence Analysis
You should send this to r-help@stat.math.ethz.ch.
On 03/09/2012 09:21 AM, Andrea Sica wrote:
> Hello everybody, I'm looking for someone who is able with MCA and
> would like to gives some help.
>
> If what I'm doing is not wrong, according to the purpose I have, I
> need to understand how to create a dependence matrix, where I can
> analyze the
> dependence between
2012 Aug 17
2
How can we compare corresponding values of x and y (first value of x exacly matches with the first value of y)?
df <- data.frame (
"RowId" = 4:7,
"x"=c("1_1", "2_2", "3_3", "3_3"),
"y"=c("1_1", "3_3", "2_2", "3_3")
)
How can we compare corresponding values of x and y (first value of x exacly matches with the first value of y)?
If they were not matced
2008 Nov 27
1
Help processing large data
Dear all,
I have one problem to handle a large dataset...
It looks like:
"read" "no" "length"
2 2 144
7 7 47490
9 9 310944
11 11 10089
14 14 13152
17 17 27363 and so on
There are 130000 rows
>From this table I need to make a table like
2_1 2 100
2_2 2 44
7_1 7 100
7_2 7 100
...
...
7_474 7 100
7_475 7 90
9_1 9 100
9_2 9 100 and so on...
In words: I want to
2013 Sep 25
1
Computing calculation among two vectors
Hi,
Try:
x<- 1:4
?y<- c("*","/","-","+")
res<-sapply(y,function(i) {x1<-expand.grid(x,x); unlist(lapply(paste0(x1[,1],i,x1[,2]),function(u) eval(parse(text=u))))})
row.names(res)<- as.character(interaction(expand.grid(x,x),sep="_"))
head(res)
#??? *?? /? - +
#1_1 1 1.0? 0 2
#2_1 2 2.0? 1 3
#3_1 3 3.0? 2 4
#4_1 4 4.0? 3 5
#1_2 2 0.5
2011 Oct 12
0
PMML for Cox Regression
Hi,
We have created a cox regression model (coxph) and exported from R as PMML
using the Rattle package. The resulting PMML is a standard Regression model
in the format y=b1*x1+b2*x2+??.bn*xn:
risk= (0.027968680616809*dropped_Calls)+(0.00777220409115466*helpdesk_Calls)
The PMML is included at the end of this post.
Cox Regression is usually in this format:
h(t)= h0(t)*e^(b1*x1+b2*x2+??.bn*xn)
2010 Nov 05
1
__Legend_para_varios_gr�ficos
Hola a todos, en efecto, lo crucial es el new, he utilizado estas líneas
para mi código:
par(new=T, mfrow=c(1,1), mar=c(0,4,2,2), oma=c(1,1,0,1))
plot(-1,type="n",axes=F,xlab='',ylab='')
2018 May 07
2
Compiling 3.13.2 under FreeBSD 11.1?
Hello,
Has anyone managed to successfully compile the latest 3.13.2 under
FreeBSD 11.1? ./autogen.sh and ./configure seem to work but make
fails:
Making all in src
CC glfs.lo
cc: warning: argument unused during compilation: '-rdynamic'
[-Wunused-command-line-argument]
cc: warning: argument unused during compilation: '-rdynamic'
[-Wunused-command-line-argument]
fatal
2010 Nov 05
2
Legend para varios gr�ficos
Hola a todos,
Mi pregunta es si hay alguna manera (sencilla/rápida o no) de colocar
una leyenda común para dos gráficos colocados en paralelo con
par(mfrow=c(1,2)).
He probado con par(xpd=NA) y con par("usr") pero no encuentro la solución.
Está claro que podría poner la misma leyenda para cada gráfica, pero
quedaría mejor con una global para ambos.
Muchas gracias de antemano por la
2006 May 03
0
RoR Developer Job available in San Francisco (downtown)
Hello,
Thought I''d pass this along to any job seekers out there. My
understanding is that this is a relatively junior to mid-level position.
==============================================================
Web Application Developer -- Ruby on Rails
Blurb, Inc, San Francisco (Full Time)
Are you a person who is excited to explore new technologies and build
cutting edge applications
2011 Apr 11
2
Fixme errors shdocvw and DocHostContainer_exec Exec failed
I recently tried to run an application in Wine 1.3.13 w/ winetricks on RHEL 4. The application gets pretty far, but cannot completely load due to errors. The error log is below. Can you point me in the correct direction to fix these problems? The application is mostly html based, but I cannot release it to you because it is "For Official Use Only".
Error List:
[ROCV at
2005 Jul 18
2
scriptaculous dragdrop.js empty list problem
Hi,
I''ve just been having a look at the scriptaculous drag-n-drop library, which
looks exceedingly good. I''m running across a show-stopper here, though -
something that''s cropping up in both the online demos and my own test scripts. If
I set up two lists so that I can drag items between them, then if either list
becomes empty, I can''t drag elements back into
2007 Jul 10
3
winbind + samba limits with large AD?
Hi,
a few months ago I tried to setup samba + winbind (debian etch,
amd64, samba 3.0.24). I followed the howto and got the authentication
running. But I had not much success with winbind. I disabled the
user/group enumeration, but this didn't change it. A simple 'ls -l' in
a directory with 10-20 files took minutes to return the list and most
of the time winbindd just stopped working
2018 May 07
0
Compiling 3.13.2 under FreeBSD 11.1?
On 05/07/2018 04:29 AM, Roman Serbski wrote:
> Hello,
>
> Has anyone managed to successfully compile the latest 3.13.2 under
> FreeBSD 11.1? ./autogen.sh and ./configure seem to work but make
> fails:
See https://review.gluster.org/19974
3.13 reached EOL with 4.0. There will be a fix posted for 4.0 soon. In
the mean time I believe your specific problem with 3.13.2 should be