Re: [R] GEOquery

2016-12-31 Thread David Winsemius

> On Dec 31, 2016, at 11:22 AM, Elham - via R-help  wrote:
> 
> hello all,I am following this link 
> http://genomicsclass.github.io/book/pages/GEOquery.html for importing 
> data.but I have a problem in a step of (Access GSE Data Tables from GEO).in 
> the example of tutorial there are 266 samples,but by this function
> dim(pData(gse[[1]]))head(pData(gse[[1]])[, 1:3])  
>   the result in R is:
> 
>> dim(pData(gse[[1]]))[1] 266  47> head(pData(gse[[1]])[, 1:3])  title 
>> geo_accessionstatusGSM540108   BC1 GSM540108 Public on 
>> May 05 2010GSM540109   BC2 GSM540109 Public on May 05 2010GSM540110   
>> BC3 GSM540110 Public on May 05 2010GSM540111   BC4 GSM540111 Public 
>> on May 05 2010GSM540112   BC5 GSM540112 Public on May 05 2010GSM540113   
>> BC6 GSM540113 Public on May 05 2010
> where is another samples? 
>   [[alternative HTML version deleted]]


This is the first code seen at that page:

source("http://bioconductor.org/biocLite.R;)
biocLite("GEOquery")

You were told earlier that rhelp is NOT the correct place to post questions 
about Bioconductor packages. What is the cause of your difficulty in 
understanding this fact?

-- 

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] Access GSE Data Tables from GEO by GEOquery

2016-12-31 Thread Elham - via R-help
hello all,I am following this link 
http://genomicsclass.github.io/book/pages/GEOquery.html for importing data.but 
I have a problem in a step of (Access GSE Data Tables from GEO).in the example 
of tutorial there are 266 samples,but by this function
    


                                                                
 the result in R is:



where is another samples?





























 
   

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] 3D Elliptic Fourier

2016-12-31 Thread Bert Gunter
... and on rseek.org, my personal R search favorite,  the same search
term brought up a ton of stuff, most of which seemed related to the
"Momocs" package.

-- Bert
Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Sat, Dec 31, 2016 at 11:51 AM, Spencer Graves
 wrote:
> Have you tried findFn{sos}:
>
>
>> library(sos)
>> efa <- findFn('Elliptic Fourier Analysis')
> found 10 matches;  retrieving 1 page
> Downloaded 0 links in 0 packages.
>> mmcs <- ???Morphometrics
> found 71 matches;  retrieving 4 pages
> 2 3 4
> Downloaded 0 links in 0 packages.
>
>
>   I'm not familiar with Elliptic Fourier Analysis, so I don't know what
> other search terms might be helpful for this.
>
>
>   A similar search at "http://rdocumentation.org; produced nothing that
> seemed relevant.
>
>
>   However, the building blocks for what you need are most likely
> available in R.
>
>
>   Hope this helps.
>   Spencer Graves
>
>
> On 2016-12-30 8:40 PM, Liza van Eijk wrote:
>>
>> Dear Yingqi,
>>
>> Have you had any luck finding a way to run an Elliptic Fourier Analysis on
>> 3D coordinates in R?
>>
>> If so, could you let me know which package you used?
>>
>> Thank you.
>>
>> Kind regards,
>>
>> Liza
>>
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] 3D Elliptic Fourier

2016-12-31 Thread Spencer Graves

Have you tried findFn{sos}:


> library(sos)
> efa <- findFn('Elliptic Fourier Analysis')
found 10 matches;  retrieving 1 page
Downloaded 0 links in 0 packages.
> mmcs <- ???Morphometrics
found 71 matches;  retrieving 4 pages
2 3 4
Downloaded 0 links in 0 packages.


  I'm not familiar with Elliptic Fourier Analysis, so I don't know 
what other search terms might be helpful for this.



  A similar search at "http://rdocumentation.org; produced nothing 
that seemed relevant.



  However, the building blocks for what you need are most likely 
available in R.



  Hope this helps.
  Spencer Graves


On 2016-12-30 8:40 PM, Liza van Eijk wrote:

Dear Yingqi,

Have you had any luck finding a way to run an Elliptic Fourier Analysis on 3D 
coordinates in R?

If so, could you let me know which package you used?

Thank you.

Kind regards,

Liza


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] 3D Elliptic Fourier

2016-12-31 Thread Liza van Eijk
Dear Yingqi,

Have you had any luck finding a way to run an Elliptic Fourier Analysis on 3D 
coordinates in R?

If so, could you let me know which package you used?

Thank you.

Kind regards,

Liza


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] GEOquery

