Displaying 11 results from an estimated 11 matches for "philipsmith".
2008 Jul 23
3
how can I write code to detect whether the machine is Windows or Linux?
...ux
machine?
If I knew this, I could write my code in a way so that I didn't have to
adjust path names to data file all the time.
I checked the archives... didn't find anything, but perhaps didn't know
the right search terms...
Thanks for your help, R-community! Please respond to:
philipsmith at alumni.albany.edu
Best regards,
Phil Smith
Duluth, GA
2008 Sep 26
1
howto convert matrix of numeric values to Date class?
...ve a matrix, named "mat," of numeric values that are in days since
Jan 1, 1960.
I want to convert them Date class values so that I can do things like
seq( value , len=10, by="1 week")
where "value" is any of the matrix elements.
How do I do this?
Please reply to: philipsmith at alumni.albany.edu
Thanks!
Phil Smith
Duluth, GA
2007 Sep 06
1
computing distance in miles or km between 2 street addresses
...dresses in either km
or miles. I do not care if the distance is a "shortest driving route" or
if it is "as the crow flies."
Does anybody know how to do this? Can it be done in R? I have thousands
of addresses, so I think that Mapquest is out of the question!
Please rely to: philipsmith at alumni.albany.edu
Thank you!
Phil Smith
2007 Sep 07
0
computing distance in miles or km between 2 street
...her attributes attached to it and calculate distances because it "knows" coordinates, a network of roads and so on.
I am not sure this helps but at least maybe gives you some ideas where to look next.
Monica
Message: 53Date: Thu, 06 Sep 2007 14:42:32 -0400From: Philip James Smith <philipsmith@alumni.albany.edu>Subject: [R] computing distance in miles or km between 2 streetaddressesTo: r-help@stat.math.ethz.chMessage-ID: <46E04A18.7040909@alumni.albany.edu>Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi R-ers: I need to compute the distance between 2 street addres...
2009 Nov 02
3
question about difference in date objects
Hi R Community:
I want to take the difference in two dates:
dt2 - dt1.
But, I want the answer in months between those 2 dates.
Can you advise me?
Please respond to: pzs6 at cdc.gov
Thank you!
Phil Smith
Centers for Disease Control and Prevention
2018 Jan 28
0
Plotting quarterly time series
On Sun, 28 Jan 2018, phil at philipsmith.ca wrote:
> I have a data set with quarterly time series for several variables. The
> time index is recorded in column 1 of the dataframe as a character
> vector "Q1 1961", "Q2 1961","Q3 1961", "Q4 1961", "Q1 1962", etc. I want
> to...
2018 Jan 28
2
Plotting quarterly time series
I have a data set with quarterly time series for several variables. The
time index is recorded in column 1 of the dataframe as a character vector
"Q1 1961", "Q2 1961","Q3 1961", "Q4 1961", "Q1 1962", etc. I want to
produce line plots with ggplot2, but it seems I need to convert the time
index from character to date class. Is that right? If so, how
2018 Jan 28
1
Plotting quarterly time series
...a function used
to transform the index column and format is also passed to FUN.
z <- read.zoo(d, index = "time", FUN = as.yearqtr, format = "Q%q %Y")
On Sun, Jan 28, 2018 at 4:53 PM, Achim Zeileis <Achim.Zeileis at uibk.ac.at> wrote:
> On Sun, 28 Jan 2018, phil at philipsmith.ca wrote:
>
>> I have a data set with quarterly time series for several variables. The
>> time index is recorded in column 1 of the dataframe as a character vector
>> "Q1 1961", "Q2 1961","Q3 1961", "Q4 1961", "Q1 1962", etc. I...
2008 Jul 02
1
how do I read only specific columns using read.csv or other read function
Hi R people:
I have huge files with as many as 5000 columns. I'd really like to read
only certain columns of those files. I know column names I want to read.
I looked at the documentation of read.csv . Although there is a
col.names option, it allows users to specify the names of the columns,
rather than to pick the columns of interest.
Any suggestions on how to pick the columns I want to
2008 Jul 03
2
How do I paste double quotes arround a character string?
Hi R Community:
I've got a character string that looks like: New Mexico
How to I create the new character string that looks like: "New Mexico"
That is, it is the original string (New Mexico) with double quotes
infront and behind it?
Thanks,
Phil Smith
2009 Jan 23
2
R startup and shutdown question
Hi R-Community:
Here is what I want to do:
Every time I start R I want R to:
1. remove(list=ls()), and
2. "source" another file automatically.
Then, when I shutdown R, I want R to:
1. remove(list=ls())
How do I do this?
I recall vaguely that S could do this, but I don't remember exactly how
it worked.
Thanks for your help!
Phil Smith