similar to: how to free memory? (gc() doesn't work for me)

Displaying 20 results from an estimated 130 matches similar to: "how to free memory? (gc() doesn't work for me)"

2010 Aug 16
5
how to test if a vector contain a value?
Hi all, How to convert following simple python script to R if x in a_list: print x OR simply, how to test if a vector contain a value? Thank you in advance, Hyunchul [[alternative HTML version deleted]]
2010 Sep 03
4
function to compare numbers
Hi, all is there a built-in function to compare two numbers? something like following function cmp <- function(x, y){ value <- 0 if (x > y){ value <- 1 }else if (x == y){ value <- 0 }else { value <- -1 } return(value) } Thanks in advance, Hyunchul [[alternative HTML version deleted]]
2010 Aug 30
2
listing files recursively
Hi, all how to get all filenames in a directory and its all subdirectories? something like filenames <- c(Sys.glob('/path/to/directory/*'), Sys.glob('/path/to/directory/*/*'), Sys.glob('/path/to/directory/*/*/*'), ...) Thanks in advance, Hyunchul [[alternative HTML version deleted]]
2010 Aug 29
2
take component names of a list
Hi, all I want to take a vector of component names of a list. list.a <- list('x'=1, 'y'=2) how to get a c('x','y') from list.a? Thanks in advance, Hyunchul [[alternative HTML version deleted]]
2008 May 01
3
elseif syntax
Hi, all How to use elseif ? For example, like following short python examples. ********* x = 1 if x == 1: print 'same' *elif* x > 1: print 'bigger' else: print 'smaller' ********* Thanks in advance, Hyunchul Kim [[alternative HTML version deleted]]
2010 Sep 19
2
get time as a number
Hi, all, How to get a time as a number? While script is running, I want to print the elapsed time something like TIME_AS_SECOND() in the following script inittime <- TIME_AS_SECOND() for (i in 1:100){ do_something(i) curtime <- TIME_AS_SECOND() elapsedtime <- curtime-inittime print(paste(i, elapsedtime)) } Thanks in advance, Hyunchul [[alternative HTML version
2008 Aug 11
2
How to specify the type and size of font in bitmap format output?
Hi, all I need to specify a font (for example, type=helvetica and size=10) in bitmap output (for example, dev.print(bitmap, 'test.png'). How can I do this? Thanks. Hyunchul [[alternative HTML version deleted]]
2010 Aug 29
1
how to take a os.path.basename
Hi, all I made a simple R script to take the basename of a file without directory names. path.splitted <- strsplit('/path/to/a_basename', '/') path.length <- length(path.splitted[[1]]) basename <- path.splitted[[1]][path.length] # basename <- 'a_basename' Is there a simple function for this? something like os.path.basename(a_filename) of python? Thanks in
2008 Feb 19
4
How to join path with arguments
Hi, all How to format and join strings ? For example, like following short python examples. ********* name1 = 'sample-plot' filename = '%s.png' % name1 inputdir = '/path/to/dir' os.path.join(inputdir, filename) ********** Best, Hyunchul Kim [[alternative HTML version deleted]]
2008 Mar 06
1
histogram like x labels in barplot
Hi, all I drew a barplot with > barplot(data1, beside=TRUE) and then, I want to labels with hist() like x-axis ticks. How can I do this? Thanks in advance, Hyunchul
2008 Feb 19
1
How to count from larger value to smaller value in ecdf (Empirical Cumulative Distribution Function)
Hi, all ecdf function (Empirical Cumulative Distribution Function) in "stats" package counts from smaller values to larger values. However, I want to draw it by counting from larger value to smaller values and I couldn't find options for this purpose. How can I draw ecdf or ecdf like graph by counting from larger values to smaller values. Thank you in advance. Hyunchul Kim
2004 Aug 18
1
Memory Problems in R
Hello everyone - I have a couple of questions about memory management of large objects. Thanks in advance for your response. I'm running R version 1.9.1 on solaris 8, compiled as a 32 bit app. My system has 12.0 GB of memory, with usually ~ 11GB free. I checked system limits using ulimit, and there is nothing set that would limit the maximum amount of memory for a process (with the
2003 Nov 25
1
64-bit R on Opteron [was Re: Windows R 1.8.0 hangs when M em Usage >1.8GB]
> From: Douglas Bates [mailto:bates at bates4.stat.wisc.edu] > > "Liaw, Andy" <andy_liaw at merck.com> writes: > > > Sorry. I need to retract my claim. There seems to be a 3G > limit, even > > though the OS could handle nearly 8G. (I can have two > simultaneous R > > processes each using near 3G.) > > > > On another note, on
2003 Nov 25
1
64-bit R on Opteron [was Re: Windows R 1.8.0 hangs when M em Usage >1.8GB]
> From: Douglas Bates [mailto:bates at bates4.stat.wisc.edu] > > "Liaw, Andy" <andy_liaw at merck.com> writes: > > > Sorry. I need to retract my claim. There seems to be a 3G > limit, even > > though the OS could handle nearly 8G. (I can have two > simultaneous R > > processes each using near 3G.) > > > > On another note, on
2005 Feb 22
1
Memory error in Mac OS X Aqua GUI v1.01 with cluster package functions
I'm sorry if the answer to my problem is buried in the archives. I have limited experience with R and I couldn't find a solution to my particular problem. I am running Mac OS X Aqua GUI v1.01 on a new G5 running os 10.3.8 with a 1.8Ghz processor and 1GB of sdram. I just downloaded bioconducter a week ago and I'm trying to cluster a matrix I created with a simulation with
2008 Dec 10
0
how to set font size in 'pt'
Dear all, I need to make a publication quality figure. Axis labels and xy labels should be written in a given font type and font size in "pt" but not in "px" or "inch". I tried dev2bitmap(... , pointsize= ) and pdf(... , pointsize= ) but I couldn't do what I want. I heard that many people use R to plot publication quality figures and tried. How did you write
2008 Feb 15
0
tests of lognormal distribution
Hi all, I have a data of lognormal distribution (sample size > 1,000,000). What I want to do is 1) to test if my dataset is a lognormal distribution or not (Histogram shows a nice normal distribution in log scale but I want to check) 2) two subsets from this dataset have same mean or not (like "t test" of normal distribution) What I tried are 1) ad.test{truncgof} of R, which is a
2003 Apr 23
3
equipment
Hello, it is likely that I will have to analyze a rather sizeable dataset: 60000 records, 10 to 15 variables. I will have to make descriptive statistics, and estimate linear models, glm's and maybe Cox proportional hazard model with time varying covariates. In theory, this is possible in R, but I would like to get some feedback on the equipment I should get for this. At this moment, I have a
2017 Aug 30
0
Unable to use Heketi setup to install Gluster for Kubernetes
Hi, I have the following setup in place: 1 node : RancherOS having Rancher application for Kubernetes setup 2 nodes : RancherOS having Rancher agent 1 node : CentOS 7 workstation having kubectl installed and folder cloned/downloaded from https://github.com/gluster/gluster-kubernetes using which i run Heketi setup (gk-deploy -g) I also have rancher-glusterfs-server container running with
2004 Apr 28
2
Matrix efficiency in 1.9.0 vs 1.8.1
I'm seeking some advice on effectively using the new Matrix library in R1.9.0 for operations with large dense matrices. I'm working on integral operator models (implemented numerically via matrix operations) and except for the way entries are generated, the examples below really are representative of my problem sizes. My main concern is speed of large dense matrix multiplication. In R