[R] I need help with this

2022-04-05 Thread ihejirika christopher via R-help
install.packages("titanic") library(titanic) training_set <- titanic_train#Saves the train set as a variable so that we do not affect the original data testing_set <- titanic_test #Saves the test set as a variable so that we do not affect the original data names(training_set) #Prints the name of

Re: [R] Checking a function for undeclared variables

2022-04-05 Thread Peter Langfelder
Thanks! Peter On Tue, Apr 5, 2022 at 6:01 PM Jeff Newmiller wrote: > > ?codetools::findGlobals > > On April 5, 2022 5:36:54 PM PDT, Peter Langfelder > wrote: > >Hi all, > > > >I'd like to check a function for undeclared global variables using > >something similar to what R CMD check does when

Re: [R] replacing a value

2022-04-05 Thread Jim Lemon
Hi Ani, It seems to work for me: a<-c(20, 20, 14.2375646029948, 19.9, 20, 20, 16.3092078677214, 20, 20, 20, 20, 20, 20, 20, 20, 14.8590932408795, 16.178935255298, 20, 20, 20, 20, 27.6404077886079, 20, 20, 20, 20, 20, 21.9857063037444, 20, 20, 20, 20) > a==20 [1] TRUE TRUE FALSE FALS

Re: [R] Checking a function for undeclared variables

2022-04-05 Thread Jeff Newmiller
?codetools::findGlobals On April 5, 2022 5:36:54 PM PDT, Peter Langfelder wrote: >Hi all, > >I'd like to check a function for undeclared global variables using >something similar to what R CMD check does when "checking R code for >possible problems". My search came up empty but I hope there is w

Re: [R] ggplot2

2022-04-05 Thread Greg Minshall
hi, Richard, > I get these warnings, and the package did not install: ... > 1: In install.packages("ggplot2", dependencies = TRUE) : > installation of package ‘curl’ had non-zero exit status Ivan and Kimmo have both pointed out you need the right development tools. in terms of debugging your p

Re: [R] ggplot2

2022-04-05 Thread Richard Vickery
I use Fedora Linux. After completing install.packages("ggplot2", dependencies=TRUE) I get these warnings, and the package did not install: Warning messages: 1: In install.packages("ggplot2", dependencies = TRUE) : installation of package ‘curl’ had non-zero exit status 2: In install.packages("