search for: cjberger

Displaying 11 results from an estimated 11 matches for "cjberger".

Did you mean: cberger
2023 Jan 11
1
Reg: ggplot error
No code or data came through. Please read the posting guidelines. On Wed, Jan 11, 2023 at 1:38 PM Upananda Pani <upananda.pani at gmail.com> wrote: > > Dear All, > > I am using roptest function of package "ROptEst" (Kohl and Ruckdeschel > (2019)) to find out the ML, CvM-MD, and the RMX estimator and their > asymptotic confidence intervals. I am assuming 1-5% of
2023 Apr 12
1
converting to date object...
lubridate::dmy("12 APR 2023") On Wed, Apr 12, 2023 at 5:34?PM akshay kulkarni <akshay_e4 at hotmail.com> wrote: > dear members, > I want to convert "12 APR 2023" into a Date > object. I tried as_Date() from lubridate, but it is not working: > > > as_date("12 APR 2023") > [1] NA > Warning message: > All
2023 Apr 14
1
Package Caret
You first have to load the package using the library command. > library(caret) Then you can call createDataPartition. e.g. > data(oil) > createDataPartition(oilType,2) HTH, Eric On Fri, Apr 14, 2023 at 7:52?AM G?bor Malomsoki <gmalomsoki1980 at gmail.com> wrote: > Dear all, > When i try to use createDataPartition after calling package 'caret', i get > the
2023 Jan 14
1
Removing variables from data frame with a wile card
mydata[, -grep("^yr",colnames(mydata))] On Sat, Jan 14, 2023 at 8:57 AM Steven T. Yen <styen at ntu.edu.tw> wrote: > I have a data frame containing variables "yr3",...,"yr28". > > How do I remove them with a wild card----something similar to "del yr*" > in Windows/doc? Thank you. > > > colnames(mydata) > [1]
2023 Apr 14
1
Package Caret
...6?AM G?bor Malomsoki <gmalomsoki1980 at gmail.com> wrote: > Eric, > > Yes, i know, i am calling the package, but this is not working. > I saw a similar question in Stackoverflow, advising install package Rcpp, > but this one i am unable to install. > > Eric Berger <ericjberger at gmail.com> schrieb am Fr., 14. Apr. 2023, 08:47: > >> You first have to load the package using the library command. >> > library(caret) >> >> Then you can call createDataPartition. e.g. >> > data(oil) >> > createDataPartition(oilType,2) >>...
2023 Dec 30
1
Help request: Parsing docx files for key words and appending to a spreadsheet
full_filename <- paste(filepath, filename,sep="/") On Sat, Dec 30, 2023 at 1:45?PM Andy <phaedrusv at gmail.com> wrote: > Thanks Ivan and Calum > > I continue to appreciate your support. > > Calum, I entered the code snippet you provided, and it returns 'file > missing'. Looking at this, while the object 'full_filename' exists, what > is
2023 Apr 12
1
Matrix scalar operation that saves memory?
One possibility might be to use Rcpp. An R matrix is stored in contiguous memory, which can be considered as a vector. Define a C++ function which operates on a vector in place, as in the following: library(Rcpp) cppFunction( 'void subtractConst(NumericVector x, double c) { for ( int i = 0; i < x.size(); ++i) x[i] = x[i] - c; }') Try this function out on a matrix. Here we
2023 Aug 06
1
Stacking matrix columns
Stacking columns of a matrix is a standard operation in multilinear algebra, usually written as the operator vec(). I checked to see if there is an R package that deals with multilinear algebra. I found rTensor, which has a function vec(). So, yet another way to accomplish what you want would be: > library(rTensor) > vec(as.tensor(x)) Eric On Sun, Aug 6, 2023 at 5:05?AM Bert Gunter
2023 Nov 29
2
Code editor for writing R code
Bert, Posit (formerly RStudio) has moved from RMarkdown to Quarto. They still support RMarkdown but major new features will be in Quarto. For new users a better choice would be Quarto. See https://quarto.org/docs/faq/rmarkdown.html Secondly, the OP stated he was using the VS-Code IDE, so there is no reason to point him to the Posit/RStudio IDE for this functionality which VS-Code supports very
2023 May 09
1
RandomForest tuning the parameters
...ou want ... X2 = cbind(X_train,y_train) colnames(X2)[3] = "y" regr2<-randomForest(y~x1+x2, data=X2,maxnodes=10, ntree=10) regr regr2 #Make prediction predictions= predict(regr, X_test) predictions2= predict(regr2, X_test) HTH, Eric On Tue, May 9, 2023 at 6:40?AM Eric Berger <ericjberger at gmail.com> wrote: > Hi, > One problem you have is with the command: > regr<-randomForest(y~x1+x2, data=X_train, proximity=TRUE) > > What you need is something like this: > > X2 <- cbind(X,y) > regr<-randomForest(y~x1+x2, data=X2, proximity=TRUE) > > HTH...
2023 Aug 06
1
Stacking matrix columns
Avi, I was not trying to provide the most economical solution. I was trying to anticipate that people (either the OP or others searching for how to stack columns of a matrix) might be motivated by calculations in multilinear algebra, in which case they might be interested in the rTensor package. On Sun, Aug 6, 2023 at 6:16?PM <avi.e.gross at gmail.com> wrote: > > Eric, > > I