[R] Hadoop R integration

2015-05-26 Thread Lalitha Kristipati

Hi,

I need to showcase how R and Hadoop can work together using ORCH. I have found 
a sample code from the ORACLE website as follows
dfs - hdfs.attach(ontime_DB)

res - hadoop.run(
dfs,
mapper = function(key, value) {
  if (key == 'SFO'  !is.na(x$ARRDELAY)) {
keyval(key, value)
  }
  else {
NULL
  }
},
 reducer = function(key, values) {
for (x in values) {
sumAD - sumAD + x$ARRDELAY
count - count + 1
  }
  res - sumAD / count
  keyval(key, res)
})

OUTPUT:

 hdfs.get(res)
   key val1
1  SFO   17.44828

I could not understand in this code where is ORCH acting as a connector. Even 
if you can explain how ORCH acts as a connector to Hadoop with another example 
it would also be helpful.


Regards,
Lalitha Kristipati
Associate Software Engineer




Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.



[[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] Suggest method

2015-04-21 Thread Lalitha Kristipati
Hi,

I want to do a use case in R language. My problem statement is to upgrade the 
passengers from one membership level to another membership level in airlines 
based on their characteristics. It is like customer profiling based on their 
usage characteristics. Suggest a method that intakes a large amount of data and 
cluster them based on their characteristics and helps in knowing the passengers 
who are upgraded to another level .
Any help is appreciated.

Regards,
Lalitha Kristipati
Associate Software Engineer




Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.



[[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] Database connection query

2015-02-09 Thread Lalitha Kristipati
Hi,

I would like to know when to use drivers and when to use packages to connect to 
databases in R

Regards,
Lalitha Kristipati
Associate Software Engineer




Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.



[[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] New to R

2015-02-02 Thread Lalitha Kristipati
Hi,



In our data we have 10 people with 10 different attributes , we want to rank 
the people based on the weightage of these attributes.

Suggest the best statistical method to do this.

Does Revolution R solves my problem??



Regards,
Lalitha Kristipati
Associate Software Engineer




Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.



[[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] New to R

2015-01-21 Thread Lalitha Kristipati
Thanks 

Regards,

Lalitha K.

Associate Software Engineer

917411291011


From: Jeff Newmiller jdnew...@dcn.davis.ca.us
Sent: 21 January 2015 21:34
To: Lalitha Kristipati; R-help@r-project.org
Subject: Re: [R] New to R

This is not really a question about R... it is a question about databases 
because similar divisions occur in every imperative programming language that 
deals with databases. ODBC is a software layer that aims to create a uniform 
API for the programmer among different variations of SQL databases (though it 
doesn't entirely succeed). RODBC gives R access to that API. You have to use 
OS-specific utilities outside of R to link ODBC Data Source Names to specific 
ODBC-to-DB drivers.

The alternatives are usually much more specific to the DB back end, with 
potential ability to take advantage of DB- specific features, and disadvantages 
of being more closely tied to that particular software.

There is a mailing list (R-sig-db) where you should ask more specific questions 
about how R deals with these non-R- specific APIs, but each of the R packages 
maps to much more extensive documentation about those APIs that you will need 
to be familiar with in order to make progress with them.
---
Jeff NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
---
Sent from my phone. Please excuse my brevity.

On January 20, 2015 9:51:44 PM PST, Lalitha Kristipati 
lalitha.kristip...@techmahindra.com wrote:
Hi,

I am trying to connect R to databases.

I found two ways to connect.

1.By using specific package (eg RMySQL to connect to R)

2.By using connectors and RODBC package.

can any one tell me the difference between those two methods.



Regards,

Lalitha K.

Associate Software Engineer

917411291011



Disclaimer:  This message and the information contained herein is
proprietary and confidential and subject to the Tech Mahindra policy
statement, you may review the policy at
http://www.techmahindra.com/Disclaimer.html externally
http://tim.techmahindra.com/tim/disclaimer.html internally within
TechMahindra.



   [[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.




Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.


__
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] New to R

2015-01-20 Thread Lalitha Kristipati
Hi,

I am trying to connect R to databases.

I found two ways to connect.

1.By using specific package (eg RMySQL to connect to R)

2.By using connectors and RODBC package.

can any one tell me the difference between those two methods.



Regards,

Lalitha K.

Associate Software Engineer

917411291011



Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.



[[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] New to R

2014-12-15 Thread Lalitha Kristipati
Hi

I'm learning R language from  past  one month .As R is used highly for data 
analysis ,mining and modeling ,I want to know few real time examples in R in 
order to make my learning  fun filled and practical .Any quick suggestions  are 
appreciated .



Regards,
Lalitha Kristipati
Associate Software Engineer





Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at http://www.techmahindra.com/Disclaimer.html externally 
http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.



[[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.