Questions tagged [r]
R is a free, open-source programming language & software environment for statistical computing, bioinformatics, visualization & general computing. Please use minimal reproducible examples others can run using copy & paste. Show desired output entirely. Use dput() for data & specify all non-base packages with library(). Don't embed pictures for data or code, use indented code blocks instead. For statistics questions, use https://stats.stackexchange.com.
3
questions with bounties
1
vote
0
answers
75
views
+50
Issues connecting odbc in newest R Studio update
I recently updated R Studio and odbc/dbi seems to be broken. Running packageVersion("odbc") I see:
[1] ‘1.5.0’ Warning message: package ‘odbc’ was built under R version 4.4.1
My current ...
1
vote
1
answer
665
views
+50
lintr no visible binding for global variable ‘.SD’
lintr throws error while using data.table functions like .SD, .SDcols, e.g:
/path/readData.R:130:29: warning: no visible binding for global variable ‘.SD’, Did you mean 'SSD'?
DT[, "row.sum" := ...
4
votes
0
answers
89
views
+100
When extending ggplot2, how should I apply scaling functions per group instead of as a whole?
I'm working on a new geom for ggplot2 that allows the user to alter the tint and shade of the colors by mapping it to an aesthetic. (If someone knows of a place this has already been implemented, ...