similar to: problem with as.Date

Displaying 20 results from an estimated 5000 matches similar to: "problem with as.Date"

2009 Nov 11
4
as.Date from data.frame
#Hello, #I loaded data using read.table - I needed to convert a row in the data frame to date class: > data V1 V2 V3 V4 1 2008-05-19 2008-04-19 2008-03-21 2008-02-22 2 38.16999817 30.70999908 36.86000061 35.18999863 3 37.47999954 29.95000076 36.45999908 35.36000061 4 37.47999954 30.14999962 36.47000122 35.36000061 5 37.84999847 30.56999969 36.84000015
2012 Jun 28
1
Merging listed dataset into one
Hello, I'm wondering how I can merge two featuresets into one. My dataset is two sets of microarray data and it looks like followings: > rawData $v1 TilingFeatureSet (storageMode: lockedEnvironment) assayData: 2197815 features, 59 samples element names: channel1, channel2 protocolData rowNames: LT290677RU_D1_2011-02-16 LT286300LU_D1_2010-07-24 ... LT003990RU_D1_2010-11-04 (59
2010 Apr 15
3
Replace / with - in date
Hi,every one .I have searched the solutions in the forum for replacing my date value which is in a data frame ,01/01/2000 to 01-01-2000 using replace function but got the following warning message x<-"2000/01/01" xd<-as.data.frame(x) xd$x<-replace(xd$x,xd$x=="/","-") Warning message: In `[<-.factor`(`*tmp*`, list, value = "-") : invalid
2012 Feb 09
1
Constraint on one of parameters.
Dear all, I have a function to optimize for a set of parameters and want to set a constraint on only one parameter. Here is my function. What I want to do is estimate the parameters of a bivariate normal distribution where the correlation has to be between -1 and 1. Would you please advise how to revise it? ex=function(s,prob,theta1,theta,xa,xb,xc,xd,t,delta) { expo1=
2004 Jul 30
1
plot(x,y) core dump
Dear R Development Team, I compile R-1.9.1 on AIX 5.2 under 2.9-aix51-020209, and xlf 7.1. In order to let R compile successfully under gcc 2.9, I have to change one C statement of file(RHOME//src/modules/X11/devX11.c) line 1768 from "retrun FALSE" to "retrun NULL", following is C code snapshot: newX11Desc * Rf_allocNewX11DeviceDesc(double ps) { newX11Desc *xd;
2006 Aug 02
1
RE
Hi any, Can some please detail me the createX command in bayesm package? To make things easy for you to help me, let me put forward my problem Suppose I have 3 covariates (say X matrix) and my Y has 3 categories say (1,2,3). Now from the CreateX I understand that the data matrix say 'Xa' must be of dimension n* (naxp), where 'na' is the number of variables and 'p' is
2002 Feb 07
1
Plotting on log scale using plot.date()
Hi, I'm trying to use the date library and I think I'm getting an incorrect warning when I make a plot with plot.date(). For example: > library(date) > x <- as.date(1:100) > y <- 1:100 > plot(x, y, log = "y") Warning message: parameter "log" couldn't be set in high-level plot() function The problem appears to be in the last line of plot.date()
2010 Apr 29
1
Request - adding recycled "lwd" parameter to polygon
Hello dear members of R-help and R-core mailing list, I am not sure if this request is a "ticket" that should be filled somewhere outside the mailing list. If so, I apologize for not doing and would like to know where I should have filled it. And to the subject matter: I would like to use a command like this: plot(c(1,8), 1:2, type="n") polygon(1:7, c(2,1,2,NA,2,1,2),
2010 Apr 29
1
Request - adding recycled "lwd" parameter to polygon
Hello dear members of R-help and R-core mailing list, I am not sure if this request is a "ticket" that should be filled somewhere outside the mailing list. If so, I apologize for not doing and would like to know where I should have filled it. And to the subject matter: I would like to use a command like this: plot(c(1,8), 1:2, type="n") polygon(1:7, c(2,1,2,NA,2,1,2),
2008 Apr 28
2
X11 window title setting in X11() Device (PR#11325)
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I think I have found a very little bug in the new version of the X11() device in R 2.7.0, more precisely in the devX11.c file. The problem is that when you open a new window with X11(), the title of the window (the WM_NAME property) is not immediately set. It seems that the window is created, then it
2002 Feb 26
2
covariance of equal date values
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I need to count the covariance of two time series. Both of them contain the dates' vector and vector of values. But the dates are not the same. It means some dates of first ts are not in the second respectively. And I need the covariance of same dates, of course. Could anyone help me, please? Thank you. lukas - -- Lukas Kubin lukas.kubin at
2000 Sep 22
3
eval functions... (PR#668)
Full_Name: Anantha Prasad Version: 1.1.1 OS: Linux Submission from: (NULL) (199.131.134.30) I am trying to convert some S-PLUS code to R (a tcl/tk application that uses R)... here is the error I got in R (but not in S-PLUS)...so I am wondering if it is a bug. Eg., the foll. extract from a function runs fine in S-PLUS but gives the error: Error in x[[j]] : subscript out of bounds in R code
2001 Feb 15
3
who frees dd and xd in X11_Open?
Hi, I'm not sure this is a bug in the code, the comment or my thinking. So first try goes to r-devel... I find the following comment in X11_Open () (src/unix/X11/devX11.c): /* if we have to bail out with "error", then must free(dd) and free(xd) */ A couple lines down, there is: if (!strncmp(dsp, "png::", 5)) { FILE *fp; #ifndef HAVE_PNG error("No png support
2008 Mar 16
2
How to loop through all the columns in dataframe
Hi: Can anyone advice me on how to loop and perform a calculation through all the columns. here's my data xd<- c(2.2024,2.4216,1.4672,1.4817,1.4957,1.4431,1.5676) pd<- c(0.017046,0.018504,0.012157,0.012253,0.012348,0.011997,0.012825) td<- c(160524,163565,143973,111956,89677,95269,81558) mydf<-data.frame(xd,pd,td) trans<-t(mydf) trans I have these values that I need to
2009 Aug 09
1
Why is strptime always returning a vector of length 9 ?
Dear List, I am having an issue with strptime (see below). I can reproduce it on R-2.8, R-2.9, and R-2.10-dev, I tempted to see either a bug or my misunderstanding (and then I just don't currently see where). # setup: x <- c("March 09, 2007", "May 31, 2007", "November 12, 2008", "November 12, 2008", "July 30, 2009", "July 30,
2003 Jun 10
1
Regression output labels
Hello to all- 1. When I run a regression which implements the augmented Dickey-Fuller test, I am confused about the names given to the regressors in the output. I understand what "xGE" stands for in a standard "lm" test involving an independent variable GE for instance, but if I lags and or differences are included in the model, what do the following "output" stand
2016 Apr 07
2
Xen4CentOS 6 64bit - domUs don't shutdown on dom0 after "yum upgrade" to 4.6.1
Hello all, I'm addressing the mailing list following the suggestion of gwd on #centos-virt @freenode IRC. The subject says most of it. Here are the details : - Was running 4.4.x and configured such that /etc/xen/auto domUs would be saved/restored on dom0 shutdown/bootup. - Installation was based on "centos-release-xen" such that "yum upgrade" brough Xen to 4.6.1. After
2007 Jul 18
3
dates() is a great date function in R
Proper calendar dates in R are great for plotting and calculating. However for the non-wonks among us, they can be very frustrating. I have recently discussed the pains that people in my lab have had with dates in R. Especially the frustration of bringing date data into R from Excel, which we have to do a lot. Please find below a simple analgesic for R date importation that I discovered over
2013 Jan 25
3
Help with adding 'dates' string as rownames to matrix
Hi, I need help with two related issues: 1. I wish to drop repeating text "BST" from the below 'dates' string: [1] "2005-04-01 BST" "2005-04-04 BST" "2005-04-05 BST" "2005-04-06 BST" "2005-04-07 BST" "2005-04-08 BST" "2005-04-11 BST" "2005-04-12 BST" "2005-04-13 BST" "2005-04-14
2008 Nov 03
1
sort returns a wrong index (PR#13242)
Full_Name: Bert Tijhuis Version: 2.8.0 OS: MS-Windows Submission from: (NULL) (217.140.7.52) > xd [1] 0.5 -1.0 0.2 NA -3.0 1.0 2.0 NA 2.0 > sort(xd, index=T)$ix [1] 4 2 3 1 5 6 7 And in my believe it should be 5 2 3 1 6 7 8 4 9 This was function well in R 2.7.2 Good luck,