similar to: How to know created time of object in R?

Displaying 20 results from an estimated 3000 matches similar to: "How to know created time of object in R?"

2008 Jun 26
2
create new column with colnames resulting from paste()
Dear UseRs, I would like to know the way to create a new column by naming it simultaneously. For example, in for() loop I want to create columns named as paste("test", i, sep = ""), as shown below. ---------------------------- dt <- data.frame(a = c(1, 2, 3), b = c(3, 2, 2), c = c(1, 3, 5)) for(i in 1:2){ dt$as.name(paste("test", i, sep = ""))
2008 Jul 01
4
Find classes of each column of data.frame()
Dear UseRs, I would like to know the way to find classes of each column of data.frame(). Thank you in advance. ========================================================= Dong-hyun Oh Center of Excellence for Science and Innovation Studies Royal Institute or Technology, Sweden e-mail: oh.dongh at gmail.com cel: +46 73 563 45 22
2010 Mar 30
1
Error when checking a package.
Dear useRs, I am trying to build my package (nonpareff) which deals with some models of data envelopment analysis. The building worked well, but checking complains when it tests examples. Zipped nonparaeff.Rcheck is attached. Following is the log. --------------------------------------------- arecibo:tmp arecibo$ R CMD build nonparaeff/ * checking for file 'nonparaeff/DESCRIPTION' ...
2008 May 09
2
Tabulation of aggregated data.frame
Hi useRs! I would like to know how to make aggregated data.frame with aggregate() tabulated. For example, I run the following command to aggregate re with respect to group1 and group2. > (aggr <- with(final, aggregate(re, group1, group2, mean))) Group.1 Group.2 x 1 1992 15 0.16392 2 1993 15 0.15467 3 1994 15 0.15456 4 1995 15 0.15391
2010 Mar 30
1
R package checking error.
Dear useRs, I am trying to build my package (nonpareff) which deals with some models of data envelopment analysis. The building worked well, but checking complains when it tests examples. Zipped nonparaeff.Rcheck is attached. Following is the log. --------------------------------------------- arecibo:tmp arecibo$ R CMD build nonparaeff/ * checking for file 'nonparaeff/DESCRIPTION' ...
2008 Aug 22
2
Deleting NA in list()
Dear useRs, I would like to know the way of deleting NA in list(). Following is a example. lt <- list(a = 1:3, b = NA, c = letters[1:3], d = NA) for(i in length(lt):1) { if(is.na(lt[[i]])) lt[[i]] <- NULL } How to simplify for() loop by using (l)apply family? Thank you in advance. ========================================================= Dong-hyun Oh Center of Excellence for
2007 Oct 19
1
inverser terrain.colors
Dear UserRs, I draw filled contour plot with filled.contour function. By default, colors of filled.contour is terrain.colors which alters from green (the lowest level) to white (the highest level). I want the colors to alter from white (the lowest level) to green (the highest level). How can I set this color levels? Thanks in advance.
2008 Jun 16
1
Error in maximum likelihood estimation.
Dear UseRs, I wrote the following function to use MLE. --------------------------------------------- mlog <- function(theta, nx = 1, nz = 1, dt){ beta <- matrix(theta[1:(nx+1)], ncol = 1) delta <- matrix(theta[(nx+2):(nx+nz+1)], ncol = 1) sigma2 <- theta[nx+nz+2] gamma <- theta[nx+nz+3] y <- as.matrix(dt[, 1], ncol = 1) x <- as.matrix(data.frame(1,
2008 Jan 07
1
help.search and indexing
Dear expeRt, I occasionally use help.search() function to find appropriate functions in R. Whenever committing help.search() after rerunning R, it takes so much time to find help (around 2 minutes). Is there any way to make it faster in help.search()? I think indexing help database is one of the solution, but i don't know how to do. Best, Dong-hyun Oh
2007 Apr 16
2
Simplify simple code
Dear expeRts, I would simplify following code. --------------------------------------------- youtput <- function(x1, x2){ n <- length(x1) y <- vector(mode="numeric", length=n) for(i in 1:n){ if(x1[i] >=5 & x1[i] <= 10 & x2[i] >=5 & x2[i] <=10) y[i] <- 0.631 * x1[i]^0.55 * x2[i]^0.65 if(x1[i] >=10 & x1[i] <= 15 &
2010 Jun 01
1
mvbutils and trackObjs
Hello Colleagues, I've recently become a fan of Mark Bravington's mvbutils package for organizing analysis projects in a tree. Using cd(), Save(), fixr(), mlazy() etcetera solves nicely some of the nuisances that have worried or annoyed me and sometimes caused big problems over the years. Well thought out. Now one feature that would be fabulous would be automatic time-stamping of
2007 Oct 10
1
Deleting for() loop in function
Dear UseRs, I wrote following function in order to solve Data Envelopment Analysis. Reason for posting is that the function is slow when nrow(dat) is large. I wonder if other functions could substitute the for() loop in the code, such as mapply(). Can anybody help to rewrite the dea() function as efficiently as possible? The code is as follows:
2011 Jan 30
5
How to relocate $HOME directory
Hi there, As you know, $HOME is generally located at "/home/$username" by default. I would like to re-locate all users' $HOME directories to something like "/export/home/$username" without having a hassle/trouble. Initially, I've thought of just copying them to the new directory (under /export/home/xxx), but guessed it might trouble for the normal use (I'm pretty
2007 Sep 07
1
Finding convex hull?
Dear UseRs, I would like to know which function is the most efficient in finding convex hull of points in 3(or 2)-dimensional case? Functions for finding convex hull is the following: convex.hull (tripack), chull (grDevices), in.chull (sgeostat), convhulln (geometry), convexhull.xy (spatstat), calcConvexHull (PBSmapping). I also would like to know if there is a function that can be used
2008 Feb 15
1
function similar to str_replace() in php.
Dear expeRt, I would like to know whether a function similar to str_replace() in php exists in R. Looking forward to hearing from you. Best, ========================================================= Center of Excellence for Science and Innovation Studies, Royal Institute of Technology Drottning Kristinas v?g 30 100 44 Stockholm, Sweden e-mail: donghoh at infra.kth.se, doriaba2 at
2020 Sep 15
1
[PATCH v2 20/21] drm/xlnx: Initialize DRM driver instance with CMA helper macro
Hi Thomas, Thank you for the patch. On Tue, Sep 15, 2020 at 04:59:57PM +0200, Thomas Zimmermann wrote: > The xlnx driver uses CMA helpers with default callback functions. > Initialize the driver structure with the rsp CMA helper macro. The > driver is being converted to use GEM object functions as part of > this change. > > Two callbacks, .dumb_destroy and .gem_prime_import,
2008 Aug 27
2
problems formating scientific collaboration data
Hello all and thanks in advance for any help or direction. I have co-authorship data that looks like: Paper Author Year 1 SmithKK JonesSD 2008 2 WallaceAR DarwinCA 1999 3 HawkingS 2003 I would like: Paper Author Year 1 SmithKK 2008 1 JonesSD 2008 2
2007 Dec 14
2
Rapid Random Access
I have some code that can potentially produce a huge number of large-ish R data frames, each of a different number of rows. All the data frames together will be way too big to keep in R's memory, but we'll assume a single one is manageable. It's just when there's a million of them that the machine might start to burn up. However I might, for example, want to compute some
2009 Jun 12
1
how to trigger variable creation?
Hello R users, i'm wondering how to trigger variable creation. Whenever a variable is created i want my own function myFun(...) to be started. if (exists("x")) {rm(x)} # after removal of x # any of these calls x<-10 # should call myFun x=10 # should call myFun assign(x,10) # should call myFun etc.
2023 Aug 24
1
[PATCH (set 1) 00/20] Rid W=1 warnings from GPU
On Thu, 24 Aug 2023 08:36:45 +0100, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > Cc: Alex Deucher <alexander.deucher at amd.com> > Cc: amd-gfx at lists.freedesktop.org > Cc: Ben Skeggs <bskeggs at redhat.com> > Cc: "Christian