Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
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.
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.
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
Can't find what you're looking for? Try searching with Google .