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.
Thank you, Bert!
Dear All, I would like to announce a one-function package dedupewider. I have used it to find companies connected by some telephone numbers to collapse it into one row, e.g. in case of this table: |tel_1|tel...
Dear All, I would like to announce a one-function package dedupewider. I have used it to find companies connected by some telephone numbers to collapse it into one row, e.g. in case of this table: |tel_1|tel...
Hi, I know it is possible to find the environment in which some object lives using the 'environment()' function and the name of this object, but how to modify code of this object after this? Below is MRE: test <- function...
Hi, I'm working on a presentation regarding the modification of the function body on-the-fly and just discovered something I don't understand. I would like to modify a body of the function within a function, but I...
Hi, Isn?t a bracket missing after gc_label? So it should be: > ggplot(s8_plot, aes(fill=GTresult, y=cases, x=gc_label)) + + geom_bar(position="stack", stat="identity")) Best, Grzegorz Od: Kai Yang via R-help Wys?ano...
Hi, I'm looking for the reverse operation for utils::findLineNum(). Let's take the code as below saved in file "test.R": ``` fun1 <- function() { c(1, 2, 3) } ``` Let's say in the file it starts from line 1...
Hi, of course you can. This should work: ggplot(s8_plot, aes(fill=GTresult, y=cases, x=gc_label)) + geom_bar(position="stack", stat="identity")) + theme(axis.text.x = element_text(angle = 90, hjust = 1)) By "hjust" you make sure...
Hi, If you had really just used: wbpractice %>% mutate(gap = total.food.exp-total.nfood.exp) #gen a variable and then checked by: names(wbpractice) then the problem is just with missed assignment, i.e. it should be: wbpractice <- wbpractice...
Well, Wikipedia is probably the place where people who know some topic can check if people who wrote the article did it right :) You can try this short subchapter in R for Data Science (by Hadley Wickham) as a starting...
Thank you. I posted this question on SO in the meantime as well, but there is no answer for my question, so I pasted your answer (https://stackoverflow.com/questions/70517625/how-to-use-trace-for-function-in-parent-or...
Thank you, Ivan and Duncan. The truth is I still feel lost in this concept of environments, generally speaking. What I really thought about is the possibility to make a shiny app where there will be possible to choose the...
Thank you for all the comments. If this is not a problem, I would like to continue this thread as for me a lot of questions are still open. But if I should post other questions in different messages / topics...
Thank you, I think I can say that I get it, especially when reading this explanation: "assignments within a function occur *within* the function environment unless otherwise specified", so this is just like in the example below: a <- 4 fun2...
Hi, but why is there a space before 6? Isn't it the source of the problem? Best regards, Grzegorz pt., 8 pa? 2021 o 20:14 Andrew Simmons <akwsimmo at gmail.com> napisa?(a): > > Hello, > > > The issue comes that...
This will work as well: d<-data.frame(d1 = letters[1:3], d2 = c(1,2,3), d3 = c(NA_character_,NA_character_,6)) apply(d, 2, FUN=function(x)all(x[!is.na(x)] <= 3)) d1 d2 d3 FALSE...
Can't find what you're looking for? Try searching with Google .