similar to: Assigning "dates" attribute

Displaying 20 results from an estimated 40000 matches similar to: "Assigning "dates" attribute"

2004 Jan 02
3
Importing Excel/Openoffice Dates into R
Hi, I would like to import some daily financial data from excel via csv. More specifically, I would like to be able to use the ts.union function from the tseries library as the dates are irregular and I need to line up the dates so that I can place all the variables into one data frame. The trouble is, how do I import the dates from excel into R? At the moment I'm just importing the data
2007 Dec 14
3
calculating the number of days from dates
Hello, I gather variants of this question have been asked previously. I have done some reading but only became more confused, as I suspect what I am trying to do is more basic than other applications. The following code readily calculates the difference in days between two dates: newdays <- ISOdate(2005, 5,12) - ISOdate(2006, 12, 22) However, I wanted to be able to deduct the dates in
2010 Sep 13
1
what the role platform-pci play in comunication between HVM and domain0
Hi, Can someone interpret how HVM guest communicate with domain0, as i know, H VM can not use event channel directly, is the platform-pci offer a way to solve this? Please try to explain concretely, for example : 1.how does HVM send a event to domain0, how does domain0 catch this event, and assoicate it with a handler 2.the opposite direction, how does domain0 send event to HVM guest? Does it
2005 Oct 04
3
Problem reading in external data and assigning data.frames within R
Hey there, I apologize if this is an irritatingly simple question ... I'm a new user. I can't understand why R flips the sign of all data values when reading in external text files (tab delimited or csv) with the read.delim or read.csv functions. The signs of data values also seem to be flipped after assigning a new data.frame from within R (xnew <-- edit(data.frame()). What am
2010 Oct 29
2
Reading multiple .csv-files and assigning them to variable names
Hi all, I've been trying to find a solution for the problem of reading multiple files and storing them in a variable that contains the names by which I want to call the datasets later on. For example (5 filenames): - The filenames are stored in one variable: filenames = paste(paste('name', '_', 1:5, sep = ''), '.csv', sep = '') - Subsequently I have
2011 May 15
3
Adding dates to time series
Hi there, I have a spreadsheet in excel which consists of first column of dates and then subsequent columns that refer to prices of different securities on those dates. (the first row contains each series name) I saved the excel file as type csv and then imported to excel using prices=read.csv(file="C:/Documents and Settings/Hugh/My Documents/PhD/Option prices.csv",header = TRUE, sep
2005 Jul 28
4
CSV file and date. Dates are read as factors!
I am using read.csv to read a CSV file (produced by saving an Excel file as a CSV file). The columns containing dates are being read as factors. Because of this, I can not compute follow-up time, i.e. Followup<-postDate-preDate. I would appreciate any suggestion that would help me read the dates as dates and thus allow me to calculate follow-up time. Thanks John John Sorkin M.D., Ph.D. Chief,
2010 Apr 16
2
read.table behavior for Dates.
When read.table imports a table that includes a header called 'Date', it tries to recognize the date format. For example, if one imports this data from Yahoo finance, the Date column is automatically transformed to Y-m-d, whereis in the data it appears as m/d/Y: myData <-
2005 Jul 28
1
Dates are read as factors!
I am using read.csv to read a CSV file (produced by saving an Excel file as a CSV file). The columns containing dates are being read as factors. Because of this, I can not compute follow-up time, i.e. Followup<-postDate-preDate. I would appreciate any suggestion that would help me read the dates as dates and thus allow me to calculate follow-up time. Thanks John John Sorkin M.D., Ph.D. Chief,
2009 May 24
2
Assigning variable names from one object to another object
Hello I have 2 datasets say Data1 and Data2 both are of different dimesions. Data1: 120 rows and 6 columns (Varname, Vartype, Labels, Description, ....) The column Varname has 120 rows which has variable names such id, age, gender,.....so on Data2: 12528 rows and 120 columns The column names in this case are V1, V2, ......... V120 (which are default names in R when we say head=F in read.csv)
2010 Jun 01
2
Issue with assigning text to matrix
My issue relates to adding text to a matrix and finding that the text is converted to a number. This is the section of code I'm having trouble with: # First, I load in a list of names from a .csv file to 'names' names <- read.csv(file("Names.csv")) # Then I define a matrix which will be populated with various test statistics, with several rows for each entry in
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
2008 Dec 18
1
Help: Some problem with "gdata" package when using Dates
Dear List: I encountered this strange problem. I want to read dates in a R program. This is a sample data: Dates 12/12/08 14/12/08 18/01/08 28/02/08 16/06/08 19/07/08 28/09/08 If I save these dates in a .csv file, and read it in R using "read.csv", I can perfectly read the data, and the commands "months(Dates)", "days(Dates)" work perfectly fine. On the other hand,
2007 Dec 13
1
parsing dates in input file
I've hunted around to try to work this out and cannot find anything aposite, although there are exhortations to read News files and the fine manual in response to similar queries. Hope I haven't missed anything obvious. I want to read in csv files that contain dates, or date times. If I read them in directly: x <- read.csv ("file") the relevant dataframe column is of type
2017 Aug 11
2
Package sqldf in R and dates manipulation
Dear all, I recently read the book " R data preperation and manipulation using sqldf package" by Djoni Darmawikarta However, I have a problem with manipulation of dates using this package, I do not get the expected results. Do I need to install some packages to be able to subset the data by dates in sqldf? I am not getting Djoni Darmawikarta email address. Please see the practice
2003 Jun 25
1
Help on using read.table with files containing dates
I am a relatively new user of R and have a question about using the read.table command for reading in .csv files that contain dates. My ultimate goal is to be able to read several different files into data frames and then do a merge along the "Date" column of each data frame. It seems I should be able to specify the name of the column that contains dates and then automatically convert
2005 Feb 03
3
Reading Dates in a csv File
Hi all. I'm reading in a flat, comma-delimited flat file using read.csv. It works marvelously for the most part. I am using the colClasses argument to, basically, create numeric, factor and character classes for the columns I'm reading in. However, a couple of the fields in the file are date fields. I'm fully aware that POSIXct can be used as a class, however the field must obey,
2000 Sep 22
1
Newbie question - handling dates as x-axis variable
Hi, all. Please forgive my ignorance as I'm just beginning to investigate R for use in my company as a primary analytical tool ... I have data which I've read into a data frame with the following command: mkt <- read.csv("h:/qdamrtm.csv",header=T) I'd like to investigate the relationship(s) (or lack thereof) between the given variables, and have developed a variety of
2017 Aug 11
0
Package sqldf in R and dates manipulation
See FAQ #4 on the sqldf github home page. On Fri, Aug 11, 2017 at 9:21 AM, Mangalani Peter Makananisa <pmakananisa at sars.gov.za> wrote: > Dear all, > > I recently read the book " R data preperation and manipulation using sqldf package" by Djoni Darmawikarta > However, I have a problem with manipulation of dates using this package, I do not get the expected results.
2005 Nov 10
4
write.table read.table with Dates
I've found several similar issues with write.table/read.table with Dates on this list, but trying to follow this advice I still get an error. First, I read in data from several files, constructing several date/time columns using ISOdatetime > str(Tall$Begin) 'POSIXct', format: chr [1:40114] "2005-10-02 00:00:00" "2005-10-02 00:00:00" ... > length(Tall$Begin)