2016-12-31 Thread Elham - via R-help
hello all,I am following this link 
http://genomicsclass.github.io/book/pages/GEOquery.html for importing data.but 
I have a problem in a step of (Access GSE Data Tables from GEO).in the example 
of tutorial there are 266 samples,but by this function
dim(pData(gse[[1]]))head(pData(gse[[1]])[, 1:3])                                
                                            the result in R is:

> dim(pData(gse[[1]]))[1] 266  47> head(pData(gse[[1]])[, 1:3])          title 
> geo_accession                statusGSM540108   BC1     GSM540108 Public on 
> May 05 2010GSM540109   BC2     GSM540109 Public on May 05 2010GSM540110   BC3 
>     GSM540110 Public on May 05 2010GSM540111   BC4     GSM540111 Public on 
> May 05 2010GSM540112   BC5     GSM540112 Public on May 05 2010GSM540113   BC6 
>     GSM540113 Public on May 05 2010
where is another samples? 
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Re: [R] Extracting non-matching elements of one vector from another

2016-12-31 Thread Duncan Murdoch

On 31/12/2016 1:36 PM, Dan Abner wrote:

Hi all,

I have 2 vectors and need to extract only the elements from v2 that do not
appear in v1. What is the most efficient way to do this?

In the example below, I need to extract "var1".

v1<-"b0"
v2<-c("b0","var1")


setdiff(v2, v1)

Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Extracting non-matching elements of one vector from another

2016-12-31 Thread Bert Gunter
?setdiff
## It's a wrapper for ?match

setdiff(v2,v1)

You should go through an R tutorial or two to learn about such handy
basic functionality.

-- Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Sat, Dec 31, 2016 at 10:36 AM, Dan Abner  wrote:
> Hi all,
>
> I have 2 vectors and need to extract only the elements from v2 that do not
> appear in v1. What is the most efficient way to do this?
>
> In the example below, I need to extract "var1".
>
> v1<-"b0"
> v2<-c("b0","var1")
>
> Thanks,
>
> Dan
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] Extracting non-matching elements of one vector from another

2016-12-31 Thread Dan Abner
Hi all,

I have 2 vectors and need to extract only the elements from v2 that do not
appear in v1. What is the most efficient way to do this?

In the example below, I need to extract "var1".

v1<-"b0"
v2<-c("b0","var1")

Thanks,

Dan

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] about data format in R

