I can't tell since you didn't post any code, so forgive me if you've
tried this. XLConnect has a colTypes parameter so you could try
specifying the relevant columns to be read in as character, set
forceConversion = TRUE, and then use as.numeric. Something like this:
as.numeric(sub(",", ".", I
I'm failing to get a for loop working. I'm sure it's something simple, and I
have found some posts relating to it, but I'm just not understanding why
this isn't working.
I have a data frame and would like to loop through specific column names,
using aggregate() within a for loop. There are NA's
data:
> tmp1
Date HrMn Temp Q.4
1 19450101 0900 -37.0 1
2 19450101 1000 -35.9 2
3 19450101 1100 -35.9 3
4 19450101 1200 -36.4 4
5 19450101 1300 -36.4 5
6 19450101 1400 -36.4 6
7 19450101 1500 -36.4 7
8 19450101 1600 -37.5 9
Accidentally, I did this (I meant to write Q.4 in
I have a number of space separated files of weather data, with some
equivalent column names, and differing number of fields in each file. Some
of the files have 40 or more vars, but I only want a subset of the fields.
I can use colClasses with read.table to drop some of the fields, but only if
I
Thanks, that clears that up.
Is this behavior documented in the help? I've looked, but didn't see
anything which noted a conversion to GMT. Perhaps I just don't understand
the different time methods, which is entirely possible since I'm a relative
beginner.
Peter
--
View this message in co
It looks like a timezone issue, and it's causing confusion to me at least.
My original data:
gmt <-
c("19880101 ", "19880101 0100", "19880101 0300", "19880101 0400",
"19880101 0500", "19880101 0600")
These were converted to local dates/times with
akst<-strptime(gmt,format="%Y%m%d %H%M")-(3600
tp://bm2.genes.nig.ac.jp/RGM2/index.php?clear=all
It bills itself as the "R Graphical Manual, A collection of R graphics from
all R packages." It's searchable and filterable by image, function,
package, task view, etc. Pretty fabulous if you ask me. At the moment,
it's only update
7 matches
Mail list logo