Re: [R] Sorting data.frame datewise in a descending order and geting datewise subtotl

2014-07-03 Thread veepsirtt
Hi A.K

-
library(XML)
URL -  
http://money.securebank.in/index.php?option=com_dashboardview=historyItemid=56startdate=01/01/2013enddate=6/9/2014exchange=MCXsid=1;

doc - htmlParse(URL)
tableNodes - getNodeSet(doc, //table)
dat1 - readHTMLTable(tableNodes[[4]], colClasses=c(numeric,character,
character, numeric, character, numeric, numeric, character,
numeric),stringsAsFactors=FALSE)
dat1$DATE - as.Date(dat1$DATE, %d-%m-%Y)
str(dat1)
--


I got this error,while running the above code under RStudio.,
how to correct it?.

 dat1 - readHTMLTable(tableNodes[[4]],
colClasses=c(numeric,character, character, numeric, character,
numeric, numeric, character,  ... ... [TRUNCATED]
Error in readHTMLTable(tableNodes[[4]], colClasses = c(numeric,
character,  :
  error in evaluating the argument 'doc' in selecting a method for function
'readHTMLTable': Error in tableNodes[[4]] : subscript out of bounds


On Thu, Jul 3, 2014 at 12:42 AM, arun kirshna [via R] 
ml-node+s789695n4693407...@n4.nabble.com wrote:


 Hi veepsirtt,


 If `dat` is the dataset

 library(dplyr)
  dat %%

 group_by(DATE) %%

 summarize(PROFIT=sum(PROFIT)) %%
  arrange(desc(as.Date(DATE,format=%d/%m/%Y)))
 Source: local data frame [4 x 2]

 DATE PROFIT
 1 02/07/2014  -1350
 2 01/07/2014   9400
 3 30/06/2014  11325
 4 27/06/2014   6850


 If you just wanted to have a new variable subTotalPROFIT and not summarize
 the dataset


  dat %%

  group_by(DATE) %%

  mutate(subTotalPROFIT=sum(PROFIT)) %%

 arrange(desc(as.Date(DATE,format=%d/%m/%Y)))

 A.K.



 On Wednesday, July 2, 2014 4:03 AM, Velappan Periasamy [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4693407i=0 wrote:



 Hi A.K,
 How to Sort the  given data.frame date wise in a descending order
  and getting date wise subtotal

 SLNO.DATESCRIPPROFIT
 6006302/07/2014Aluminium   -1000
 6005702/07/2014Copper  900
 6005602/07/2014LEAD   -1250
 6002901/07/2014Crude Oil6400
 6003401/07/2014LEAD1500
 6002501/07/2014Nickel1500
 5998030/06/2014Nickel  475
 5998430/06/2014Natural Gas3000
 5997230/06/2014Crude Oil2600
 5997130/06/2014Copper3750
 5997030/06/2014Natural Gas1500
 5992427/06/2014Aluminium500
 5992227/06/2014LEAD2250
 5992027/06/2014Copper1100
 5991827/06/2014Natural Gas3000

 Thanks
 veepsirtt

 __
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4693407i=1
 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.


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://r.789695.n4.nabble.com/Sorting-data-frame-datewise-in-a-descending-order-and-geting-datewise-subtotl-tp4693384p4693407.html
  To unsubscribe from Sorting data.frame datewise in a descending order and
 geting datewise subtotl, click here
 http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4693384code=dmVlcHNpcnR0QGdtYWlsLmNvbXw0NjkzMzg0fDY5NzkzMTE3Nw==
 .
 NAML
 http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-data-frame-datewise-in-a-descending-order-and-geting-datewise-subtotl-tp4693384p4693421.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]

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


Re: [R] Sorting data.frame datewise in a descending order and geting datewise subtotl

2014-07-03 Thread veepsirtt
Warning in install.packages :
  package ‘dplyr’ is not available (for R version 2.15.3)

 Is there any alternate way to sorting data.frame datewise in a

descending order?.(not using dplyr)




On Thu, Jul 3, 2014 at 12:48 PM, Velappan Periasamy veepsi...@gmail.com
wrote:

 Hi A.K
 I modified and got the results
 thanks A.K

 library(XML)
 URL -  
 http://money.securebank.in/index.php?option=com_dashboardview=historyItemid=56startdate=01/01/2014enddate=02/07/2014exchange=MCXsid=1
 

 doc - htmlParse(URL)
 tableNodes - getNodeSet(doc, //table)
 l=length(tableNodes)
 dat1 - readHTMLTable(tableNodes[[l]], colClasses=c(numeric,character,
 character, numeric, character, numeric, numeric, character,
 numeric),stringsAsFactors=FALSE)

 dat1$DATE - as.Date(dat1$DATE, %d-%m-%Y)
 str(dat1)


 On Thu, Jul 3, 2014 at 10:14 AM, Velappan Periasamy veepsi...@gmail.com
 wrote:

 Hi A.K

 -
 library(XML)
 URL -  
 http://money.securebank.in/index.php?option=com_dashboardview=historyItemid=56startdate=01/01/2013enddate=6/9/2014exchange=MCXsid=1;

 doc - htmlParse(URL)
 tableNodes - getNodeSet(doc, //table)
 dat1 - readHTMLTable(tableNodes[[4]],
 colClasses=c(numeric,character, character, numeric, character,
 numeric, numeric, character, numeric),stringsAsFactors=FALSE)
 dat1$DATE - as.Date(dat1$DATE, %d-%m-%Y)
 str(dat1)
 --


 I got this error,while running the above code under RStudio.,
 how to correct it?.

  dat1 - readHTMLTable(tableNodes[[4]],
 colClasses=c(numeric,character, character, numeric, character,
 numeric, numeric, character,  ... ... [TRUNCATED]
 Error in readHTMLTable(tableNodes[[4]], colClasses = c(numeric,
 character,  :
   error in evaluating the argument 'doc' in selecting a method for
 function 'readHTMLTable': Error in tableNodes[[4]] : subscript out of
 bounds


 On Thu, Jul 3, 2014 at 12:42 AM, arun kirshna [via R] 
 ml-node+s789695n4693407...@n4.nabble.com wrote:


 Hi veepsirtt,


 If `dat` is the dataset

 library(dplyr)
  dat %%

 group_by(DATE) %%

 summarize(PROFIT=sum(PROFIT)) %%
  arrange(desc(as.Date(DATE,format=%d/%m/%Y)))
 Source: local data frame [4 x 2]

 DATE PROFIT
 1 02/07/2014  -1350
 2 01/07/2014   9400
 3 30/06/2014  11325
 4 27/06/2014   6850


 If you just wanted to have a new variable subTotalPROFIT and not
 summarize the dataset


  dat %%

  group_by(DATE) %%

  mutate(subTotalPROFIT=sum(PROFIT)) %%

 arrange(desc(as.Date(DATE,format=%d/%m/%Y)))

 A.K.



 On Wednesday, July 2, 2014 4:03 AM, Velappan Periasamy [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4693407i=0 wrote:



 Hi A.K,
 How to Sort the  given data.frame date wise in a descending order
  and getting date wise subtotal

 SLNO.DATESCRIPPROFIT
 6006302/07/2014Aluminium   -1000
 6005702/07/2014Copper  900
 6005602/07/2014LEAD   -1250
 6002901/07/2014Crude Oil6400
 6003401/07/2014LEAD1500
 6002501/07/2014Nickel1500
 5998030/06/2014Nickel  475
 5998430/06/2014Natural Gas3000
 5997230/06/2014Crude Oil2600
 5997130/06/2014Copper3750
 5997030/06/2014Natural Gas1500
 5992427/06/2014Aluminium500
 5992227/06/2014LEAD2250
 5992027/06/2014Copper1100
 5991827/06/2014Natural Gas3000

 Thanks
 veepsirtt

 __
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4693407i=1
 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.


 --
  If you reply to this email, your message will be added to the
 discussion below:

 http://r.789695.n4.nabble.com/Sorting-data-frame-datewise-in-a-descending-order-and-geting-datewise-subtotl-tp4693384p4693407.html
  To unsubscribe from Sorting data.frame datewise in a descending order
 and geting datewise subtotl, click here
 http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4693384code=dmVlcHNpcnR0QGdtYWlsLmNvbXw0NjkzMzg0fDY5NzkzMTE3Nw==
 .
 NAML
 http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml








--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-data-frame-datewise-in-a-descending-order-and-geting-datewise-subtotl-tp4693384p4693434.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]

__
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

Re: [R] Sorting data.frame datewise in a descending order and geting datewise subtotl

2014-07-03 Thread veepsirtt
Hi A.K
I modified and got the results
thanks A.K

library(XML)
URL -  
http://money.securebank.in/index.php?option=com_dashboardview=historyItemid=56startdate=01/01/2014enddate=02/07/2014exchange=MCXsid=1

doc - htmlParse(URL)
tableNodes - getNodeSet(doc, //table)
l=length(tableNodes)
dat1 - readHTMLTable(tableNodes[[l]], colClasses=c(numeric,character,
character, numeric, character, numeric, numeric, character,
numeric),stringsAsFactors=FALSE)
dat1$DATE - as.Date(dat1$DATE, %d-%m-%Y)
str(dat1)


On Thu, Jul 3, 2014 at 10:14 AM, Velappan Periasamy veepsi...@gmail.com
wrote:

 Hi A.K

 -
 library(XML)
 URL -  
 http://money.securebank.in/index.php?option=com_dashboardview=historyItemid=56startdate=01/01/2013enddate=6/9/2014exchange=MCXsid=1;

 doc - htmlParse(URL)
 tableNodes - getNodeSet(doc, //table)
 dat1 - readHTMLTable(tableNodes[[4]], colClasses=c(numeric,character,
 character, numeric, character, numeric, numeric, character,
 numeric),stringsAsFactors=FALSE)
 dat1$DATE - as.Date(dat1$DATE, %d-%m-%Y)
 str(dat1)
 --


 I got this error,while running the above code under RStudio.,
 how to correct it?.

  dat1 - readHTMLTable(tableNodes[[4]],
 colClasses=c(numeric,character, character, numeric, character,
 numeric, numeric, character,  ... ... [TRUNCATED]
 Error in readHTMLTable(tableNodes[[4]], colClasses = c(numeric,
 character,  :
   error in evaluating the argument 'doc' in selecting a method for
 function 'readHTMLTable': Error in tableNodes[[4]] : subscript out of
 bounds


 On Thu, Jul 3, 2014 at 12:42 AM, arun kirshna [via R] 
 ml-node+s789695n4693407...@n4.nabble.com wrote:


 Hi veepsirtt,


 If `dat` is the dataset

 library(dplyr)
  dat %%

 group_by(DATE) %%

 summarize(PROFIT=sum(PROFIT)) %%
  arrange(desc(as.Date(DATE,format=%d/%m/%Y)))
 Source: local data frame [4 x 2]

 DATE PROFIT
 1 02/07/2014  -1350
 2 01/07/2014   9400
 3 30/06/2014  11325
 4 27/06/2014   6850


 If you just wanted to have a new variable subTotalPROFIT and not
 summarize the dataset


  dat %%

  group_by(DATE) %%

  mutate(subTotalPROFIT=sum(PROFIT)) %%

 arrange(desc(as.Date(DATE,format=%d/%m/%Y)))

 A.K.



 On Wednesday, July 2, 2014 4:03 AM, Velappan Periasamy [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4693407i=0 wrote:



 Hi A.K,
 How to Sort the  given data.frame date wise in a descending order
  and getting date wise subtotal

 SLNO.DATESCRIPPROFIT
 6006302/07/2014Aluminium   -1000
 6005702/07/2014Copper  900
 6005602/07/2014LEAD   -1250
 6002901/07/2014Crude Oil6400
 6003401/07/2014LEAD1500
 6002501/07/2014Nickel1500
 5998030/06/2014Nickel  475
 5998430/06/2014Natural Gas3000
 5997230/06/2014Crude Oil2600
 5997130/06/2014Copper3750
 5997030/06/2014Natural Gas1500
 5992427/06/2014Aluminium500
 5992227/06/2014LEAD2250
 5992027/06/2014Copper1100
 5991827/06/2014Natural Gas3000

 Thanks
 veepsirtt

 __
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4693407i=1
 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.


 --
  If you reply to this email, your message will be added to the
 discussion below:

 http://r.789695.n4.nabble.com/Sorting-data-frame-datewise-in-a-descending-order-and-geting-datewise-subtotl-tp4693384p4693407.html
  To unsubscribe from Sorting data.frame datewise in a descending order
 and geting datewise subtotl, click here
 http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4693384code=dmVlcHNpcnR0QGdtYWlsLmNvbXw0NjkzMzg0fDY5NzkzMTE3Nw==
 .
 NAML
 http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml







--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-data-frame-datewise-in-a-descending-order-and-geting-datewise-subtotl-tp4693384p4693431.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]

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


Re: [R] plot and save as png

2013-03-21 Thread veepsirtt
Hi A.K

This is working
layout(matrix(c(1,2,3,4), 4, 1, byrow = TRUE))
plot(sin, -pi, 10*pi)
 plot(sin, -pi, 20*pi)
 plot(sin, -pi, 30*pi)
plot(sin, -pi, 40*pi)
dev.off()
but if I add this line
png(filename = fname.png, width = 900, height = 600, units = 'px')
 no plot is generated.
where is the problem?.

thanks
veepsirtt



 png(filename = fname.png, width = 900, height = 600, units = 'px')
 layout(matrix(c(1,2,3,4), 4, 1, byrow = TRUE))
 plot(sin, -pi, 10*pi)
  plot(sin, -pi, 20*pi)
  plot(sin, -pi, 30*pi)
 plot(sin, -pi, 40*pi)
 dev.off()
null device
  1
 sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: i386-pc-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.15.1



On Mon, Mar 18, 2013 at 6:36 PM, arun kirshna [via R] 
ml-node+s789695n4661660...@n4.nabble.com wrote:

 Hi,

 Couldn't reproduce your problem.
 Using your code, I am getting the image below:
 A.K.


 --
  If you reply to this email, your message will be added to the discussion
 below:
 http://r.789695.n4.nabble.com/plot-and-save-as-png-tp4661435p4661660.html
  To unsubscribe from plot and save as png, click 
 herehttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4661435code=dmVlcHNpcnR0QGdtYWlsLmNvbXw0NjYxNDM1fDY5NzkzMTE3Nw==
 .
 NAMLhttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://r.789695.n4.nabble.com/plot-and-save-as-png-tp4661435p4662114.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]

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


Re: [R] postForm() in RCurl and library RHTMLForms

2012-11-24 Thread veepsirtt
Why I am getting this error?
Error in getHTMLFormDescription(docNifty)[[1]] : subscript out of bounds 




--
View this message in context: 
http://r.789695.n4.nabble.com/postForm-in-RCurl-and-library-RHTMLForms-tp3026742p4650636.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] Download a file from url

2012-11-17 Thread veepsirtt
Hi R,
I installed wget and tried to download the file from this 
http://nseindia.com/content/equities/scripvol/datafiles/16-11-2012-TO-16-11-2012ACCEQN.csv
but it fails.
How to get it using wget?
thanks
veepsirtt


#Define Working Directory, where files would be saved
setwd('G:/NIFTY')

#Define start and end dates, and convert them into date format
startDate = as.Date(2011-01-05, order=ymd)
endDate = as.Date(2011-02-01, order=ymd)

f - tempfile() 

downloadfilename=paste(ACC, EQN, sep = )
temp =

#Generate URL
http://nseindia.com/content/equities/scripvol/datafiles/16-11-2012-TO-16-11-2012ACCEQN.csv

myURL = 
paste(http://nseindia.com/content/equities/scripvol/datafiles/;,
as.character(startDate, %d-%m-%Y), -TO-, as.character(endDate,
%d-%m-%Y), downloadfilename, .csv, sep = )


  download.file(myURL, f, method='wget', extra=-U 'Mozilla/5.0 (X11; Linux)
Gecko Firefox/5.0') 

temp - read.csv(f, sep = ,) 
head(temp)









--
View this message in context: 
http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4649907.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] if url.exists() or not

2012-11-08 Thread veepsirtt
Hi,

#
# check for if file exist or not
#
niftyquotes - function(ndays){
library(RCurl)
endDate =Sys.Date()
startDate = as.Date(endDate-ndays, order=ymd)

start1-format(startDate,%d-%m-%Y) 
end1-format(endDate ,%d-%m-%Y)

a=paste(http://nseindia.com/content/indices/histdata/SP%20CNX%20NIFTY,start1,-,end1,.csv,sep=;)

if (url.exists(a)){

return(print(paste(start1,file exist)))
} 
 else {
return(print(paste(start1,Not exist )))
}

}

# find for last 30 days
N=30
for (i in 1:N){
niftyquotes(i)
}

1] 07-11-2012 file exist
[1] 06-11-2012 file exist
[1] 05-11-2012 file exist
[1] 04-11-2012 file exist
[1] 03-11-2012 Not exist 
[1] 02-11-2012 file exist
[1] 01-11-2012 file exist
[1] 31-10-2012 file exist
[1] 30-10-2012 file exist
[1] 29-10-2012 file exist
[1] 28-10-2012 file exist
[1] 27-10-2012 Not exist 
[1] 26-10-2012 file exist
[1] 25-10-2012 Not exist 
[1] 24-10-2012 file exist
[1] 23-10-2012 Not exist 
[1] 22-10-2012 Not exist 
[1] 21-10-2012 Not exist 
[1] 20-10-2012 Not exist 
[1] 19-10-2012 Not exist 
[1] 18-10-2012 Not exist 
[1] 17-10-2012 Not exist 
[1] 16-10-2012 Not exist 
[1] 15-10-2012 Not exist 
[1] 14-10-2012 Not exist 
[1] 13-10-2012 Not exist 
[1] 12-10-2012 Not exist 
[1] 11-10-2012 Not exist 
[1] 10-10-2012 file exist
[1] 09-10-2012 Not exist 
 
 


[1] 04-11-2012 file exist is sunday how it shows file exist?
please help me
with regards
veepsirtt





--
View this message in context: 
http://r.789695.n4.nabble.com/if-url-exists-or-not-tp4648840.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] if url.exists() or not

2012-11-08 Thread veepsirtt
Hi Rusers,
the file is available for download but it returns not exists.
How to download the files?
thanks
veepsirtt

 #
 # check for if file exist or not
 #
 niftyquotes - function(ndays){
+ library(RCurl)
+ endDate =Sys.Date()
+ startDate = as.Date(endDate-ndays, order=ymd)
+ 
+ start1-format(startDate,%d-%m-%Y)
+ end1-format(endDate ,%d-%m-%Y)
+ 
+
a=paste(http://nseindia.com/content/indices/histdata/SP%20CNX%20NIFTY,start1,-,end1,.csv,sep=;)
+ 
+ if (url.exists(a)){
+
+# return(print(paste(start1,file exist)))
+ }
+  else {
+ return(print(paste(start1,Not exist )))
+ }
+ 
+ }
 
 # find for last 30 days
 N=30
 for (i in 1:N){
+ niftyquotes(i)
+ }
[1] 03-11-2012 Not exist 
[1] 30-10-2012 Not exist 
[1] 28-10-2012 Not exist 
[1] 27-10-2012 Not exist 
[1] 26-10-2012 Not exist 
[1] 22-10-2012 Not exist 
[1] 20-10-2012 Not exist 
[1] 19-10-2012 Not exist 
[1] 18-10-2012 Not exist 
[1] 17-10-2012 Not exist 
[1] 15-10-2012 Not exist 
[1] 14-10-2012 Not exist 
[1] 13-10-2012 Not exist 
[1] 12-10-2012 Not exist 
[1] 11-10-2012 Not exist 
 
 




--
View this message in context: 
http://r.789695.n4.nabble.com/if-url-exists-or-not-tp4648840p4649006.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] library(RCurl) quamtmod yahoo data source

2012-11-06 Thread veepsirtt
Hi
I try to download the last 10 days quotes for NIFTY index data from yahoo
source,
but it gives me errors.

load.packages('quantmod')
endDate =Sys.Date()
startDate = as.Date(endDate-100, order=ymd)
nsei=getSymbols(^NSEI, src = 'yahoo', from = startDate,end=endDate)
 last(nsei,10)
===
I used  Rcurl to get prices for WIPRO

library(RCurl)
fii =
getForm(http://nseindia.com/live_market/dynaContent/live_watch/get_quote/getHistoricalData.jsp;,
symbol=WIPRO,
fromDate=29-Oct-2012,
toDate=06-Nov-2012,
datePeriod=unselected,
hiddDwnld=true,
.opts = list(followlocation = TRUE,ssl.verifypeer = FALSE , verbose
= TRUE))
tbl-read.csv(textConnection(fii),skip=2,header=TRUE)
tbl
But it also fails.
please guide me
thanks
veepsirtt




--
View this message in context: 
http://r.789695.n4.nabble.com/library-RCurl-quamtmod-yahoo-data-source-tp4648587.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] Date format conversion from 2012-09-20 to 2012:09:20

2012-11-03 Thread veepsirtt
Hi,
thanks A.K
try this not working

#*
# Load historical data
#**
library('quantmod')
endDate =Sys.Date()
startDate = as.Date(endDate-10, order=ymd)

dataspy = getSymbols(SPY, from = startDate, to=endDate, auto.assign =
FALSE) 

myStDt- startDate
while (myStDt = endDate){
startEndDate-paste(startDate,myStDt,sep=::)
print(dataspy)
dataspy=Cl(dataspy[startEndDate])
#display the subseted data 
print(dataspy)
myStDt=myStDt+1 
}




--
View this message in context: 
http://r.789695.n4.nabble.com/Date-format-conversion-from-2012-09-20-to-2012-09-20-tp4643710p4648327.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] Date format conversion from 2012-09-20 to 2012:09:20

2012-11-02 Thread veepsirtt
Hi R,
How to get the range of values form startDate to lastDate as given below?.

#*
# Load historical data
#** 
library('quantmod')
endDate =Sys.Date()
startDate = as.Date(endDate-30, order=ymd)

dataspy = getSymbols(SPY, from = startDate, to=endDate, auto.assign =
FALSE)
lastDate=startDate+5

#subset first 5 days
dataspy['startDate::lastDate']
print(dataspy)

Thanks
veepsirtt




--
View this message in context: 
http://r.789695.n4.nabble.com/Date-format-conversion-from-2012-09-20-to-2012-09-20-tp4643710p4648258.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] Remote access to R/Bioconductor on EBI's 64-bit Linux Cluster

2012-10-27 Thread veepsirtt
Hi Rusers

Here is a place for testing R on Cloud.

http://www.ebi.ac.uk/Tools/rcloud/ http://www.ebi.ac.uk/Tools/rcloud/  
 Start the workbench by downloading the package for your operating system
(Macintosh or Windows), or via Java Web Start, and you will get access to an
instance of R running on one of EBI's powerful machines. You can install
additional packages, upload your own data, work with graphics and
collaborate with colleagues, all as if you are running R locally, but
unlimited by your machine's memory, processor or data storage capacity.

Most up-to-date R version built for multicore CPUs
Access to all Bioconductor packages
Access to our computing infrastructure
Fast access to data stored in EBI's repositories (e.g., public
microarray data in ArrayExpress)
Thanks
veepsirtt





--
View this message in context: 
http://r.789695.n4.nabble.com/Remote-access-to-R-Bioconductor-on-EBI-s-64-bit-Linux-Cluster-tp4647645.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] Passing the parameters for web form using getHTMLFormDescription

2012-10-17 Thread veepsirtt
Hi R
I want to get the data from the url given from 10/09/2012 to 15/10/2012.
I don't know how to pass the parameters .

...
library(RHTMLForms)
 
 ff =
 getHTMLFormDescription(http://www.bseindia.com/markets/equity/EQReports/slbshortcell.aspx?expandable=3param=0;)
 ff
$aspnetForm
HTML Form:
http://www.bseindia.com/markets/equity/EQReports/slbshortcell.aspx?expandable=3param=0
 
ctl00$ContentPlaceHolder1$GetQuote1$txtscrip_code: [ Scrip code/Scrip Name ]  
ctl00$ContentPlaceHolder1$txtDate: [  ]  
ctl00$ContentPlaceHolder1$txtTodate: [  ]  
myDestination: #,
http://www.bseindia.com/static/markets/mutualfunds/BSEStarMF.aspx?expandable=1,
http://www.bsebti.com/, http://www.bsesme.com/, http://www.cdslindia.com/,
http://www.bseindia.com/iccl/about_iccl.aspx, http://www.mkttech.in/,
http://www.bseindia.com/about/members_portal.asp, Group Websites, BSE STAR
MF, BSE Institute Ltd, BSE SME Platform, CDSL, ICCL, Marketplace
Technologies, Members Portal
myDestination1: #, http://hindi.bseindia.com/, http://marathi.bseindia.com/,
http://gujarati.bseindia.com/, Select Language, Hindi, Marathi, Gujarati
txtscrip: [ Scrip Name / Code ]  
.
g = createFunction(ff[[1]])

here after how to call the function like this and getting the table out of
it. 
xx = g(10/09/2012 , 15/10/2012)
 expecting your reply.
thanks
veepsirtt





--
View this message in context: 
http://r.789695.n4.nabble.com/Passing-the-parameters-for-web-form-using-getHTMLFormDescription-tp4646436.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] postForm() in RCurl and library RHTMLForms

2012-10-17 Thread veepsirtt
Hi R Users,
I want to get the data from the url given from 10/09/2012 to 15/10/2012.
I don't know how to pass the parameters .

...

library(RHTMLForms)

 ff = getHTMLFormDescription(
http://www.bseindia.com/markets/equity/EQReports/slbshortcell.aspx?expandable=3¶m=0http://www.bseindia.com/markets/equity/EQReports/slbshortcell.aspx?expandable=3param=0)

 ff
$aspnetForm
HTML Form:
http://www.bseindia.com/markets/equity/EQReports/slbshortcell.aspx?expandable=3¶m=0http://www.bseindia.com/markets/equity/EQReports/slbshortcell.aspx?expandable=3param=0

ctl00$ContentPlaceHolder1$GetQuote1$txtscrip_code: [ Scrip code/Scrip Name
]
ctl00$ContentPlaceHolder1$txtDate: [  ]
ctl00$ContentPlaceHolder1$txtTodate: [  ]
myDestination: #,
http://www.bseindia.com/static/markets/mutualfunds/BSEStarMF.aspx?expandable=1,
http://www.bsebti.com/, http://www.bsesme.com/, http://www.cdslindia.com/,
http://www.bseindia.com/iccl/about_iccl.aspx, http://www.mkttech.in/,
http://www.bseindia.com/about/members_portal.asp, Group Websites, BSE STAR
MF, BSE Institute Ltd, BSE SME Platform, CDSL, ICCL, Marketplace
Technologies, Members Portal
myDestination1: #, http://hindi.bseindia.com/, http://marathi.bseindia.com/,
http://gujarati.bseindia.com/, Select Language, Hindi, Marathi, Gujarati
txtscrip: [ Scrip Name / Code ]
.

g = createFunction(ff[[1]])

here after how to call the function like this and getting the table out of
it.
xx = g(10/09/2012 , 15/10/2012)
 expecting your reply.
thanks
veepsirtt

On Tue, Sep 25, 2012 at 12:10 PM, veepsi...@gmail.com wrote:

 Hi Duncan

 How to pass the parameters to this web form?.
 year=2012 ,month=August
 I am not getting the table values.

 thanking you
 veepsirtt
 options(RCurlOptions = list(useragent = R))
 library(RCurl)
 url - http://www.bseindia.com/histdata/categorywise_turnover.asp;
 wp = getURLContent(url)

 library(RHTMLForms)
 library(XML)
 doc = htmlParse(wp, asText = TRUE)
 form = getHTMLFormDescription(doc)[[1]]
 fun = createFunction(form)
  o = fun(mmm = 9, yyy = 2012,url=
 http://www.bseindia.com/histdata/categorywise_turnover.asp;)

 table = readHTMLTable(htmlParse(o, asText = TRUE),
 header = TRUE,
 stringsAsFactors = FALSE)
 table




 On 11/4/10 2:39 AM, sayan dasgupta wrote:
  Hi RUsers,
 
  Suppose I want to see the data on the website
  url - http://www.nseindia.com/content/indices/ind_histvalues.htm;
 
  for the index SP CNX NIFTY for
  dates FromDate=01-11-2010,ToDate=02-11-2010
 
  then read the html table from the page using readHTMLtable()
 
  I am using this code
  webpage - postForm(url,.params=list(
 FromDate=01-11-2010,
 ToDate=02-11-2010,
 IndexType=SP CNX NIFTY,
 Indicesdata=Get Details),
   .opts=list(useragent = getOption(HTTPUserAgent)))
 
  But it doesn't give me desired result

 You need to be more specific about how it fails to give the desired result.

 You are in fact posting to the wrong URL. The form is submitted to a
 different
 URL -
 http://www.nseindia.com/marketinfo/indices/histdata/historicalindices.jsp



 
  Also I was trying to use the function getHTMLFormDescription from the
  package RHTMLForms but there we can't use the argument
  .opts=list(useragent = getOption(HTTPUserAgent)) which is needed for
  this
  particular website

 That's not the case. The function RHTMLForms will generate for you does
 support
 the .opts parameter.

 What you want is something along the lines:


  # Set default options for RCurl
  # requests
 options(RCurlOptions = list(useragent = R))
 library(RCurl)

  # Read the HTML page since we cannot use htmlParse() directly
  # as it does not specify the user agent or an
  # Accept:*.*

 url - http://www.nseindia.com/content/indices/ind_histvalues.htm;
 wp = getURLContent(url)

  # Now that we have the page, parse it and use the RHTMLForms
  # package to create an R function that will act as an interface
  # to the form.
 library(RHTMLForms)
 library(XML)
 doc = htmlParse(wp, asText = TRUE)
   # need to set the URL for this document since we read it from
   # text, rather than from the URL directly

 docName(doc) = url

   # Create the form description and generate the R
   # function call the

 form = getHTMLFormDescription(doc)[[1]]
 fun = createFunction(form)


   # now we can invoke the form from R. We only need 2
   # inputs  - FromDate and ToDate

 o = fun(FromDate = 01-11-2010, ToDate = 04-11-2010)

   # Having looked at the tables, I think we want the the 3rd
   # one.
 table = readHTMLTable(htmlParse(o, asText = TRUE),
 which = 3,
 header

Re: [R] Download a file from url

2012-10-16 Thread veepsirtt
Hello Prof Brian Ripley
I installed wget for windows from  http://users.ugent.be/~bpuype/wget/
http://users.ugent.be/~bpuype/wget/   and got the results
very thanks
veepsirtt
--
 library(XLConnect)
 
 url = http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls;
 local.xls.file = tempfile()
 download.file(url, local.xls.file, method='wget', extra=-U 'Mozilla/5.0
 (X11; Linux) Gecko Firefox/5.0')
--2012-10-16 14:44:36--  http://(x11;/
Resolving (x11;... failed: Unknown host.
wget: unable to resolve host address `(x11;'
--2012-10-16 14:44:36--  http://linux)/
Resolving linux)... failed: Unknown host.
wget: unable to resolve host address `linux)'
--2012-10-16 14:44:36--  http://gecko/
Resolving gecko... failed: Unknown host.
wget: unable to resolve host address `gecko'
--2012-10-16 14:44:36--  http://firefox/5.0'
Resolving firefox... failed: Unknown host.
wget: unable to resolve host address `firefox'
--2012-10-16 14:44:37-- 
http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls
Resolving www.nseindia.com... 124.124.252.97, 124.124.252.107
Connecting to www.nseindia.com|124.124.252.97|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24576 (24K) [application/vnd.ms-excel]
Saving to: `C:/Users/Acer/AppData/Local/Temp/Rtmpqa0fd0/file1828c40257e'

 0K .. .. 100%
5.26K=4.6s

2012-10-16 14:44:44 (5.26 KB/s) -
`C:/Users/Acer/AppData/Local/Temp/Rtmpqa0fd0/file1828c40257e' saved
[24576/24576]

FINISHED --2012-10-16 14:44:44--
Downloaded: 1 files, 24K in 4.6s (5.26 KB/s)
 wb = loadWorkbook(local.xls.file, create=F)
 data = readWorksheet(wb, sheet=1) 
 na.omit(data)
  FII.DERIVATIVES.STATISTICS.FOR.12.Oct.2012 Col1   Col2
Col3
3  INDEX FUTURES  40230.0 1142.001965025 
51478.0
4  INDEX OPTIONS 525745.0  14990.371
492126.0
5  STOCK FUTURES  35248.01028.378075 
45162.0
6  STOCK OPTIONS 105001.03212.669375
105553.0
Col4  Col5   Col6
3 1430.472715225  603867.0  15419.5277629
414070.52175 1783758.0 50627.34217375
5   1308.1875375 1041481.0  30630.1147675
63230.074875   80391.0 2505.014379375
 
-





--
View this message in context: 
http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646313.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
Hi

Download the xls file from this link
http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls
http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls  

I tried this
---
 library(XLConnect)
url = http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls;
local.xls.file = tempfile()
download.file(url, local.xls.file)
wb = loadWorkbook(local.xls.file, create=F)
data = readWorksheet(wb, sheet=1)
View(data)
---
no results ...
kindly help me
thanks
veepsirtt




--
View this message in context: 
http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646215.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
 Mr Jeffrey Breen
 mailed me the following code.
but it is not giving me the results under Windows 7.

With regards
veepsirtt'

library(XLConnect) 

url = http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls; 
local.xls.file = tempfile() 

download.file(url, local.xls.file, method='wget', extra=-U 'Mozilla/5.0
(X11; Linux) Gecko Firefox/5.0') 
wb = loadWorkbook(local.xls.file, create=F) 
data = readWorksheet(wb, sheet=1) 



--
View this message in context: 
http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646252.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
Hi Henrik,
i included the mode='wb' but gives me this error.
What is the other method to download the excel file?.
With kind regards
veepsirtt


library(XLConnect)

 url = http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls;
 local.xls.file = tempfile()

 download.file(url, local.xls.file, method='wget', mode='wb',extra=-U
'Mozilla/5.0 (X11; Linux) Gecko Firefox/5.0')
Warning message:
In download.file(url, local.xls.file, method = wget, mode = wb,  :
  download had nonzero exit status
 wb = loadWorkbook(local.xls.file, create=F)
Error: FileNotFoundException (Java): File 'filed0c141444d8' could not be
found - you may specify to automatically create the file if not existing.
 data = readWorksheet(wb, sheet=1)
Error in readWorksheet(wb, sheet = 1) :
  error in evaluating the argument 'object' in selecting a method for
function 'readWorksheet': Error: object 'wb' not found



On Mon, Oct 15, 2012 at 11:58 PM, Henrik Bengtsson-3 [via R] 
ml-node+s789695n4646268...@n4.nabble.com wrote:

 You didn't say what errors you've got but you probably wants to
 specify argument mode=wb in your download.file() call, cf.
 https://stat.ethz.ch/pipermail/r-devel/2012-August/064739.html

 /Henrik


 On Mon, Oct 15, 2012 at 1:57 AM, veepsirtt [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4646268i=0
 wrote:

  Hi
 
  Download the xls file from this link
  http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls
  http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls
 
  I tried this
  ---
   library(XLConnect)
  url = http://www.nseindia.com/content/fo/fii_stats_12-Oct-2012.xls;
  local.xls.file = tempfile()
  download.file(url, local.xls.file)
  wb = loadWorkbook(local.xls.file, create=F)
  data = readWorksheet(wb, sheet=1)
  View(data)
  ---
  no results ...
  kindly help me
  thanks
  veepsirtt
 
 
 
 
  --
  View this message in context:
 http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646215.html
  Sent from the R help mailing list archive at Nabble.com.
 
  __
  [hidden email] 
  http://user/SendEmail.jtp?type=nodenode=4646268i=1mailing 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.

 __
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4646268i=2mailing 
 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.


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646268.html
  To unsubscribe from Download a file from url, click 
 herehttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4642985code=dmVlcHNpcnR0QGdtYWlsLmNvbXw0NjQyOTg1fDY5NzkzMTE3Nw==
 .
 NAMLhttp://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646295.html
Sent from the R help mailing list archive at Nabble.com.
[[alternative HTML version deleted]]

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


Re: [R] Download a file from url

2012-10-15 Thread veepsirtt
Currently download methods internal, wget, curl and lynx are
available.
If wget is not possible under windows,how to use 'curl'?.
thanks
veepsirtt



--
View this message in context: 
http://r.789695.n4.nabble.com/Download-a-file-from-url-tp4642985p4646296.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] Accessing graphs via url

2011-09-10 Thread veepsirtt
Hi
I want to bring the graph from the site www.avasaram.com
for the symbol GOOG
here is the link

http://www.avasaram.com/historyAction!addPatterns.action?model.ticker=GOOGmodel.slectedPatternsIds=55

How to get the graph in R?.
 With regards
 veepsirtt

--
View this message in context: 
http://r.789695.n4.nabble.com/Accessing-graphs-via-url-tp3803388p3803388.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] RStudio -manipulate command

2011-05-04 Thread veepsirtt
Why the mean value   h is not changing as the slider moves from 0 to 25 ?.
It remains always constant.

library(manipulate)

example - function(x.max){
plot(cars, xlim=c(0,x.max)) 
abline(h=mean(cars$dist),col=blue,lty=2) }

manipulate(
example(x.max), x.max=slider(0,25, step=5) )

veepsirtt

--
View this message in context: 
http://r.789695.n4.nabble.com/RStudio-manipulate-command-tp3474947p3494489.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] RStudio -manipulate command

2011-04-27 Thread veepsirtt
require(quantmod)
getSymbols(GLD)
library(manipulate)

manipulate(
  plot(as.matrix(Cl(GLD)), xlim=c(0,x.max)),  
  x.max=slider(10,1000))

I am not getting the plot of closing price of GLD.

V.Periasamy M.E
Associate Professor
Dept of Mechanical Engineering,
IRTT-ERODE-638316
INDIA


--
View this message in context: 
http://r.789695.n4.nabble.com/RStudio-manipulate-command-tp3474947p3480083.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] RStudio -manipulate command

2011-04-26 Thread veepsirtt
require(quantmod)
getSymbols(GLD)
library(manipulate)
manipulate(
  plot(Cl(GLD), xlim=c(0,x.max)),  
  x.max=slider(10,100))

Why the graph is not plotting?

thanks
veepsirtt

--
View this message in context: 
http://r.789695.n4.nabble.com/RStudio-manipulate-command-tp3474947p3474976.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] RStudio -manipulate command

2011-04-26 Thread veepsirtt
Hello,
How to plot the time series values of YHOO symbol?,

getSymbols(YHOO,src=google)
library(manipulate)
manipulate(
  plot(YHOO, xlim=c(0,x.max)),  
  x.max=slider(10,250))


while running this code I am getting this message

Warning message:
In plot.xts(YHOO, xlim = c(0, x.max)) :
  only the univariate series will be plotted
Kindly help  me.
veepsirtt

--
View this message in context: 
http://r.789695.n4.nabble.com/RStudio-manipulate-command-tp3474947p3474947.html
Sent from the R help mailing list archive at Nabble.com.

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


[R] Blotter package ?.

2011-02-18 Thread veepsirtt

Hi,

Where is the blotter package?.It is not available at R-Forge.
Let me know how to get it.
With Regards
veepsirtt
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Blotter-package-tp3313796p3313796.html
Sent from the R help mailing list archive at Nabble.com.

[[alternative HTML version deleted]]

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


Re: [R] Cran-packages-ProfessoR- how to Automatically email a file to an address using the perl program.

2010-08-25 Thread veepsirtt

Hi Jonathan lees

How to use this code and after installing ProfessR  package

autoemail(eadd, sfile, hnote = Exam Results) 

thanks
veepsirtt
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Cran-packages-ProfessoR-how-to-Automatically-email-a-file-to-an-address-using-the-perl-program-tp2335184p2337924.html
Sent from the R help mailing list archive at Nabble.com.

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


Re: [R] sendmailR-package-valid code needed

2010-08-24 Thread veepsirtt

I could not install Rmail Package .
I got the following errors.
Then how to do.please

 library(caTools)
 install.packages(Rmail,contriburl=http://www.math.mcmaster.ca/~bolker/R/src/contrib;)

Warning: dependency ‘caTools’ is not available
trying URL 'http://www.math.mcmaster.ca/~bolker/R/src/contrib/Rmail_1.0.zip'
Error in download.file(url, destfile, method, mode = wb, ...) : 
  cannot open URL
'http://www.math.mcmaster.ca/~bolker/R/src/contrib/Rmail_1.0.zip'
In addition: Warning message:
In download.file(url, destfile, method, mode = wb, ...) :
  cannot open: HTTP status was '404 Not Found'
Warning in download.packages(pkgs, destdir = tmpd, available = available,  :
  download of package 'Rmail' failed


With regards
veepsirtt
-- 
View this message in context: 
http://r.789695.n4.nabble.com/sendmailR-package-valid-code-needed-tp2334921p2336159.html
Sent from the R help mailing list archive at Nabble.com.

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