Hello,
I am having some trouble finding a solution for a probleIm I am facing with
the package gWidgets.
Here is the code:
flavors<-c("vanilla", "chocolate", "strawberry")
f<-function(h,...)print(svalue(h$obj))
w <- gwindow("checkbox example")
gp <- ggroup(container=w)
glabel("Favorite flavors
To whoever is looking for the same thing as I was, I found a solution, or
sort of.
Here is the code:
flavors<-c("vanilla", "chocolate", "strawberry")
w <- gwindow("checkbox example")
gp <- ggroup(container=w)
glabel("Favorite flavors:",cont=gp)
cbg <- gtable(flavors, cont=gp, multiple=T)
#
Hello all,
I am trying to automate a list to be filled in a FOR LOOP.
Basically I need to load info from a third source and store it into a list.
This list goes to object "A"; The next list brought in by the LOOP goe to
object "B".. os on ans so forth.
When the iteration on the LOOP goes well (wh
Basically I need to read the data from an external source using many R
commands.
The problem is that sometimes the source is empty, and I get a list with
empty values, and I need to substitute them by "NA".
It is def. not hard, I just don't see how
In the prvious post, the first example had val
Ok. I appreciate your help. i don't understand what you guys mean by
"reproducible example", if you explained better, I will be more than glad to
post it.
Regards,
--
View this message in context:
http://r.789695.n4.nabble.com/Filling-empty-List-in-a-FOR-LOOP-tp4522694p4524532.html
Sent from th
Hello,
I am trying to use a for loop to name objects in each iteraction. As in the
following example (which doesn't work quite well)
my_list<-c("A","B","C","D","E","F")
for(i in c(1:length(my_list))){
url<- "http://finance.yahoo.com";
doc = htmlTreeParse(url, useInternalNodes = T)
tab_nodes
Michael - thank you so much! Just what I needed!
--
View this message in context:
http://r.789695.n4.nabble.com/Using-a-FOR-LOOP-to-name-objects-tp4430454p4433903.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org ma
Hello All!
I need some help to get a FOR LOOP to print the interactor with the
quotation mark.
Let me be more specific:
I have the following:
cbind("Michael","Dana","Rob")->LIST
outcome:
[,1] [,2] [,3]
[1,] "Michael" "Dana" "Rob"
UNFORTUNATELY, I need to do the following:
as.data
Mercier - That is it!
Thank you vey much!
--
View this message in context:
http://r.789695.n4.nabble.com/Use-quotes-on-a-FOR-LOOP-R-tp4584438p4584627.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
htt
Hello,
I am trying to understand why the FUNCTION used in several codes, won't
create the object after it finishes running the code.
For instance, look at the following:
Number<- function(x) {MyNumberIs<-x}
When I run
Number(5)
Everything goes well, except that if I try to call the object MyNu
Peter, your solution is actually very interesting. I have never seen or heard
of before. I will look into it.
Meanwhile, look at this example instead:
fac<-function(x){a<-1
for(i in 1:x){
a<-a*i
print(a)}}
The result is :
> fac(5)
[1] 1
[1] 2
[1]
Any solution for that type of problem?
I did read the ?"<<-", and seems very similar to the "assign" function, if I
am not mistaken
--
View this message in context:
http://r.789695.n4.nabble.com/Using-FUNCTION-to-create-usable-objects-tp4588681p4590445.html
Sent from the R help mailing list a
Ista,
Since you seem to know your stuff very well, how would you get 120 out of a
function that gives you the factorial of 5, without using factorial(5)?
> Meanwhile, look at this example instead:
> fac<-function(x){a<-1
> for(i in 1:x){
> a<-a*i
>
David -
My question to you may sound (actually, it really is) silly, but please do
take your time to answer it.
What is the difference between:
fac<-function(x){a<-1
for (i in 1:x){
a<-a*i
}a}
and:
fac<-function(x){a<-1
for
Hello all,
I am having some trouble finding a good csv file or even any kind of table
with the financial ratios (i.e. P/E ratio, ROI, ROA etc.) from the Internet.
I was able to find a good source with poor information. That wouold be
Finviz.com.
Another option would be creating a XML function loop
15 matches
Mail list logo