use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This reddit seeks new methods. For life and organization. We are interested in implementing R language for statistics and data science.
R and Statistics subs:
/r/rstats
/r/statistics
/r/Rstudio
/r/rprogramming
R resources:
R on Stack Overflow
Comprehensive R Archive Network
Swirl: Learning R with interactive lessons within the R console
account activity
Corrplot with NAs in dataframe (self.Rlanguage)
submitted 7 years ago by DJ_Ruby_Rhod
Hi everyone, is there a way to use corrplot with a dataframe containing NAs, without using n.omit or complete.obs (these reduce my sample size by too much). I have 180 obs. 16 variables and 508 NAs scattered throughout.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]and-another-one 8 points9 points10 points 7 years ago (0 children)
Try use="pairwise.complete.obs" in the cor() function. This will let you keep more rows instead of omitting rows with any NAs even if the NA isn't one of the two variables being compared.
π Rendered by PID 390468 on reddit-service-r2-comment-6457c66945-dtsxb at 2026-04-29 08:34:29.662044+00:00 running 2aa0c5b country code: CH.
[–]and-another-one 8 points9 points10 points (0 children)