similar to: date and chron library help...!

Displaying 20 results from an estimated 500 matches similar to: "date and chron library help...!"

2001 Oct 18
1
Fw: eval and as.symbol question
----- Original Message ----- From: "Kaspar Pflugshaupt" <pflugshaupt at geobot.umnw.ethz.ch> To: "Gary Collins" <gco at eortc.be> Cc: "r-help" <r-help at stat.math.ethz.ch> Sent: Thursday, October 18, 2001 2:19 PM Subject: Re: [R] eval and as.symbol question > On 18.10.2001 13:46 Uhr, Gary Collins wrote: > > > But when I merge these
2001 Apr 04
0
factors and characters when attaching data...
Can someone help me with the following problem... I have a dataframe with 62 columns a number of these are as.character and a number of these are as.double, I read these into R-1.2.0 as... > Version3.Studies_read.table("c:\\Version3.Studies.dat",sep="\t", as.is=TRUE, header=TRUE,strip.white=TRUE) This is fine up to here, I've checked to see if the data has been
2001 May 04
0
R and Xemacs
Can anyone help with the following...? I've just downloaded and installed Xemacs (version 21.1.9) for windows and I would like to try and use it for R, so I've also downloaded ESS 5.1.18. I've read the instructions on installation etc... with regards to ESS and followed the steps for using Xemacs on windows 95. i.e. I've included the path to the Rgui executable in my autoexec.bat
2001 Oct 31
2
removing duplicated rows from a data.frame
Dear all, Sorry for the simplicity of the question, but how does one go about removing duplicated rows in a data.frame? I'm looking for a quick and simple solution, as my data.frames are relatively large (50000 by 50). I've racked my brain and searched the help files and found nothing useful or quick, only duplicated() and unique() which work only work on lists. Thanks Gary.
2002 Jan 22
4
splitting a data.frame
I have the following (simple!?) problem which I am unable to find a relatively trivial solution to. If I have a dataframe, A 1 A 7 B 4 B 5 C 3 D 3 D 2 E 5 F 5 F 6 I would like to create a new data.frame in the form ID pt1 pt2 A 1 7 B 4 5 C 3 NA D 3 2 E 5 NA F 5 6 so that for each identifier, in this
2003 Feb 27
0
spatial evolution and variance after rotation of Principal components
Dear R users, I have been doing rotation on Principal components analyse, with varimax function and promax. Following those changes, I cannot find now how to get the spatial evolution and the variance. Indeed, with the function princomp that has been used to get the principal components, arguments such as $scores and $sdev were available to get the spatial evolution and the variance, with
2003 Mar 12
0
temporal evolution and variance after rotation of eof
Dear R users, I have been doing some eof analysis using princomp function, then the eof results were rotated with varimax and promax functions. Those functions are working fine. However, after their uses, I cannot find how to obtain the temporal evolution and the variance of the obtain components, as varimax and promax does not have the arguments $scores and $sdev. If any body, know how to
2010 Feb 23
1
Problem with strptime generating missing values where none appear to exist
Dear R Helpers, I am having difficulty with strptime. I wish to find the differences between two vectors of times. I have apparently no difficulty to convert the vectors to the appropriate format using strptime. But, then difftime does not calculate all the differences. Here is the code and output:- dob=strptime(as.character(datx$BDT),'%d-%b-%y'); dob$year=dob$year-100
2006 Jan 25
0
Another crack at age calculations
I cobbled this together based on a few previous posts and some tinkering, nothing fancy (my first bit of Ruby infact) but it seams to work for my purposes. My questions is actually why can I call <%= h(child.age(child.dob)) %> in a view but not <%= h(child.age_year_month(child.dob)) %>? Both work fine in the console. Thanks for any insight, Hugh child.rb class Child < Person
2011 Nov 07
2
Problem working with dates
Hello All, I've been reading books about R for awhile now and am in the process of replicating the SAS analyses from an old report. I want to be sure that I can do all the things I need to in R before using it in my daily work. So far, I've managed to read in all my data and have done some data manipulation. I'm having trouble with fixing an error in a date variable though, and was
2010 Feb 23
0
subtracting 100 from strptime year vector generates missing values in POSIXct where none appear to exist in strptime year vector
Thanks Don MacQueen for this reply to my initial query - please SEE MY REPLIES TO THESE IDEAS AND FURTHER INFORMATION BELOW >From: Don MacQueen [macq at llnl.gov] >Sent: 23 February 2010 21:25 >To: Jonathan Williams; r-help at r-project.org > >Subject: Re: [R] Problem with strptime generating missing values where none appear to exist > >What happens if you do all that NA
2006 Jun 13
0
date_select and date validation
Hi, I''ve put together a simple form that contains among other things a date_select: <%= date_select(:user, :dob, :order => [:day, :month, :year], :start_year => 1900, :end_year => Date.today.year) %> In my controller I have some code to create a user entity from the parameters posted up from the form, like so: parameters:
2012 Jan 11
2
Checking dates for entry errors
Hello Everyone, ? I have a question about how best to check dates for?entry errors. I recently discovered that R will read?the incorrectly entered date "11/23/21931" without producing a warning or an?error message at least under some circumstances. ? > as.Date("11/23/21931", format = "%m/%d/%Y") [1] "2193-11-23" > as.Date("21931-11-23")
2012 Jul 11
3
unable to subtract dates in R
Hi, I wanted to calculate the age of people in my dataset by subtracting the individual's date of birth from their intake into a program. After several hours, searches of help archives, and the downloading of lubiridate, I have had no luck with this. Below is the code I used. > intakeDS$DOB <- as.character(intakeDS$DOB) > intakeDS$DOB <- as.Date(intakeDS$DOB,
2012 Nov 06
1
pivot table
Hello, I have a data which looks like below: Some of the patients have multiple diagnosis. ID(200 patients)   Diag (100 unique Diag-200 in general)   Proc (50 uniqe Proc)  DOB (200)   Gender (200)    a                           daig1 b                           diag2 c                            diag1 I want to reformat this data to : ID   diag1 diag 2 diag 3..  diagx   proc1   proc2  
2010 Aug 16
1
How can I read date format '02-Jan-02' ?
Hello, I am trying to read a database exported from SAS. It is form of csv, and the date format reads '02-Feb-99'. I used following code to convert character to date format, db$dob<-as.Date(db$dob, format="%d-%b-%y"). but it doesn't work, only seems NA. What's wrong with this code? Thank you in advance. Best, Dong-Hee Koh [[alternative HTML version deleted]]
2007 Oct 18
0
validates_format_of date
Can someone tell me why this returns ''dob is invalid'' when dob is ''01/01/1969''? validates_format_of :dob, :with => /[0-9]{2}.[0-9]{2}.[0-9] {4}/, :message => ''is invalid'' I''m trying to validate a date entred into a form. I suppose there are different ways to accomplish this, and because it doesn''t work, I''m
2004 Apr 18
0
AGI Module
Hey all, I'm sorry to bother you with something so trivial, but I seem to be having an issue with the Asterisk::AGI module. I am a relative newbie with Perl so it could be a stupid syntax mistake that I missed. It seems when I try to execute either the stream_file or the get_data subs nothing is actually done. It doesn't seem to stream the files, but on the console it says it played the
2009 Apr 16
0
Printing data as a narrative or form letter rather than as a table
How would one print the information in a table without having to view it as a table? I have a dataframe with about 30 columns and 50 rows. About 7 rows contain human subjects where something is just not right and I need to manually work out what is going on with them and maybe even call them to ensure we have the data correct. It is really inconvenient to view the 7 patients in a table. Instead, I
2005 Oct 31
0
Problem using reshape with missing values in idvar
Hello everybody, I have been recently using reshape to convert "long" data to "wide" data. Everything was going well until I reached some problematic datasets. It has taken me a couple of weeks to finally figure out what might be happening. The problem is reproducible with test cases, and on two versions of R (Windows 2.2.0 and x86-64 Fedora Core 3 R 2.2.0). The data