Displaying 20 results from an estimated 10000 matches similar to: "read.table freezes the computer"
2013 Aug 26
1
plot categorical variable with percentage infomation
Dear All,
Suppose I have a categorical variable
a=as.factor(sample(1:3,10,replace=T))
plot(a) and hist(as.numeric(a),freq=F) would give the histogram of it.
But I do not know how to add the counts or percentage information for
plot.factor().
hist() can do it but as a numeric variable, the x-axis is not 3
categories in this case.
Thank you for any suggestion.
Best wishes,
Jie
2013 Apr 30
2
Quote as element of a vector/list
Dear All,
I would like to store quote as part of an vector.
For instance, I would like to get an character object as
x = " 12"ab"34 "
or
y = c("1", "2", """, "a", "b", """, "3", "4")
Is that possible? Thank you.
Best wishes,
Jie
[[alternative HTML version deleted]]
2012 Sep 14
2
ctrl+r does not work sometimes
Dear All,
This might be a tiny question but I do not know the reason. On my desktop,
sometimes when I use the mouse or ctrl+A select a piece of R script, and
use ctrl+R to run it,
there is no action. If I redo it, it may work.
On my laptop, it is fine. Both are running windows 7.
Best wishes,
Jie
[[alternative HTML version deleted]]
2012 Jul 31
2
protential rounding error concern
Dear All,
I am running a r code on 32bit win, involving absolutely small numbers.
Although I tried sth like the ratio of numers like 10^(-100) and did not
have issue to get the correct answer,
but still a little concerned about it.
Could anyone give some suggestion or have any experience?
Best wishes,
Jie
[[alternative HTML version deleted]]
2013 Jul 23
1
p-values from multiple testing
Dear All,
I performed thousands of testings and obtained p-values.
And then I did two-sided uniform KS test of the p-values, the result
claimed it is uniform.
So does it mean that my model are wrong? Because I expect more small
p-values near 0.
This is a preliminary step before correcting the multiplicity.
Attached is hist of p-values (does this list allow attachment?). The ks test:
One-sample
2013 Mar 11
1
Allocate virtual memory on hard drive
Dear All,
I have a long sequence and want to find the quantile, or sort it first.
It seems sort() or quantile() reaches the memory limit.
Is there a way to allocate more memoy on SSD for R when startup, so
that R can use both RAM and hard drive space?
Thank you.
Best wishes,
Jie
2012 Aug 08
1
random number generator with SNOW/ Parallel/ foreach
Dear All,
I have three classes of questions about generating random numbers with
different packages (windows xp 32bit R).
.
1. Suppose I would like to use package *foreach*, can I use current
Sys.time as a seed?
Although I can get the time up to1e-6 second precesion, the code below dose
not work well on a local machine with two cores. #################
library(foreach)
library(snow)
2013 Oct 04
3
quote a column of a dataframe by its name
Dear All,
I have a question, suppose X is a dataframe, with column names as
"x1", "x2", "x3", ..... And I would like to use the i-th column by X[,'xi'].
But it seems the single quote and double quote are different.
So if I run X[, names(X)[i]], it has some error.
Please use the below example code
X = matrix(rnorm(50),ncol = 5)
X = data.frame(X)
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
On Mon, Sep 14, 2020 at 05:48:07PM +0300, Dan Carpenter wrote:
> Hi Jie,
>
> url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20200911-115013
> base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
> config: parisc-randconfig-m031-20200913 (attached as .config)
> compiler: hppa-linux-gcc (GCC)
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
On Mon, Sep 14, 2020 at 05:48:07PM +0300, Dan Carpenter wrote:
> Hi Jie,
>
> url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20200911-115013
> base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
> config: parisc-randconfig-m031-20200913 (attached as .config)
> compiler: hppa-linux-gcc (GCC)
2012 Aug 06
1
more efficient way to parallel
Dear All,
Suppose I have a program as below: Outside is a loop for simulation (with
random generated data), inside there are several sapply()'s (10~100) over
the data and something else, but these sapply's have to be sequential. And
each sapply do not involve very intensive calculation (a few seconds only).
So the outside loop takes minutes to finish one iteration.
I guess the better way
2012 Aug 02
2
parallel SNOW slower than single core?
Dear All,
I am learning parallel in R and start with the package "snow". I did a test
about running time and the parallel version is much slower than the regulat
code. My laptop is X200s with dual core intel L9400 cpu.
Should I make more clusters than 2? Or how to improve the performance?
# install.packages("snow")
library(snow)
cl <- makeCluster(2)
t1 <- proc.time()
a
2016 May 06
2
host freeze when starting VM
Hi together,
when I´m starting a VM my host freezes gradually. This seems to happen
because its running out of memory and no other process is able to do
anything.
I have 16GB of ram in total. 8GB are reserved for hugepages. So for the
daily business on the host I have 8GB left. I don´t run many or
extraordinary consuming software on the host - normally just a gnome
session and the chromium
2013 Feb 26
2
Efficient way to perform linear regressions
Hi All,
I have millions of regression lines to fit. So I am looking for the
most efficient approach in R.
Details:
I have a large desing matrix X. The dimension is n by p.
Each time when fitting the model, select rows from this matrix X and
form a new design matrix, called X_current.
There is another binary matrix M, with dim m by n, and each row is a
1*n vector. It helps to determin X_current.
2019 Apr 14
2
[A bug?] Failed to use BuildMI to add R7 - R12 registers for tADDi8 and tPUSH of ARM
Hi Craig,
Thanks for the information. Can you point to the source that specifies tGPR to be R0 - R7?
I tried to search in ARMInstrThumb.td but couldn’t find it.
Thanks,
- Jie
On Apr 14, 2019, at 15:28, Craig Topper <craig.topper at gmail.com<mailto:craig.topper at gmail.com>> wrote:
I believe there is probably a separate instruction in LLVM for thumb2 add. Probably starting with t2
2001 Aug 24
1
Recursive flag needs fixing 2.4.7pre1
Martin,
Just a minor fix.
Jie,
Try the -r option (or the --recurse) option instead.
It looks like the source changed to this:
options.c: {"recurse", 'r', POPT_ARG_NONE, &recurse},
But the help is still at:
options.c: rprintf(F," -r, --recursive recurse into
directories\n");
eric
Jie Gao wrote:
>
> rsync: --recursive:
2019 Apr 14
2
[A bug?] Failed to use BuildMI to add R7 - R12 registers for tADDi8 and tPUSH of ARM
Sorry for not being specific enough. ARMv7-M includes Thumb and Thumb2.
It has 12 regular registers (R0 - R12), and R8 - R12 are used.
I can generate mov instruction that from/ R8-R12 to/from R0-R6.
From this ARM page http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0068b/ch03s03s01.html
R9 - R12 have their conventional usage, but I don’t if this is the reason we cannot
use them
2001 Aug 23
5
rsync hangs on solaris
Hi All,
I've got a cron-run rsync (2.4.6) hang on both sides (solaris to
solaris). The platform is:
SunOS 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-80
Sorry if this has been asked before, for I couldn't find a
searchable archive for this list on .
Regards,
Jie
2016 May 11
1
Re: host freeze when starting VM
Hi Han,
thanks for your reply. I'm using KVM as hypervisor. The versions are:
Kernel: 4.5.2
Libvirt: 1.3.4-1
But its quite embarrasing... when I was answering your mail I was having a
look if there is a new kernel I can build, since I have to rely on some
patches. I upgraded from 4.4.3 to 4.5.2 and now libvirt doesn´t have any
problem.
So thanks for the heads up!
Regards
Alex
On Tue, May
2011 Sep 01
3
how to get the varifying character with two variables?
hi R user
mtdno<-paste("data",1:3,sep="")
tyno<-paste("obs",1:5,sep="")
flnm<-paste(mtdno,tyno,"_err.dat",sep="")
flnm is
[1] "data1obs1_err.dat" "data2obs2_err.dat" "data3obs3_err.dat"
[4] "data1obs4_err.dat" "data2obs5_err.dat"
but actually what i want is data from 1 to 3