Displaying 20 results from an estimated 200 matches similar to: "Split column"
2009 Dec 15
2
Reconstruct a dataset
Dear all,
I have a dataset that looks like this:
inividual var1 var2 ?
1 1 1 ?
2 1 2 ?
3 2 1 ?
4 2 2 ?
? ? ? ?
I will random sample 2 individuals from this dataset based on a set of
random numbers, e.g.,
rn1 <- c(0, 0, 1, 1), rn2 <- c(0, 0, 2, 0), rn3 <- c(1, 0, 0, 1), rn4 <-
2012 Apr 04
2
cluster analysis with pairwise data
Hello,
I want to do a cluster analysis with my data. The problem is, that the
variables dont't consist of single value but the entries are pairs of
values.
That lokks like this:
Variable 1: Variable2: Variable3: . . .
(1,2) (1,5) (4,2)
(7,8) (3,88) (6,5)
(4,7) (12,4) (4,4)
. . .
.
2010 Jun 03
5
string handling
I have a data.frame as the following:
var1 var2
9G/G09 abd89C/T90
10A/T9 32C/C
90G/G A/A
. .
. .
. .
10T/C 00G/G90
What I want is to get the letters which are on the left and right of '/'.
for example, for "9G/G09", I only want "G", "G", and for "abd89C/T90", I
only want "C" and
2008 Oct 20
0
[LLVMdev] Virtual Register allocation across functions
No, there isn't something like that right now. What are you trying to
accomplish?
If you wish to implement this, it shouldn't be hard to do. Right now,
MachineRegisterInfo re-starts virtual register number at
TargetRegisterInfo::FirstVirtualRegister. You can add a mechanism to
change that to a variable instead.
Evan
On Oct 20, 2008, at 1:43 PM, Villmow, Micah wrote:
> Is
2008 Oct 20
3
[LLVMdev] Virtual Register allocation across functions
I'm targeting a language that uses virtual registers and not physical
registers. So the easiest way to implement this is to use virtual
registers, except that they are being restarted after each function and
clobbering registers in previous functions. For example:
start function 0
r1024 = mov %var0.0
r1025 = mov %var0.1
lots of intermediate code
call function1 w/ 3 parameters
more
2008 Oct 20
2
[LLVMdev] Virtual Register allocation across functions
Is there currently a way to have virtual register allocation information
be saved across functions so that if I create a new virtual register in
a function that it doesn't use a virtual register allocated in any
previous function?
Thanks,
Micah Villmow
Systems Engineer
Advanced Technology & Performance
Advanced Micro Devices Inc.
4555 Great America Pkwy,
Santa Clara, CA. 95054
2013 Apr 10
6
means in tables
Hi.
I have 2 tables, with same dimensions (8000 x 5). Something like:
tab1:
V1 V2 V3 V4 V5
14.23 1.71 2.43 15.6 127
13.20 1.78 2.14 11.2 100
13.16 2.36 2.67 18.6 101
14.37 1.95 2.50 16.8 113
13.24 2.59 2.87 21.0 118
tab2:
V1 V2 V3 V4 V5
1.23 1.1 2.3 1.6 17
1.20 1.8 2.4 1.2 10
1.16 2.6 2.7 1.6 11
1.37 1.5 2.0 1.8 13
1.24 2.9 2.7 2.0 18
I need generate a table of averages, the
2012 Sep 26
3
Reading multiple files
Hi,
I have 35 data files for reading. I would like get a program for
performing reading of 35 files at once.
All are of the type: Dados1.raw, Dados2.raw and so on.
If the files have the same number of columns, I can read with the
following commands:
rm(list=ls())
filenames = list.files(path="~/Silvano/Arq", pattern="Dados+.*raw")
names = substr(filenames, 1, 7)
for(i in
2010 May 05
3
Latex and Stangle()
Hi,
I'm using the Sweave and I would like include codes of the R
in my LaTeX file.
I extracts the R code with Stangle (), whose name is
Relatorio.R but I can't include it
in the Latex file as an appendix.
Suggests?
Thanks,
--------------------------------------
Silvano Cesar da Costa
Departamento de Estat?stica
Universidade Estadual de Londrina
Fone: 3371-4346
2010 Aug 13
3
Games
Hi,
I want to build the table of a football league with 11
teams. All play together. So will 55 games.
Since there are an odd number of teams in each round a team
will not play.
The games will be:
games = urnsamples(1:11, x =
c('A','B','C','D','E','F','G','H','I','J','K'), size=2,
replace=F,
2012 Nov 08
3
Extracting columns
Hi,
I have 22 files (A1, A2, ..., A22) with different number of columns,
totaling 10,000 columns: c1, c2, c3, ..., c10000
I have another file with a list of 100 columns that I need to extract.
These 100 columns are distributed in 22 files.
How to extract the 100 columns of the 22 files?
I have done it "manually" with the following commands, for example:
cromo1 = read.table ("~
2011 Jul 06
3
Tables and merge
----- Original Message -----
From: "Silvano" <silvano at uel.br>
To: <r-help at r-project.org>
Sent: Thursday, June 30, 2011 9:07 AM
Subject: Tables and merge
> Hi,
>
> I have 21 files which is common variable CODE.
> Each file refers to a question.
>
> I would like to join the 21 files into one, to construct
> tables for each question by CODE.
>
2010 Nov 29
4
subset
?Hi:
I always use subset the same way but now is returning 0 rows.
What's wrong with the way I am subsetting?
library(ggplot2)
structure(list(first = c(38.2086, 43.1768, 43.146, 41.8044, 42.4232,
46.3646, 38.0813, 40.0745, 40.4889, 38.6246, 40.2826, 41.6056,
34.5353, 40.0768), second = c(43.3295, 42.4326, 38.8994, 37.0894,
42.3218, 46.1726, 39.1206, 41.2072, 42.4874, 40.2657, 38.7766,
2010 Jul 21
1
xtable
Hi,
How do I build a table from a regression model adjusted
using xtable?
Commands are:
modelo1 = lm(Y~X1 + X2)
influencia = influence.measures(modelo1)
require(xtable)
xtable(influencia)
but it isn't work.
Thanks,
--------------------------------------
Silvano Cesar da Costa
Departamento de Estat?stica
Universidade Estadual de Londrina
Fone: 3371-4346
2010 Mar 24
2
Mosaic
Hi,
I have this data set:
obitoss = c(
5.8,17.4,5.9,17.6,5.8,17.5,4.7,15.8,
3.8,13.4,3.8,13.5,3.7,13.4,3.4,13.6,
4.4,17.3,4.3,17.4,4.2,17.5,4.3,17.0,
4.4,13.6,5.1,14.6,5.7,13.5,3.6,13.3,
6.5,19.6,6.4,19.4,6.3,19.5,6.0,19.7)
(dados = data.frame(
regiao = factor(rep(c('Norte', 'Nordeste', 'Sudeste', 'Sul',
'Centro-Oeste'), each=8)),
ano =
2010 May 10
2
Extracting a subset
Hi,
I have a dataset with many variables and observations.
The variable Group has two levels: C and P,
the Month variable has four levels: 0, 1, 2 and 3.
I want to extract a subset of the variable Weight,
considering only 1 and 3 levels for Months of the Group
variable.
I tried the command subset but it did not work. Any
suggestions?
Thanks,
--------------------------------------
Silvano
2010 Jun 14
2
xtable with Sweave
Hi,
I'm using Sweave to prepare a descriptive report.
Are at least 20 tables built with xtable command of kind:
<<echo=F, results=hide>>=
q5 = factor(Q5, label=c("N?o", "Sim"))
(q5.tab = cbind(table(q5)))
@
<<echo=F, results=tex>>=
xtable(q5.tab, align="l|c", caption.placement = "top",
table.placement='H')
@
I'm
2010 Apr 01
2
About logistic regression
Hi,
I have a dichotomous variable (Q1) whose answers are Yes or
No.
Also I have 2 categorical explanatory variables (V1 and V2)
with two levels each.
I used logistic regression to determine whether there is an
effect of V1, V2 or an interaction between them.
I used the R and SAS, just for the conference. It happens
that there is disagreement about the effect of the
explanatory variables
2007 Feb 09
1
[LLVMdev] problems in buiding LLVM
Hello,
I'm trying to build LLVM on the last version of Cygwin, but the 'make
install' command terminates with errors.
Please find attached the config.log file and the final part of the make
output.
Can you help me?
Thanks
*******************************************
Silvano Rivoira
Dipartimento di Automatica e Informatica
Politecnico di Torino
Corso Duca degli Abruzzi 24
2011 Jan 14
2
subset factor?
Hi,
I used subset command, like this:
grupoP = subset(dados, grupos=='P', select=c(mortos, vivos,
doses, percevejos, p))
and the variables in select option are numeric.
I tried fit a model with command:
ajuste.logit = glm(cbind(mortos,percevejos)~log10(doses),
family=binomial(logit), data=grupoP)
and the output is:
> ajuste.logit = glm(cbind(mortos,percevejos)~log10(doses),