Displaying 20 results from an estimated 1000 matches similar to: "help with colsplit (reshape)"
2005 Mar 30
1
[LLVMdev] Branch simplification
Hi,
I have a CFG built by LLVM with blocks that look like this:
myBlock: ; preds = %predA, %predB
%cond = phi bool [ false, %predA ], [ %otherCond, %predB ]
br bool %cond, %succA, %succB
Is there a pass or sequence of passes that will see the constant
'false' in the PHI instruction and change the target of %predA to
point directly to %succB? I tried -simplifycfg but it
2012 Sep 27
4
Colsplit, removing parts of a string
Hi,
I am using colsplit (package = reshape) to split all strings
in a column according to the same patterns. Here
an example:
library(reshape2)
df1 <- data.frame(x=c("str1_name2", "str3_name5"))
df2 <- data.frame(df1, colsplit(df1$x, pattern = "_", names=c("str","name")))
This is nearly what I want but I want to remove the words
2005 Jul 11
2
CIs in predict?
Dear All,
I am trying to put some Confidence intervals on some regressions from a linear model with no luck. I can extract the fitted values using 'predict', but am having difficulty in getting at the confidence intervals, or the standard errors.
Any suggestions would be welcome
Cheers
Guy
Using Version 2.1.0 (2005-04-18) on a PC
vol.mod3 <-
2012 May 05
2
creating a new column assigning values of other columns
Hello,
?
I have to create a new column from the values of other columns of a data frame. The new?column (y$n) is created imposing a condition (using a third variable y$h) that assigns the values of two time variables (y$b and y$timepos). Here's the piece of code to get there (using the attached files):
?
xact <- read.table("act.lig", sep = ',',
2012 Apr 30
1
Subtract days to dates in POSIXct format
Hello,
I'm having problems working with date values in POSIXct format. Here is what I got (eg.lig attached):
x <- read.table("eg.txt", sep = ',', col.names=c("ok","time","secs","lig")) # it gives time as factor
z <- cbind(x,colsplit(x$time, split="\\s", names=c("date", "clock")))
2008 May 19
1
reshape a wide data frame from wide to a long format with metadata columns
Hello R users and developers,
I have a general question about reshaping a wide data frame using the
"reshape" command. I have a data frame consisting of 108 columns that
I would like to convert to a long table and remove the metadata
(embedded in the column names of the wide table) to new metadata
columns in the long format.
#example data frame. NOTE column names contain metadata::
2009 Jul 20
2
data frame from list of lists with unequal lengths
Hello,
I have a dataset with multiple entries in one field separated by "/"
characters. (The true dataset has long names, 20-odd variables, and
hundreds of observations.)
v1 v2
1 A L
2 A/B M
3 C N
4 D/E/F O
5 A P
6 C L
What I would like is to have a dataset that looks like this instead:
> my.df
v1 v2
1 A L
2 A M
3 B M
4 C N
5 D O
6 E O
2005 Sep 22
2
xenconsole: Could not open tty `/dev/pts/2'': No such file or directory
Anyone know how to fix this problem ?
[root@router torquato]# xm list
Name Id Mem(MB) CPU VCPU(s) State Time(s)
Domain-0 0 512 - 2 r---- 123.3
bruno 11 512 1 1 ----- 239.9
carlos 3 63 1 1 -b--- 8.9
derico 4 127 1 1 -b--- 6.2
fassanha 1 255
2010 Jun 26
4
optim() not finding optimal values
I am trying to use optim() to minimize a sum-of-squared deviations function based upon four parameters. The basic function is defined as ...
SPsse <- function(par,B,CPE,SSE.only=TRUE) {
n <- length(B) # get number of years of data
B0 <- par["B0"] # isolate B0 parameter
K <- par["K"]
2010 Jul 19
3
Reshaping data
Dear All,
I have some data in the following shape:
ID begin_t1 end_t1 begin_t2 end_t2
Thomas 11/03/04 13/05/06 04/02/07 16/05/08
... ... ... ... ...
Jens 24/01/02 23/05/03 07/06/03 14/11/05
I would like to reshape this data to have the following form:
ID Begin_Time End_Time
Thomas 11/03/04 13/05/06
Thomas 04/02/07 16/05/08
... ... ...
Jens 24/01/02 23/05/03
Jens
2011 Jan 20
4
How to reshape wide format data.frame to long format?
Dear list,
I need to convert this data.frame
> names(codesM)
[1] "key" "AMR.pa1.M" "AMR.pa2.M" "AMR.pa3.M" "AMR.pa4.M"
[6] "AMR.pa5.M" "AMR.pa6.M" "AMR.pa7.M" "AMR.pa8.M" "AMR.pa9.M"
[11] "AMR.pa10.M" "AMR.ta1.M" "AMR.ta2.M" "AMR.ta3.M"
2013 Mar 11
0
splitting column into two
HI,
Try this:
dat1<- read.table(text="
?V1,V2,V3,V4,V5,V6,V7
?chr1,564563,564598,564588 564589,1336,+,134
?chr1,564620,564649,564644 564645,94,+,10
?chr1,565369,565404,565371 565372,217,+,8
?chr1,565463,565541,565480 565481,1214,+,15
?chr1,565653,565697,565662 565663,1031,+,28
?chr1,565861,565922,565883 565884,316,+,12
",sep=",",header=TRUE,stringsAsFactors=FALSE)
2011 Oct 25
2
extract data for specific levels factor
Dear all,
I'm trying to analyze data with the following structure:
ind cat tx age
40.2 por fol peq vh 35
41.9 por fol med vh 35
68.9 por fol preov vh 35
71.5 por fol peq ser 37
67.5 por fol med ser 37
76.9 por fol preov ser 37
78.7 por fol peq otr 37
78.3 por fol med otr 37
82.1 por fol
2009 Dec 04
0
simple reshape of a large data frame (reshape() runs out of memory)
Hello everyone,
I'm having a problem performing reshape() on a large data frame. The
operation is fairly trivial but it makes R run out of memory.
The data frame has the following structure:
ID DATE1 DATE2 VALTYPE
VALUE
'abcd1233' 2009-11-12 2009-12-23 'TYPE1'
123.45
...
VALTYPE is a string and is a factor with
2010 Oct 26
4
divide column in a dataframe based on a character
Hello,
If I have a dataframe:
example(data.frame)
zz<-c("aa_bb","bb_cc","cc_dd","dd_ee","ee_ff","ff_gg","gg_hh","ii_jj","jj_kk","kk_ll")
ddd <- cbind(dd, group = zz)
and I want to divide the column named group by the "_", how would I do this?
so instead of the first row being
x
2006 Aug 06
0
Reshape package: new version 0.7
Reshape 0.7
===================
Reshape is an R package for flexibly restructuring and aggregating
data. It is inspired by Excel's pivot tables, and it makes it very
easy to view your data the way you want. The reshape package (along
with ggplot) received the John Chambers Award for Statistical
Computing. You can find out more at http://had.co.nz/reshape.
Reshape (hopefully) makes it easy
2006 Aug 06
0
Reshape package: new version 0.7
Reshape 0.7
===================
Reshape is an R package for flexibly restructuring and aggregating
data. It is inspired by Excel's pivot tables, and it makes it very
easy to view your data the way you want. The reshape package (along
with ggplot) received the John Chambers Award for Statistical
Computing. You can find out more at http://had.co.nz/reshape.
Reshape (hopefully) makes it easy
2015 Aug 25
0
CentOS 6.6 - reshape of RAID 6 is stucked
Hello
I have a CentOS 6.6 Server with 13 disks in a RAID 6. Some weeks ago, i upgraded it to 17 disks, two of them configured as spare. The reshape worked like normal in the beginning. But at 69% it stopped.
md2 : active raid6 sdj1[0] sdg1[18](S) sdh1[2] sdi1[5] sdm1[15] sds1[12] sdr1[14] sdk1[9] sdo1[6] sdn1[13] sdl1[8] sdd1[20] sdf1[19] sdq1[16] sdb1[10] sde1[17](S) sdc1[21]
19533803520
2006 Sep 30
0
Reshape version 0.7.1
Reshape version 0.7.1
=====================
Reshape is an R package for flexibly restructuring and aggregating
data. It's inspired by Excel's pivot tables, and it (hopefully) makes
it very easy to get your data into the shape that you want. You can find out
more at http://had.co.nz/reshape
What's new in this version?
* A 25 page introductory vignette, also available at
2006 Sep 30
0
Reshape version 0.7.1
Reshape version 0.7.1
=====================
Reshape is an R package for flexibly restructuring and aggregating
data. It's inspired by Excel's pivot tables, and it (hopefully) makes
it very easy to get your data into the shape that you want. You can find out
more at http://had.co.nz/reshape
What's new in this version?
* A 25 page introductory vignette, also available at