Re: [R] Subset()

2017-01-21 Thread Jim Lemon
Hi Elise, One of the quirks of POSIXt time values is that they are lists. This should give you the plot: plot(Soil_Temp~as.numeric(DateTime),eldf,xaxt="n",xlab="DateTime") and this the x axis: axis.POSIXct(1,eldf$DateTime) If you want a different format for the date values on the axis, look at

Re: [R-es] Error en loop anidado con data.table

2017-01-21 Thread rod99hare
Muchas gracias Patricio es una muy buena idea, práctica y rápida de implementar. Saludos, Rodrigo. Sent from my Samsung Galaxy smartphone. Original message From: patricio fuenmayor Date: 20/01/2017 19:14 (GMT-03:00) To: rod99h...@gmail.com Cc:

Re: [R] Subset()

2017-01-21 Thread Jim Lemon
Hi Elise, If I create a CSV file like your example and read it into a data frame: eldf<-read.csv("el.csv") Then convert the first field to POSIXt dates: eldf$DateTime<-strptime(eldf$DateTime,"%Y-%m-%d %H:%M:%S") class(eldf$DateTime) [1] "POSIXlt" "POSIXt" I can subset the file like this:

Re: [R] order list of date (bug?)

2017-01-21 Thread William Dunlap via R-help
It does look like "2016-03-27 02:35:00 CET" is a non-existent time since the time sprang from 02:00-epsilon to 0:300 on that date. The POSIXlt entry for it is a missing value (per is.na()) and order() puts missing values at the end, hence your problem. It seems like a bug that POSIXlt entries

Re: [R] Coverting HTML data into CSV

2017-01-21 Thread Rui Barradas
Hello, You could give us an example of what html you are trying to read. Follow this example: install.packages("XML") library(XML) url <- "http://www.databaseolympics.com/sport/sportevent.htm?enum=110=ATH; dat <- readHTMLTable(readLines(url), which=2, header=TRUE, stringsAsFactors = FALSE)

Re: [R] Subset()

2017-01-21 Thread Jim Lemon
Hi Elise,. I would ask: class(data$DateTime) and see if it returns: "POSIXct" "POSIXt" Jim On Sat, Jan 21, 2017 at 3:02 AM, Elise LIKILIKI wrote: > Hello, > > I have a dataset containing Date Time, Air Temperature, PPFD, Sol > Temperature... > The first data are

Re: [R] Zip Files

2017-01-21 Thread Jim Lemon
Hi Glenn, I would try the "rename" option which should allow you to give the output another name. Jim On Sat, Jan 21, 2017 at 2:09 AM, Glenn Schultz wrote: > All, > I have a zip that was downloaded with HTTR. I had to use HTTR because I > need to login and post to the

[R] Authentication and Web Site Scraping

2017-01-21 Thread G . Maubach
Hi All, I would like to learn how to scrape a web site which is password protected. I do my training with my Delicious web site. I will obey all rules and legislation existent. The delicious export api was shut down. I assume that the web site will be shut down in the foreseeable future. In