Re: [R] Convert time format to character

2014-11-03 Thread Jeff Newmiller
I think the OP is being vague by saying "time format" (wouldn't a small reproducible example from the OP help right now)... if that is really another character string laid out as described then you might have difficulty with time zones for some values by converting to POSIXct first. If so, you c

Re: [R] Convert time format to character

2014-11-03 Thread Peter Alspach
Tena koe For example: myTime <- Sys.time() myTime [1] "2014-11-04 14:58:10 NZDT" format(myTime, '%Y%m%d:%H%M%S') [1] "20141104:145810" My information in ?strptime. HTH Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Be

[R] Convert time format to character

2014-11-03 Thread TJUN KIAT TEO
Suppose I have a object in time format 2014-08-13 00:30:00 I want to convert it to a character string 20140813003000 Is is possible ? Tjun Kiat [[alternative HTML version deleted]] __ R-help@r-projec

[R] Stacked squares plots

2014-11-03 Thread Osman Al-Radi
Dear R-help users, I would like to produce a plot of ordered stacked coloured square where each square would represent a level of a categorical variable CAT (aprox. 150 levels), the size of the square would represent the frequency FREQ (count) of that level, the color would represent a proporti

[R] Webdings font on pdf device

2014-11-03 Thread Steve Taylor
Dear R-helpers Has anyone successfully used the Webdings font on a pdf or postscript device? I'm tearing my hair out trying to figure out how to make it work. # It works on a png() device: windowsFonts(Webdings = windowsFont("Webdings")) png('Webdings.png', family = 'Webdings') plot(-3:3,-3:3,t

Re: [R] split a field in dependence of the semicolon

2014-11-03 Thread David Winsemius
On Nov 3, 2014, at 10:47 AM, Bert Gunter wrote: > See ?strsplit using the fixed =";" argument on the column containing > the character vector you wish to split. > > The trickier part is that the result is a list that needs to be > manipulated -- ?do.call might be useful here, although I haven't

Re: [R] split a field in dependence of the semicolon

2014-11-03 Thread Bert Gunter
See ?strsplit using the fixed =";" argument on the column containing the character vector you wish to split. The trickier part is that the result is a list that needs to be manipulated -- ?do.call might be useful here, although I haven't thought about it seriously -- to build your data frame conta

[R] split a field in dependence of the semicolon

2014-11-03 Thread Matthias Weber
Hello togehter, i have a little problem, maybe anyone can help me. I have a data.frame, which look like this one: ID Members 1 1 ; abc; def; ghi 2 2 ; abc; 3 3 ;def; How can I create another column for each value between 2 semicolons? The resul

[R] nlme Indometh SSbiexp

2014-11-03 Thread Boldi
Dear all, Probably a very stupid question. I am trying to reproduce the example of Pinheiro & Bates pp.278--287 on R 3.0.2 (Windows). I'd like to run : ### mod.nls <- nls(conc ~ SSbiexp(time, A1, lrc1, A2, lrc2), data=Indometh) mod.lis <- nlsList(conc ~ SSbiexp(time, A1, lrc1, A2, lrc2), data=In

Re: [R] mclust for time series

2014-11-03 Thread Ranjan Maitra
On Mon, 3 Nov 2014 13:51:52 +0100 atesh koul wrote: > Hi all, > > I am new to using model based clustering. I am using the clustering to find > how many clusters could be there in the data and the assignment of trials > to these clusters. > > The data are hand kinematics data- 12 variables at 1

[R] mclust for time series

2014-11-03 Thread atesh koul
Hi all, I am new to using model based clustering. I am using the clustering to find how many clusters could be there in the data and the assignment of trials to these clusters. The data are hand kinematics data- 12 variables at 10 discrete time points for 17 subjects. I have previously seen use o

[R] column names in write.table

2014-11-03 Thread D'ANTUONO ALESSIO (MPS-8875)
Dear all, about the problem shown by Foehl, I suggest one shortcut to reach the aim in a simply way: write.table(matrix(c("Index","Rate","Demand","Supply"),nrow=1,ncol=4,byrow=T,dimnames=NULL), "fs.csv",sep =";", row.names=F, col.names=F) write.table(fs, file="fs.csv", append=T, sep="," row.n

Re: [R] Variance of multiple non-contiguous time periods?

2014-11-03 Thread CJ Davies
On 30/10/14 21:33, Jim Lemon wrote: > On Fri, 31 Oct 2014 07:19:01 AM Jim Lemon wrote: >> On Wed, 29 Oct 2014 05:12:19 PM CJ Davies wrote: >>> I am trying to show that the red line ('yaw') in the upper of the two >>> plots here; >>> >>> http://i.imgur.com/N4Xxb4f.png >>> >>> varies more within the

[R] how to get likelihood function and negative hessian matrix

2014-11-03 Thread Hjellvik, Vidar
I would like to implement in R a method that was proposed in a paper recently published in Am J Epidemiol: Adjustment for Missing Confounders in Studies Based on Observational Databases: 2-Stage Calibration Combining Propensity Scores From Primary and Validation Data. Am J Epidemiol. 2014;180(3)