Thank you Bert. Both rpy and ypy2 are to use R in python. I have never seen a package (that works) to call python script in R.
Best, Alemu On Thu, Aug 18, 2016 at 1:09 PM, Bert Gunter <bgunter.4...@gmail.com> wrote: > 1. Have you checked out package Rpy/Rpy2? > > 2. I don't know Python, but as you seem to be trying to get data from > the web, see the Rcurl package, maybe, to do these things in R. > > 3. Hopefully someone who does know Python can give you better answers. > > Cheers, > 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 Thu, Aug 18, 2016 at 11:29 AM, Alemu Tadesse <alemu.tade...@gmail.com> > wrote: > > Dear All, > > > > I am wondering if someone knows an R equivalent of the following API call > > in python. > > > > "-----" > > > > import time > > import pandas as pd > > start_time = time.clock() > > timer =time.clock() > > import pkg_resources > > pkg_resources.require("pysimplesoap==1.05a") > > from pysimplesoap.client import SoapClient > > > > > > import os > > import numpy as np > > > > client = SoapClient(wsdl=" > > https://solardata.com/service.asmx?wsdl") > > result = client.GetCsvWeatherData8( > > userName='a...@solardata.com',password='passw@word1 > > ',licenseNumber='X1952c9wv', > > latitude=lati, longitude=loni, > > startDate='2013-02-10T00:00:00', > > endDate='2014-11-28T00:00:00', > > dataVersionId=8, > > spatialResolutionId='High1km', > > timeResolution='Minute', > > missingDataHandling='Blank', > > WindTemp=1, > > timeshift = 'No') > > > > weather ={} > > weather['csvWeather']= > > result['GetCsvWeatherData8Result']['csvWeather'] > > > > Thanks, > > > > Alemu > > > > > > On Fri, Oct 2, 2015 at 12:31 PM, Linus Holtermann <holterm...@hwwi.org> > > wrote: > > > >> Hi, > >> > >> You have panel data or cross-sectional data? In the case you use > >> cross-sectional data and "countries" are your observations (no repeated > >> measure of them) and you regress the country-dummies on your residuals > of > >> the forgone regression, then there are as many regressors as > observations. > >> Consequently, is it not possible to estimate such a model since there > are > >> no degrees of freedom left. > >> > >> Mit freundlichen Grüßen > >> > >> > >> Linus Holtermann > >> Hamburgisches WeltWirtschaftsInstitut gemeinnützige GmbH (HWWI) > >> Heimhuder Straße 71 > >> 20148 Hamburg > >> Tel +49-(0)40-340576-336 > >> Fax+49-(0)40-340576-776 > >> Internet: www.hwwi.org > >> Email: holterm...@hwwi.org > >> > >> Amtsgericht Hamburg HRB 94303 > >> Geschäftsführer: Prof. Dr. Henning Vöpel > >> Prokura: Dipl. Kauffrau Alexis Malchin > >> Umsatzsteuer-ID: DE 241849425 > >> > >> > >> -----Ursprüngliche Nachricht----- > >> Von: R-help [mailto:r-help-boun...@r-project.org] Im Auftrag von > Johanna > >> von Bahr > >> Gesendet: Donnerstag, 1. Oktober 2015 21:15 > >> An: r-help@r-project.org > >> Betreff: [R] Regressing the residuals on the country dummies > >> > >> I’m trying to estimate a model regressing the residuals on the country > >> dummies as follows; model.resC <- lm(model2$res ~ as.factor(Country)) > >> summary(model.resC) > >> > >> As I call the model I get the following results regarding the residuals: > >> > >> "ALL 90 residuals are 0: no residual degrees of freedom!" > >> > >> What has gone wrong? > >> ______________________________________________ > >> 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. > [[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.