similar to: TimeStamps to seconds

Displaying 20 results from an estimated 300 matches similar to: "TimeStamps to seconds"

2011 Oct 06
1
Concecutive zeros and ones
Dear all, I haveĀ  a data series (might be vector or matrix) which is composed only from zeros and ones like the following example 0 0 0 1 1 0 1 0 0 1 1 1 1 0 0 0 I want to be able to return back the length of concecutive zeros and the length of concecutive ones. For that I want to have something like that returned: zeros= [3 1 2 3]; ones=[2 1 4]; How I can do that simply in R? I would like
2016 Feb 23
3
winbind limitations
Hi. Does winbind has limitations with lots of users in domain? I'm compiled samba 4.3.1 and created 40 users, so winbind and getent works fine, but when created 26.000 users and "wbinfo -u" doesn't show users. On DC Member Server, "wbinfo -u" and "getent passwd" doesn't show users to. On log.wb-CORP appears: [2016/02/23 18:46:46.319393, 1]
2011 Oct 09
2
Substract "previous" element
Dear all, I have a matrix with data and I want to substract from every value the previous element. Let's assume that my vector(matrix) is c<-(1,2,3,4,5) I want to get remove_previous c<-(0,1,2,3,4). How I can do that efficiently in R? I would like to thank you in advance for your help B.R Alex [[alternative HTML version deleted]]
2003 Sep 02
1
convert character to POSIXct
Dear list-members, I would like to calculate the difference between two points in time. To convert a 'time (GMT)'-character with the format "1/1/1999 01:01:01" into an object of class "POSIXct"', I first use the strptime() as suggested in the details help(as.POSIXct). e.g. starttime<-strptime("1/1/1999 01:01:01",format="%d/%m/%Y %H:%M:%S")
2011 Mar 21
3
How to substract a valur from dataframe with condition
Hello All, I need help with my dataframe, it is big but here I am using a small table as an example. My dataframe df looks like: X1 X2 X3 1 2011-02 0.00 96.00 2 2011-02 0.00 2.11 3 2011-02 2.00 3.08 4 2011-02 0.06 2.79 5 2011-02 0.00 96.00 6 2011-02 0.00 97.00 7 2011-02 0.08 2.23 I want values in columns X2 and X3 to be checked if they are greater than
2011 Oct 31
2
rle for non concecutive
Dear all, I would like to task you if you know a rle version that can work also in a non consecutive way too. B.R Alex [[alternative HTML version deleted]]
2006 Mar 06
7
is there a way to let R do smart matrix-vector operation?
Hi all, I want to substract vector B from A's each column... how can R do that smartly without a loop? > A=matrix(c(2:7), 2, 3) > A [,1] [,2] [,3] [1,] 2 4 6 [2,] 3 5 7 > B=matrix(c(1, 2), 2, 1) > B [,1] [1,] 1 [2,] 2 > A-B Error in A - B : non-conformable arrays [[alternative HTML version deleted]]
2008 May 21
3
Converting a 'difftime' to integer - How to???
I want to find the DOY (Day of Year) of some dates. I think to substract the date 1. January from the data to achive this. Something like: > d <- as.Date("2006-03-13") - as.Date("2006-01-01") +1 > d Time difference of 72 days So far so good. But d is a 'difftime' object. How do I get an Integer value from that? I tried severel things, incuding the
2010 Sep 19
1
help interpreting a model summary
Hello, I am all new here. Thanks for the job done, R really helped me in my thesis lately. However, I am kind of new in statistics, coming from mecanical engineering, and I mostly teached myself with "The R Book", so I may do silly things some time. PLease tell me if you think so. Anyway, I've just build up a piecewise linear model to fit some data, including some interaction and i
2012 Jul 23
3
3D scatterplot, using size of symbols for the fourth variable
Dear R fans, I would like to create a scatterplot showing the relationship between 4 continuous variables. I thought of using the package "scatterplot 3d" to have a 3-dimensional plot and then using the size of the symbols to represent the 4th variable. Does anybody know how to do this? I already tried to create this graph using the colour of the symbols, but I was unable to generate
2012 Mar 27
1
[LLVMdev] Compiling integer mod
For the simple C program below I show the output of clang and the output of the VS compiler (I am on windows). Maybe this is obvious to you, but is it really faster to do 2 multiplications, 3 movl instructions, 2 shifts, 1 add, and 1 substract than to do 1 mov, 1 cdq, and 1 idiv? I run into this while trying to understand why my code runs slower with llvm than a comparable program on windows.
2004 Aug 02
1
cheap way of getting number of frames in an ogg_page?
Hi, i just wonder if there's a cheap way of getting the number of oggVorbis pcm frames in an ogg_page, without actually decoding it? Can i use the granulepos of the page, substract the granulepos of the previous page? is this always guaranteed to work? thanks, Chris
2002 Apr 17
1
zero center a group of variables
*This message was transferred with a trial version of CommuniGate(tm) Pro* A simple question, perhaps to simple, but I am new to R: For a data frame with k variables and n1+n2 observations (two groups) how can i substract the group means for every variable, so both group variables become centered to mean zero? Thanks in advance for your help H?ctor
2010 Jun 07
1
prewhiten
HI all., I have some univariate time series that need to be prewhitened. HOw this can be performed in R. I am thinking of to fit an ARIMA model and substract this from the original series. Is this the correct way THanks in advance nuncio -- Nuncio.M Research Scientist National Center for Antarctic and Ocean research Head land Sada Vasco da Gamma Goa-403804 [[alternative HTML version deleted]]
2007 Nov 15
1
HELP: How to subtract a vector out of each row of a matrix or array
Hi All, I am having great trouble doing something pretty simple. Here is what I did: > x <- read.table("clipboard") > dim (x) [1] 126 10 > typeof(x) [1] "list" > w <- array(x) > typeof(w) "list" Q1: How come after constructing an array out of the list, the type of the array is still "list"? > w <- as.array(x) Error in
2023 Feb 21
2
Problem of intercept?
Dear R-experts, Here below my R code working with quite a few warnings.? x11 and x12 are dichotomous variable (0=no and 1=yes). I substract 1 to ignore intercept. I would like not to ignore intercept. How to modify my R code because if I just remove -1 it does not work? y= c(32,45,65,34,23,43,65,76,87,98,7,867,56,45,65,76,88,34,55,66) x11=c(0,1,1,0,0,1,1,1,0,0,1,0,0,1,0,0,1,1,0,1)
2008 Oct 03
1
Problem with strptime
Hello, I have a column with dates in the form %Y-%m-%d %H:%M:%S; I want to substract the line i+1 to the line i and get a numeric result (in seconds for instance). This is what I did (I take the data from a database): res<- dbSendQuery (con, "SELECT Date_Heure FROM data.meteo ")Time<-fetch(res, n=-1)TimeDifferencetime<-as.numeric(diff(strptime(Time, format='%Y-%m-%d
2009 Mar 06
1
a general question
Hi everyone, Although this question is more related to ChIP and ChIP-seq, it could be probably anchored in a more general statistical context. The question is : what method is better to assess the significance of the change in a signal (the signal can be DNA binding, for instance) given the background and 2 conditions. <. condition1 (eg no treatment) : background = 1;
2007 May 10
3
Getting the last day of the month.
Hi, Given a date, how do I get the last date of that month? I have data in the form YYYYMM, that I've read as a date using > x$Date <- as.Date(ISOdate(substr(x$YearEnd,1,4),substr(x$YearEnd,5,6),1)) But this gives the first day of the month. To get the last day of the month, I tried > as.Date(as.yearmon(x$Date,frac=0)) But I don't get the last day of the month here. (Tried
2009 Feb 12
2
Problem with lmer and wiki example
I am trying to duplicate the example by Spencer Graves in the wiki, using lmer with the Nozzle data. http://wiki.r-project.org/rwiki/doku.php?id=guides:lmer-tests However the Chisq value and the fitAB values that are calculated are different compared to those in the example. I also get a warning message when I attempt the fitAB. Does anyone have any guidance as to why this might happen and how