Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
Using lattice package, is it possible to plot autocorrelation functions similar to acf in stats? Thanks, Naresh [[alternative HTML version deleted]]
My data.table installation uses single thread only. Instruction on this site do not apply to Ventura 13.6 https://github.com/Rdatatable/data.table/wiki/Installation Has anyone got data.table working with multi-thread? Thanks, Naresh
When installing littler using install.packages('littler'), I got below message: * new binary r installed in bin/ subdirectory * consider adding a symbolic link from, e.g., /usr/local/bin * on OS X, you may have to name this 'lr' instead...
? > mydf <- data.frame(date = as.Date("2010-01-01") + sample(500, size = 20), subject = sample(c("A", "B", "C"), 20, replace = TRUE), first = FALSE) > mydf <- mydf[order(mydf$date),] > df_split <- split(mydf, f = mydf$subject) > df_split <- lapply(df...
I just installed littler package on my Mac. I got the message * new binary r installed in bin/ subdirectory * consider adding a symbolic link from, e.g., /usr/local/bin * on OS X, you may have to name this 'lr...
When I plot a graph plot(norm(10)) R plots the graph and makes the graph window the active window. It is straightforward to type Cmd-TAB and go back to R session. Is it possible to change default settings...
I have written a function which returns an SQL query result as a data.frame. Each column of data.frame is a variable not explicitly defined. For every column name, R CMD check says ?no visible binding for global variable...
In my Amazon Web Services (AWS) account, I use R via emacs launched from terminal. While R computations work well, viewing graphs is inconvenient. I am not able to use screen device. I can send graphs to a png or...
I would like to print a barchart without labels for categorical variables. ?What change should be made to below command? Thanks, Naresh boy.age <- data.frame(name = c("alpha", "beta", "charlie", "gerald"), age = c(7, 9, 6, 5)) boy.age...
Recently I installed Linux on my desktop. I discovered that R for Linux ships with info files of manuals. R for Windows and Mac only ship with html and pdf files of manuals. Why not include info files in R...
I am trying to install ESS so that it can be used when EMACS is launched from Mac Terminal. ?After running "make" from the directory where ESS files are saved, the instructions ask the following to be added to .emacs...
In an R session, when I type the name of an object, R prints the entire object (for example, a 20000 x 5 data.frame). Is it possible to change the default behavior so that only the first five and...
I am trying to write a function, which can be made very general if one of the inputs can be an expression. ?How can this be done? For example, to find root of a function, I would like to say...
Is it possible to include expression in lattice panel strip? Thanks, Naresh cs <- 2 * cos(2 * pi * (1:500) / 50 + 0.6 * pi) w <- rnorm(500) xyplot(ts(cbind(x1 = cs, x2 = cs + w)), screens = list(x1 = expression(2 * cos...
After drawing multiple figures, I want to select an earlier figure to add some low level commands. Using mfg parameter runs all commands in the most recent figure only. How can an earlier figure be selected? Thanks, Naresh par(mfrow...
I have switched from RStudio to emacs. In emacs, how can I create a project like in RStudio? Within the project directory, I would like to create different directories for code, data, results, figures, documents, etc. In RStudio project, relative...
I am struggling with a simple histogram where scales of x-axis should be free. ?Each panel should only show the range relevant for data plotted in that panel. ? library(lattice) library(AER) data(CreditCard) histogram( ~ card + reports, data = CreditCard...
I want to calculate a function many times over. My solution below works, but does not seem very elegant. # my function to run many times over stud.score <- function(n.questions, mult.choice = 2) { prob.success <- 1 / mult.choice answers...
> > I am looking for a more elegant way to write below code. > > #Simulation results have different dimensions > mysim <- lapply(1:10, function(y) { > two.mat <- matrix(rnorm(4), nrow = 2) > four.mat <- matrix(rnorm(16), nrow = 4) > list(two.mat...
> Sys.info() sysname "Darwin" release "22.6.0" version "Darwin Kernel Version 22.6.0: Fri Sep 15 13:39:52 PDT 2023; root:xnu-8796.141.3.700.8~1/RELEASE_X86_64" nodename [deleted] machine "x86_64" login...
Can't find what you're looking for? Try searching with Google .