Displaying 20 results from an estimated 2000 matches similar to: "Date/time of formation of objects"
2007 Apr 24
4
Size of an object in workspace
Hi folks,
Is there a function to show the size of an R object? eg. in Kbytes?
Couple months ago Bendix Carstensen posted this marvelous little function lls(), which shows all objects in the current workspace by mode, class and 'size'. This is a wonderful enhancement to the build-in ls() already and I now have it sourced in my Rprofile.site at startup.
The only drawback is,
2007 Jan 09
3
dimensions of a all objects
Why will the following command not work
sapply(objects(),dim)
What does it say about the objects list? What does it say about the dim
command?
Likewise, the following also does not work
all<-ls()
for (f in all) print(dim(f))
--
Farrel Buchinsky
[[alternative HTML version deleted]]
2012 Jun 19
1
R and C pointers
Dear R devel,
Apologies for these (most probably trivial) questions, doing my first
attempt to call C from R (and actually learning C in the process).
I need to pass a matrix to C, and after reading R-exts.pdf (many
times), I was unable to find how to handle matrices at C-level...
except for, what probably is the answer, that matrices are in fact
vectors with dimensions.
This is a sample code I
2011 May 30
0
2D random walk with traps convert C++ code to R code
Hello, I have a C++ code for 2D random walks with traps and I want to convert it in a R code with its syntaxs, can anyone help???????
It's easy for me to adapt the body but I want help with the beginig (variable declaration) and th end exporting the output to a file ( like write.table() or sink() )
Thank you...
#include <iostream>
#include <math.h>#include
2011 Mar 30
4
a for loop to lapply
Dear all,
I am trying to learn lapply.
I would like, as a test case, to try the lapply alternative for the
Shadowlist<-array(data=NA,dim=c(dimx,dimy,dimmaps))
for (i in c(1:dimx)){
Shadowlist[,,i]<-i
}
---so I wrote the following---
returni <-function(i,ShadowMatrix) {ShadowMatrix<-i}
lapply(seq(1:dimx),Shadowlist[,,seq(1:dimx)],returni)
So far I do not get same results
2011 Apr 22
1
ggplot
Hello everyone,
I am using ggplot
to plot but I am getting the following error which I do not understand
Error: geom_text requires the following missing aesthetics: label
My code is
dimx<-256
library(ggplot2)
dev.new()
xandy<-expand.grid(seq(1:dimx),seq(1:dimy))
xx<-data.frame(xandy[[1]],xandy[[2]],Powermap=Powermap)
subsetxx<-subset(xx, xx$Powermap>threshold)
2005 Nov 25
2
Ordering problem
I have an ordering and factor problem to which there must be a simple
solution! The version is R 2.0.1 (2004-11-15) on A Linux platform.
A data frame H is read in from a .csv file using read.csv with as.is=TRUE.
Another data frame HN is constructed from data and I want to compare two
columns both named ss of the (sorted) data frames that are the same
length.
The problem is that HN$ss is
2010 Mar 10
0
Rails ActiveRecord associations autosave option
I have the following associations.
class Document < ActiveRecord::Base
has_many :document_sections, :dependent => :destroy, :autosave => true
has_many :document_items, :through => :document_sections
end
class DocumentSection < ActiveRecord::Base
belongs_to :document
has_many :document_items, :dependent => :destroy, :autosave => true
end
class DocumentItem <
2006 Dec 15
0
SIP DTMF not acted on for features in 1.4.0b3
Asterisk seems to be ignoring DTMF for features in Asterisk 1.4.0b3
My SNOM sends the dtmf-relay and Asterisk gets it because I can
see it in the sip debug.
However, once seen, Asterisk doesn't actually do anything about it. I've
checked features and that seems fine. Is this a bug or something that
I've screwed up?
For the record, here's the features setting:
asterisk*CLI>
2009 Aug 04
0
Writing a NetCDF file in R
Dear all,
I am attempting to convert 10 NetCDF files into a single NetCDF file, due to the data input requirements of a model I hope to use. I am using the ncdf package, version 1.6. The data are global-scale water values, on a monthly basis for 10 years (ie. 120 months of data in total; at present the data are separated by year, with 12 months of data in each file - mrunoff_1986 through to
2009 Aug 05
0
ncdf package problem - put.var.ncdf
Dear all,
I am attempting to convert 10 NetCDF files into a single NetCDF file, due to the data input requirements of a model I hope to use. I am using the ncdf package, version 1.6. The data are global-scale water values, on a monthly basis for 10 years (ie. 120 months of data in total; at present the data are separated by year, with 12 months of data in each file - mrunoff_1986 through to
1999 Sep 12
0
Just a thought ...
Dear all
As someone who leaves his R session open for days - even longer - because
only I access the computer it is on, I very occasionally crash it (my most
recent success was to use a very long plot() which it turned out have both
'l' and a 'b' without keyword!).
I try to be careful, preserving essential bits of coding in an adjacent
emacs screen and doing save.image() from
2012 Mar 15
0
Make Asset Pipeline compatible with Chrome DevTools Autosave
https://github.com/NV/chrome-devtools-autosave doesn’t play nice with Asset
Pipeline. https://github.com/NV/chrome-devtools-autosave/issues/27
The culprit of the problem is in the asset’s URLs. I cannot decipher a file
path by its URL. For instance, /assets/main.css?body=1 could be either
app/assets/stylesheets/main.css, lib/assets/stylesheets/main.css
or vendor/stylesheets/main.css.
To fix
1998 May 29
0
aov design questions
R developers,
I have a first attempt to make an aov function. Eventually I want to
build in Error() structure, but first I am trying to get this
presentable for balanced data with only a single stratum, just using
residual error. I am following R. M. Heiberger's Computation for the
Analysis of Designed Experiments, Wiley (1989)
I a using a wrapper (aov.bal) to call the
2007 Aug 10
2
DO NOT REPLY [Bug 4873] New: rsync transfers stop when encountering Emacs autosave files with hash signs
https://bugzilla.samba.org/show_bug.cgi?id=4873
Summary: rsync transfers stop when encountering Emacs autosave
files with hash signs
Product: rsync
Version: 2.6.9
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo:
2007 Jan 17
11
[PATCH] Add RCU support into Xen - Repost
This is a repost of the RCU patch I have posted some time ago.
The only change from the previous post, was to move it to a more
recent version of xen-unstable (changeset 13386).
I am planning to submit the following additional patches, after this
one is accepted:
1) rename_find_domain.patch: Rename find_domain_by_id() to
get_domain_by_id()
2) add_find_domain.patch: Add new
2007 Jan 17
11
[PATCH] Add RCU support into Xen - Repost
This is a repost of the RCU patch I have posted some time ago.
The only change from the previous post, was to move it to a more
recent version of xen-unstable (changeset 13386).
I am planning to submit the following additional patches, after this
one is accepted:
1) rename_find_domain.patch: Rename find_domain_by_id() to
get_domain_by_id()
2) add_find_domain.patch: Add new
2010 Nov 05
0
NaN, ncdf
Dear All,
Can anyone please let me know how exactly ncdf deals with NaN.
I am trying to pass in a vector of data that has some NaN in it, into a variable in NetCDF.
dimX <- dim.def.ncdf("X","count",(1:6))
dimY <- dim.def.ncdf("Y","count",(1:3))
var1 <-
2014 Nov 24
0
Error "promise already under evaluation ..."
> The above question still stands, but otherwise, I overlooked the most
> obvious solution:
>
> dim_1 <- function(x) dim(x)
>
> Unit: nanoseconds
> expr min lq mean median uq max neval cld
> dim(x) 0 1 72.941 1 1 2696 1000 a
> base::dim(x) 11549 13474 15105.950 14245 15399 60824
2010 Sep 06
0
How R converts data between objects
Hello everyone.
I would kindly request your help concerning how R converts data between
different structrures.
In the following example please keep attention on the following two
1)
I create
f <- GaussRF(x=x, y=y, model=model, grid=TRUE,param=c(mean, variance, nugget,
scale, alpha))
with
image(x,y,f)
and
image(f)
I get exactly the same image.
then
2)I try to store f inside a raster