I know it is possible to replace multiple items simultaneously in R. I have this sequence of commands:
How can I modify all the items that are in a box by only using the keyboard? I am aware of the find function and Keyboard Shortcuts Help, but that's not what I am looking for.
Maybe someone can suggest a nice summary of similar tricks and shortcuts? I have looked briefly on youtube, with no satisfactory findings.
Ctrl+Shift+Alt+M - Rename in scope
Shift+Alt+K - Keyboard Shortcut Quick Reference
Related
I am struggling to learn R since I cannot find a good way to see the syntax of the functions.
For example: I am practicing the rename function, I have a video guiding it, but it's not Ideal. When I've learned python it had the shift + Tab option that showed exactly what is mandatory, the order, etc. It was not perfect, but I know I can get away with it 80% of the times.
There's a good way to guide yourself in R, like the Shift + tab in Python?
I'm wondering if there are any packages for R which help to visualize workflows/code in a way Alteryx does. I find the visualization of the workflows within Alteryx quite helpful, but manually dragging an dropping the tools onto the canvas and set the parameters just takes so much longer than just writing the code in R. Also some functionally within Alteryx is not yet sufficient and has to be implemented via the R/Python-Tool anyway.
During my search I found this post which goes into the same direction, but the suggested packages don't really match what I am looking for.
Best regards
i am using RGL to produce a panel of multiple figures through the mfrow3d command.
for the most part, the html produced from the call to writeWebGL is exemplary.
the one caveat is that for multiple figures (be it 6 or 16), i have noticed a bit of lag when attempting to manipulate any one of these figures (to pan/zoom/look around).
an example can be found here: http://fluxions.dydx.ie:1338/schiz.html (warning, 100MB html file haha).
i wanted to ask people here if there is anything i can do in terms of using the "reuse" argument that may speed up performance.
additionally, i wanted to ask if there is any benefit to using rglWidgets and if there is a small example someone could provide in porting a writeWebGL call produced from the following:
https://johnmuschelli.com/WebGL_Interactive_Paper/supp_1/supp_1_wrap.Rmd
to rglwidgets (in hopes that the reuse argument in widgets may improve performance due to my use of mfrow3d).
i am not familiar on how to capture a multi-figure layout with multiple calls to contour3d as a scene that widgets can use.
dr duncan murdoch has gotten back to me and said there probably is not a way to do this, so i guess i will close it.
he is very helpful and i thank him for his support.
using RStudio I have noticed that, when calling a function, I can hit tab and a popup will appear with the possible parameters that can be chosen, e.g. if I type round( and hit tab, x= and digits= will appear as possible choices. This also happens with the custom functions I write. The difference is that built-in functions popups also have comments and explanations regarding the individual parameters. Is it possible to recreate such a behavior with custom functions as well?
I see what you mean. If you write a customised function
foo = function(x,y) { ... }
Then you go foo( and hit tab, the code completion pop-up menu will give you the options x = and y =. However, when you type an existing R function such as round(, not only does tab give you the options, but there's an explanation beneath each variable, telling you its role in the function:
The only way I could think of doing this for your own functions is to package your functions in your own customised package, and to make sure the "help" documentations includes your functions' parameters. This is getting beyond the realm of a stackoverflow question, but I'll point you to a couple of blogs where I learned the basics of R packages.
The Not So Standard Deviation blog explains how to write a simple package with help documentation, which is precisely what you need to see your customised functions appear with explanations inside RStudio's autocomplete. In a nutshell, you'll need to install roxygen2, devtools and, with each customised function, you'll need to thoroughly comment the function like this :
(disclaimer: the goofy cat example is the blogger's, not mine)
Here's a more detailed tutorial on creating R packages, and here's another blog on getting organised with R packages. Good luck!
Very simple question but i'm a beginner ans self taught so i can't ask my stupid questions to anyone. Is there an "easy way" in R to create a program that would show a window with text and you would have to input what you want and it would go look into a dataframe the answer to your question ? Not asking for you to do the work just if you could show me the way.
Thanks (Sorry for the english : not my mother tongue)
The short answer: there probably isn't an "easy way" at least until you are a bit more experienced in R.
An easy way to do something similar is to read input from the console. This means you don't have a pretty window with text, but perhaps you don't need that.
pints_wanted <- readline("How many pints of milk do you want today? ")
If you definitely want windows, dialogs etc., then you could consider using the tcltk package, or the rgtk2 package.