2016-12-31 Thread lily li
Sorry, the problem has been solved. I found that strptime is a good
function for this.
DF$time2 = strptime(DF$time, format='%Y-%m-%d)


On Sat, Dec 31, 2016 at 11:02 AM, lily li  wrote:

> I tried it, but it doesn't work. The time column is blank then.
> DF$time = substring(DF$time, first=as.Date('1999-01-01),
> last=as.Date('2005-12-30'))
>
> On Sat, Dec 31, 2016 at 10:52 AM, David Winsemius 
> wrote:
>
>>
>> > On Dec 31, 2016, at 9:26 AM, lily li  wrote:
>> >
>> > Hi all,
>> >
>> > Thanks for your help. Now I can convert data to the format "-mm-dd
>> > hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt
>> > files, not from excel.
>>
>> Use: as.Date
>> >
>> > On Fri, Dec 30, 2016 at 3:01 PM, Duncan Mackay 
>> wrote:
>> >
>> >> Hi
>> >>
>> >> Is this the output from Excel?
>> >> If so format it in Excel for a date format not a date-time format .
>> >> Depending how the dates were inputted into Excel and the Excel setup a
>> date
>> >> may not be a date format.
>> >> There are no rules with microsoft formatting 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-
>> >> 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: [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' must be supplied
>> >>
>> >>
>> >> On Fri, Dec 30, 2016 at 11:23 AM, Rui Barradas 
>> >> wrote:
>> >>
>> >>> 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 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 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
>>  ...
>> 
>>  My code is like this
>>  file1 = read.table('df', head=T)
>> 
>>  When I read in data, I found that it read incorrectly. How to format
>> >> when
>>  read in data? Thanks.
>> 
>> [[alternative HTML version deleted]]
>> 
>>  __
>>  R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>  https://stat.ethz.ch/mailman/listinfo/r-help
>>  PLEASE do read the posting guide http://www.R-project.org/posti
>>  ng-guide.html
>>  and provide commented, minimal, self-contained, reproducible code.
>> 
>> 
>> >>
>> >>[[alternative HTML version deleted]]
>> >>
>> >> __
>> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> >> 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.
>> >>
>> >> __
>> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> >> 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.
>> >>
>> >
>> >   [[alternative HTML version deleted]]
>> >
>> > __
>> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide http://www.R-project.org/posti
>> ng-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>>
>> David Winsemius
>> Alameda, CA, USA
>>
>>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting 

Re: [R-es] Java para bigdata

2016-12-31 Thread Carlos Ortega
Con Java, Python, Spark hay para un rato...

Pero mira lo que está viniendo:

http://www.kdnuggets.com/2016/12/big-data-main-developments-2016-key-trends-2017.html

https://www.quora.com/How-do-data-analysts-at-companies-like-Facebook-and-Twitter-run-queries-on-extremely-large-data-sets

Saludos,
Carlos.

El 31 de diciembre de 2016, 17:39, Jesús Para Fernández <
j.para.fernan...@hotmail.com> escribió:

> Pues de momento estamos haciendo las cosas con Java pero para l aparte de
> machine learning usaremos python (con Spark).
>
>
> Pero par todo lo demas, en principio, java
>
>
> --
> *De:* Carlos Ortega 
> *Enviado:* sábado, 31 de diciembre de 2016 16:51
>
> *Para:* Jesús Para Fernández
> *Cc:* r-help-es@r-project.org
> *Asunto:* Re: [R-es] Java para bigdata
>
> ¿Qué te han recomendado los profesores de ese curso?..
>
> Gracias,
> Carlos.
>
> El 31 de diciembre de 2016, 16:10, Jesús Para Fernández <
> j.para.fernan...@hotmail.com> escribió:
>
>> Si,
>>
>>
>> Bueno en realidad, estamos en un curso de bigdata y estan haciendo mucha
>> scosas con Java, pero yo intento pasarlo a Python tood, ya uqe me parece un
>> lenguaje mucho mas simple y más parecido a R
>>
>>
>> Y si, lo que quiero principalmente es aplicar machine learning sobre
>> conjuntos de datos enormes.
>>
>>
>> Alguna recomendación?
>>
>>
>>
>>
>>
>> --
>> *De:* Carlos Ortega 
>> *Enviado:* viernes, 30 de diciembre de 2016 11:28
>> *Para:* Jesús Para Fernández
>> *Cc:* r-help-es@r-project.org
>> *Asunto:* Re: [R-es] Java para bigdata
>>
>> Hola,
>>
>> Para "BigData" ahora lo que se lleva es "Spark" que de forma nativa
>> trabaja con "Scala".
>> Aunque soporta Java,  Python, R y como no SQL...
>>
>> De todas formas esto de "BigData" es muy amplio, entiendo que a lo que te
>> refieres es a hacer "Machine Learning" sobre conjuntos muy grandes...¿?.
>>
>> Saludos,
>> Carlos Ortega
>> www.qualityexcellence.es
>> QualityExcellence 
>> www.qualityexcellence.es
>> QUALITY EXCELLENCE, consultores en calidad, procesos y mejora continua
>>
>>
>> El 30 de diciembre de 2016, 11:11, Jesús Para Fernández <
>> j.para.fernan...@hotmail.com> escribió:
>>
>>> Aunque es un poco offtopic, creeis necesario aprender java para temas de
>>> bigdata o con python es suficiente
>>>
>>>
>>> Gracias
>>>
>>> Jesús
>>>
>>> [[alternative HTML version deleted]]
>>>
>>>
>>> ___
>>> R-help-es mailing list
>>> R-help-es@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-help-es
>>>
>>
>>
>>
>> --
>> Saludos,
>> Carlos Ortega
>> www.qualityexcellence.es
>>
>
>
>
> --
> Saludos,
> Carlos Ortega
> www.qualityexcellence.es
>



-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] about data format in R

2016-12-31 Thread lily li
I tried it, but it doesn't work. The time column is blank then.
DF$time = substring(DF$time, first=as.Date('1999-01-01),
last=as.Date('2005-12-30'))

On Sat, Dec 31, 2016 at 10:52 AM, David Winsemius 
wrote:

>
> > On Dec 31, 2016, at 9:26 AM, lily li  wrote:
> >
> > Hi all,
> >
> > Thanks for your help. Now I can convert data to the format "-mm-dd
> > hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt
> > files, not from excel.
>
> Use: as.Date
> >
> > On Fri, Dec 30, 2016 at 3:01 PM, Duncan Mackay 
> wrote:
> >
> >> Hi
> >>
> >> Is this the output from Excel?
> >> If so format it in Excel for a date format not a date-time format .
> >> Depending how the dates were inputted into Excel and the Excel setup a
> date
> >> may not be a date format.
> >> There are no rules with microsoft formatting 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-
> >> 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: [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' must be supplied
> >>
> >>
> >> On Fri, Dec 30, 2016 at 11:23 AM, Rui Barradas 
> >> wrote:
> >>
> >>> 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 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 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
>  ...
> 
>  My code is like this
>  file1 = read.table('df', head=T)
> 
>  When I read in data, I found that it read incorrectly. How to format
> >> when
>  read in data? Thanks.
> 
> [[alternative HTML version deleted]]
> 
>  __
>  R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>  https://stat.ethz.ch/mailman/listinfo/r-help
>  PLEASE do read the posting guide http://www.R-project.org/posti
>  ng-guide.html
>  and provide commented, minimal, self-contained, reproducible code.
> 
> 
> >>
> >>[[alternative HTML version deleted]]
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> 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.
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> 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.
> >>
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > 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.
>
> David Winsemius
> Alameda, CA, USA
>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] about data format in R

2016-12-31 Thread David Winsemius

> On Dec 31, 2016, at 9:26 AM, lily li  wrote:
> 
> Hi all,
> 
> Thanks for your help. Now I can convert data to the format "-mm-dd
> hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt
> files, not from excel.

Use: as.Date
> 
> On Fri, Dec 30, 2016 at 3:01 PM, Duncan Mackay  wrote:
> 
>> Hi
>> 
>> Is this the output from Excel?
>> If so format it in Excel for a date format not a date-time format .
>> Depending how the dates were inputted into Excel and the Excel setup a date
>> may not be a date format.
>> There are no rules with microsoft formatting 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-
>> 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: [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' must be supplied
>> 
>> 
>> On Fri, Dec 30, 2016 at 11:23 AM, Rui Barradas 
>> wrote:
>> 
>>> 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 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 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
 ...
 
 My code is like this
 file1 = read.table('df', head=T)
 
 When I read in data, I found that it read incorrectly. How to format
>> when
 read in data? Thanks.
 
[[alternative HTML version deleted]]
 
 __
 R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posti
 ng-guide.html
 and provide commented, minimal, self-contained, reproducible code.
 
 
>> 
>>[[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] about data format in R

2016-12-31 Thread lily li
Thanks. It seems that substrings only subset the data, not convert the
format. For example, I use the code below:
DF$time = substring(DF$time, '%Y-%m-%d')

where DF$time has the structure:
'2002-01-01 00:00:00', '2002-01-01 12:00:00', '2003-01-01 00:00:00',
'2003-01-01 12:00:00', etc.
I wanted to convert the 'time' column to '2002-01-01', '2002-01-01',
'2003-01-01', '2003-01-01', etc.

Using the code above, it gives the error message:
Error in as.POSIXlt.character(as.character(x), ...) :
  character string is not in a standard unambiguous format

On Sat, Dec 31, 2016 at 10:36 AM, Bert Gunter 
wrote:

> ?substring
>
> (among others)
>
> -- Bert
> Bert Gunter
>
> "The trouble with having an open mind is that people keep coming along
> and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
>
>
> On Sat, Dec 31, 2016 at 9:26 AM, lily li  wrote:
> > Hi all,
> >
> > Thanks for your help. Now I can convert data to the format "-mm-dd
> > hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt
> > files, not from excel.
> >
> > On Fri, Dec 30, 2016 at 3:01 PM, Duncan Mackay 
> wrote:
> >
> >> Hi
> >>
> >> Is this the output from Excel?
> >> If so format it in Excel for a date format not a date-time format .
> >> Depending how the dates were inputted into Excel and the Excel setup a
> date
> >> may not be a date format.
> >> There are no rules with microsoft formatting 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-
> >> 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: [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' must be supplied
> >>
> >>
> >> On Fri, Dec 30, 2016 at 11:23 AM, Rui Barradas 
> >> wrote:
> >>
> >> > 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 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 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
> >> >> ...
> >> >>
> >> >> My code is like this
> >> >> file1 = read.table('df', head=T)
> >> >>
> >> >> When I read in data, I found that it read incorrectly. How to format
> >> when
> >> >> read in data? Thanks.
> >> >>
> >> >> [[alternative HTML version deleted]]
> >> >>
> >> >> __
> >> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> >> PLEASE do read the posting guide http://www.R-project.org/posti
> >> >> ng-guide.html
> >> >> and provide commented, minimal, self-contained, reproducible code.
> >> >>
> >> >>
> >>
> >> [[alternative HTML version deleted]]
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> 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.
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> 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.
> >>
> >
> > [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > 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, 

Re: [R] about data format in R

2016-12-31 Thread Bert Gunter
?substring

(among others)

-- Bert
Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Sat, Dec 31, 2016 at 9:26 AM, lily li  wrote:
> Hi all,
>
> Thanks for your help. Now I can convert data to the format "-mm-dd
> hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt
> files, not from excel.
>
> On Fri, Dec 30, 2016 at 3:01 PM, Duncan Mackay  wrote:
>
>> Hi
>>
>> Is this the output from Excel?
>> If so format it in Excel for a date format not a date-time format .
>> Depending how the dates were inputted into Excel and the Excel setup a date
>> may not be a date format.
>> There are no rules with microsoft formatting 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-
>> 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: [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' must be supplied
>>
>>
>> On Fri, Dec 30, 2016 at 11:23 AM, Rui Barradas 
>> wrote:
>>
>> > 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 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 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
>> >> ...
>> >>
>> >> My code is like this
>> >> file1 = read.table('df', head=T)
>> >>
>> >> When I read in data, I found that it read incorrectly. How to format
>> when
>> >> read in data? Thanks.
>> >>
>> >> [[alternative HTML version deleted]]
>> >>
>> >> __
>> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> >> https://stat.ethz.ch/mailman/listinfo/r-help
>> >> PLEASE do read the posting guide http://www.R-project.org/posti
>> >> ng-guide.html
>> >> and provide commented, minimal, self-contained, reproducible code.
>> >>
>> >>
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>>
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] about data format in R

2016-12-31 Thread lily li
Hi all,

Thanks for your help. Now I can convert data to the format "-mm-dd
hh:mm:ss", but how to convert it to "-mm-dd"? The datasets are txt
files, not from excel.

On Fri, Dec 30, 2016 at 3:01 PM, Duncan Mackay  wrote:

> Hi
>
> Is this the output from Excel?
> If so format it in Excel for a date format not a date-time format .
> Depending how the dates were inputted into Excel and the Excel setup a date
> may not be a date format.
> There are no rules with microsoft formatting 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-
> 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: [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' must be supplied
>
>
> On Fri, Dec 30, 2016 at 11:23 AM, Rui Barradas 
> wrote:
>
> > 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 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 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
> >> ...
> >>
> >> My code is like this
> >> file1 = read.table('df', head=T)
> >>
> >> When I read in data, I found that it read incorrectly. How to format
> when
> >> read in data? Thanks.
> >>
> >> [[alternative HTML version deleted]]
> >>
> >> __
> >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide http://www.R-project.org/posti
> >> ng-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >>
> >>
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R-es] Java para bigdata

2016-12-31 Thread Carlos Ortega
¿Qué te han recomendado los profesores de ese curso?..

Gracias,
Carlos.

El 31 de diciembre de 2016, 16:10, Jesús Para Fernández <
j.para.fernan...@hotmail.com> escribió:

> Si,
>
>
> Bueno en realidad, estamos en un curso de bigdata y estan haciendo mucha
> scosas con Java, pero yo intento pasarlo a Python tood, ya uqe me parece un
> lenguaje mucho mas simple y más parecido a R
>
>
> Y si, lo que quiero principalmente es aplicar machine learning sobre
> conjuntos de datos enormes.
>
>
> Alguna recomendación?
>
>
>
>
>
> --
> *De:* Carlos Ortega 
> *Enviado:* viernes, 30 de diciembre de 2016 11:28
> *Para:* Jesús Para Fernández
> *Cc:* r-help-es@r-project.org
> *Asunto:* Re: [R-es] Java para bigdata
>
> Hola,
>
> Para "BigData" ahora lo que se lleva es "Spark" que de forma nativa
> trabaja con "Scala".
> Aunque soporta Java,  Python, R y como no SQL...
>
> De todas formas esto de "BigData" es muy amplio, entiendo que a lo que te
> refieres es a hacer "Machine Learning" sobre conjuntos muy grandes...¿?.
>
> Saludos,
> Carlos Ortega
> www.qualityexcellence.es
> QualityExcellence 
> www.qualityexcellence.es
> QUALITY EXCELLENCE, consultores en calidad, procesos y mejora continua
>
>
> El 30 de diciembre de 2016, 11:11, Jesús Para Fernández <
> j.para.fernan...@hotmail.com> escribió:
>
>> Aunque es un poco offtopic, creeis necesario aprender java para temas de
>> bigdata o con python es suficiente
>>
>>
>> Gracias
>>
>> Jesús
>>
>> [[alternative HTML version deleted]]
>>
>>
>> ___
>> R-help-es mailing list
>> R-help-es@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-help-es
>>
>
>
>
> --
> Saludos,
> Carlos Ortega
> www.qualityexcellence.es
>



-- 
Saludos,
Carlos Ortega
www.qualityexcellence.es

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es