t;> >> Department of Agronomy and Soil Science
>> >> University of New England
>> >> Armidale NSW 2351
>> >> Email: home: mac...@northnet.com.au
>> >>
>> >> -Original Message-
>> >> From: R-help [mailto:r-help-boun...@r-
> >> University of New England
> >> Armidale NSW 2351
> >> Email: home: mac...@northnet.com.au
> >>
> >> -Original Message-
> >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of lily li
> >> Sent: Saturd
;> Email: home: mac...@northnet.com.au
>>
>> -Original Message-
>> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of lily li
>> Sent: Saturday, 31 December 2016 05:38
>> To: Rui Barradas
>> Cc: R mailing list
>> Subject: Re:
ards
> >>
> >> Duncan
> >>
> >> Duncan Mackay
> >> Department of Agronomy and Soil Science
> >> University of New England
> >> Armidale NSW 2351
> >> Email: home: mac...@northnet.com.au
> >>
> >> -Ori
ng so beware!
>>
>>
>> Regards
>>
>> Duncan
>>
>> Duncan Mackay
>> Department of Agronomy and Soil Science
>> University of New England
>> Armidale NSW 2351
>> Email: home: mac...@northnet.com.au
>>
>> -Original Message-
>&
;
> Duncan Mackay
> Department of Agronomy and Soil Science
> University of New England
> Armidale NSW 2351
> Email: home: mac...@northnet.com.au
>
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of lily li
> Sent: Saturday, 31 December 2
: Re: [R] about data format in R
Hi Rui,
Thanks for your reply. When I read in data using my code, the first column
ranges from 0 to 1. So when I use the code you wrote, it shows the error
message:
Error in as.POSIXct.numeric(DF$Date, format = "%m/%d/%Y-%H:%M:%S") :
'origin' m
Hello,
What I did was:
DF <- read.table(text = "
dateevap precipintercept
10/01/1995-00:00:00 1.5 20.2
10/01/1995-12:00:00 1.7 2.2 0.1
10/02/1995-00:00:00 1.5 1.8 0.3
", header = TRUE, stringsAsF
Probably you need to use
file1 <- read.table('df', header=TRUE, stringsAsFactors=FALSE)
str(file1)
generally shows you all sorts of useful things about the file you have
just imported into R.
Sarah
On Fri, Dec 30, 2016 at 1:37 PM, lily li wrote:
> Hi Rui,
>
> Thanks for your reply. When I rea
Hi Rui,
Thanks for your reply. When I read in data using my code, the first column
ranges from 0 to 1. So when I use the code you wrote, it shows the error
message:
Error in as.POSIXct.numeric(DF$Date, format = "%m/%d/%Y-%H:%M:%S") :
'origin' must be supplied
On Fri, Dec 30, 2016 at 11:23 AM, Ru
Hello,
Have you tried
df$date <- as.POSIXct(dat$date, format = "%m/%d/%Y-%H:%M:%S")
?
Hope this helps,
Rui Barradas
Em 30-12-2016 17:40, lily li escreveu:
Hi R users,
I'm trying to read in data, and then plot time series data. However, I have
some problems. In my dataset, the first column
Hi R users,
I'm trying to read in data, and then plot time series data. However, I have
some problems. In my dataset, the first column represents time, and in the
format:
mm/dd/-hr:min:sec; For example, 10/01/1995-00:00:00,
10/01/1995-06:00:00, etc.
df:
dateevap
12 matches
Mail list logo