Re: [R] why is as.date function not working for me? (dd/mm/yyyy h:mm)

2014-02-06 Thread Luke Miller
as.Date produces Dates only, with no time information, even if you try to supply it with hours + minutes. For dates+times, use as.POSIXct() or as.POSIXlt() in place of as.Date(). POSIXct produces a numeric value for the number of seconds since your specified origin time (usually 1970-01-01

Re: [R] KnitR/RMarkdown: Is there a way to not print a section of the document?

2014-01-27 Thread Luke Miller
, minimal, self-contained, reproducible code. -- ___ Luke Miller __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] eclipse cran r

2012-06-12 Thread Luke Miller
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Hopkins

Re: [R] How to add grid lines at specific position to a plot?

2012-03-15 Thread Luke Miller
. -- ___ Luke Miller Postdoctoral Researcher Hopkins Marine Station, Stanford University 120 Ocean View Blvd Pacific Grove, CA 93950 831-655-6208 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] how to unzip files in R

2012-01-31 Thread Luke Miller
Try the bzfile() function instead of unz(). You'll find that you're taken to the same help page for both of those functions. ?bzfile On Tue, Jan 31, 2012 at 2:34 PM, ql16717 ql16...@gmail.com wrote: Hi, I have downloaded a bunch of bz2 files. I wonder if R will be able to unzip them in a

Re: [R] Incorrect DateTime using ISOdatetime in R

2012-01-20 Thread Luke Miller
666.1751 sure seems like it should return 2010-10-29 04:12:09 based on your example. 666.1751 days from 2009-01-01 is 2010-10-29 + some hours/min/seconds. 0.1751 days * 24 hrs/day = 4.2024 (i.e. 4:00AM + some minutes). 0.2024 hours * 60 min/hr = 12.144 (i.e. 12 minutes + some seconds). 0.144

Re: [R] Incorrect DateTime using ISOdatetime in R

2012-01-20 Thread Luke Miller
, 2012 at 11:24 AM, Julia Sommerfeld julia.so...@gmx.de wrote: Hi Luke, Thank you for the answer. On 20/01/2012, at 6:11 , Luke Miller wrote: 666.1751 sure seems like it should return 2010-10-29 04:12:09 based on your example. 666.1751 days from 2009-01-01 is 2010-10-29 + some hours/min

Re: [R] using StatEt IDE for Eclipse

2011-12-06 Thread Luke Miller
and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 __ R-help@r-project.org mailing list https

Re: [R] R endnote entry

2011-11-30 Thread Luke Miller
. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Specifying Greek Character in Lattice Plot Label

2011-10-21 Thread Luke Miller
/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318

Re: [R] Read wav file into R

2011-10-15 Thread Luke Miller
Try the tuneR package. It will read in wav files and has other functions for manipulating sound data. On Oct 15, 2011 9:32 PM, Noah Silverman noahsilver...@ucla.edu wrote: Hi, I'm interested in doing some sound analysis with R. Does anyone have any experience/methods for reading in a wav

Re: [R] How to adjust the y-axis range in barplot properly

2011-09-22 Thread Luke Miller
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 __ R-help@r

Re: [R] Help writing basic loop

2011-09-16 Thread Luke Miller
and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 [[alternative HTML version deleted

Re: [R] help subsetting data based on date AND time

2011-09-08 Thread Luke Miller
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 [[alternative HTML version deleted

Re: [R] Help with creating date as POSIXct

2011-09-01 Thread Luke Miller
]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke

Re: [R] strange date problem - May 3, 1992 is NA

2011-06-22 Thread Luke Miller
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern

Re: [R] Quick R syntax question

2011-06-20 Thread Luke Miller
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine

Re: [R] Quick R syntax question

2011-06-20 Thread Luke Miller
...@comcast.net wrote: On Jun 20, 2011, at 11:47 AM, Luke Miller wrote: If we assume that your data are in a data frame (which doesn't allow spaces in column names, hence the periods in the call below): df = data.frame(Major.Gleason = c(4,5,2,3), Minor.Gleason = c(3,2,4,3)) You can paste together

Re: [R] print to .jpeg

2011-04-12 Thread Luke Miller
-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 [[alternative HTML version deleted]] __ R-help@r-project.org mailing

Re: [R] print to .jpeg

2011-04-12 Thread Luke Miller
And of course I need to close the parentheses completely on jpeg(). Apologies for the double post. jpeg(paste(species.name, '.jpg', sep = '')) On Tue, Apr 12, 2011 at 10:02 PM, Luke Miller mille...@gmail.com wrote: How about using paste() inside the jpeg() function to append a '.jpg

Re: [R] Make R 'Beep'

2011-03-08 Thread Luke Miller
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern University Nahant, MA (781) 581-7370 x318 [[alternative HTML version deleted

Re: [R] Does POSIXlt extract date components properly?

2011-03-01 Thread Luke Miller
://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher Marine Science Center Northeastern

Re: [R] plot(x,y xlab=NULL,ylab=NULL) but labels still visible.

2010-11-21 Thread Luke Miller
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- ___ Luke Miller Postdoctoral Researcher