Displaying 20 results from an estimated 1000 matches similar to: "How to uncompress a gz file in R"
2010 Sep 16
2
How to combine matrix and vector
Dear fellows,
I am a novice in R. I would like to combine a matrix and a vector. Assume
that we have the matrix a and the vector b with same length of column.
a<-matrix(seq(1:10),nrow=2,ncol=5,byrow=TRUE)
a=
1 2 3 4 5
6 7 8 9 10
b<-t(c(11,12,13,14,15))
b=
11 12 13 14 15
Then, I want to combine a and b as follows.
c=
1 2 3 4 5
6 7 8 9
2010 Aug 31
4
How to Adaptively Set Up the Coordinate Range of Multiple Graphs in One Figure
Hi, R-Helpers,
I would like to ask about multiple graphs in one figure. I tried to execute
the following codes.
xlim <- c(1,100)
ylim <- c(1,4)
plot(NA, xlim=xlim, ylim=ylim)
> x <- c(1:100)
for(j in seq(1,10,by=1)) {
y <- j*x^2+log(j)
lines(x, y)
}
In the above codes, I had to arbitrarily set up the coordinate range of the
figure in advance before
2010 Oct 13
2
How to fix error in the package 'rgenoud'
Dear R user fellows,
I would like to ask you about the package 'rgenoud' which is a genetic
optimization tool.
I ran the function 'genoud' with two variables to be minimized by the
following command.
result<-genoud(fn,nvars=2,starting.values=c(0.5,0),
pop.size=1000, max.generations=10, wait.generations=3)
Then, I had the following error message.
Error in
2010 Nov 22
3
Fast Two-Dimensional Optimization
Dear R Helpers,
I have attempted "optim" function to solve a two-dimensional optimization
problem. It took around 25 second to complete the procedure.
However, I want to reduce the computation time: less than 7 second. Is there
any optimization function in R which is very rapid?
Best Regards,
Wonsang
-----
Wonsang You
Leibniz Institute for Neurobiology
--
View this message in
2011 Feb 08
1
Simulation of Multivariate Fractional Gaussian Noise and Fractional Brownian Motion
Dear R Helpers,
I have searched for any R package or code for simulating multivariate
fractional Brownian motion (mFBM) or multivariate fractional Gaussian noise
(mFGN) when a covariance matrix are given. Unfortunately, I could not find
such a package or code.
Can you suggest any solution for multivariate FBM and FGN simulation? Thank
you for your help.
Best Regards,
Ryan
-----
Wonsang You
2011 Feb 26
1
2D Convolution Function
Dear R-Helpers,
I want to try the 2D (two-dimensional) convolution in R.
For example, let us we have the following kernel and data.
kernel <- (1,2,3,2,1)
data <- array(1:100, dim=c(10,10))
I know the function 'convolve' only for one-dimensional convolution, but it
is just for a 1D sequence.
Is there any function for 2D convolution?
For theory, please refer to the following link:
2011 Feb 02
1
Error of 'memory not mapped' in ff Package with VirtualBox
Dear R Helpers,
I would like to report on an error in the ff package here.
The ff package is an R package which enables us to store large data on disk
systematically and have fast access to the database.
I used the package in Linux as a guest OS of VirtualBox, and executed the
following commands.
library(ff)
2009 Mar 31
3
installing RMySQL (PR#13633)
Full_Name: Ankhee Dutta
Version: 2.3
OS: LINUX
Submission from: (NULL) (202.141.12.97)
I have a linux system of Mandriva-2007 with R version 2.3.0 and MySQL with
5.0.0. I have also got DBI-R database interface version-0.1-11 installed on
my Linux system.While installing RMySQL package version 0.5-11 i am facing
problem .
while installation the error report which is coming is as follows:
2005 Feb 02
0
[Bug 2296] New: Idea: transparently uncompress .gz and .bz2 files before synchronizing.
https://bugzilla.samba.org/show_bug.cgi?id=2296
Summary: Idea: transparently uncompress .gz and .bz2 files before
synchronizing.
Product: rsync
Version: 2.6.3
Platform: All
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo:
2005 Jun 02
1
glm with variance = mu+theta*mu^2?
How might you fit a generalized linear model (glm) with variance =
mu+theta*mu^2 (where mu = mean of the exponential family random variable
and theta is a parameter to be estimated)?
This appears in Table 2.7 of Fahrmeir and Tutz (2001) Multivariate
Statisticial Modeling Based on Generalized Linear Models, 2nd ed.
(Springer, p. 60), where they compare "log-linear model fits to
2009 Aug 06
2
Ylim
Hello All:
Can anybody tell me what is the problem with my program please. I have an
error message as appears below.
My program is:
ifn <- "Jul08_09.LM"
data <- read.table(ifn)
ofn <- "Jul.png"
bitmap(ofn, type = "png256", width = 30, height = 30, pointsize = 30, bg =
"white",res=50)
par(mar=c(5, 5, 3, 2),lwd=5)
2010 Aug 22
2
Recursion problem
Hi,
I wanted to compute the value of the function ifn at certain values of n. But I
am receiving the following error when I was using the following code(given at
the end).
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
I feel that since the function Grx is recursively related, perhaps making the
code too complicated too handle. Can anyone let me know if
2009 Jul 27
3
numbers on barplot
Hello all,
I have this simple barplot code:
ifn <- "id.dat"
dat <- read.table(ifn)
ofn <- "id.png"
bitmap(ofn, type = "png256", width = 30, height = 30, pointsize = 30, bg =
"white",res=50)
par(mar=c(5, 5, 3, 2),lwd=5)
par(cex.main=1.6,cex.lab=1.6,cex.axis=1.6)
names(dat)<-c("NumberOfPeople","Average")
2010 Aug 20
1
handling recursion relation
Hi,
I wanted to compute the value of the function ifn at certain values of n. But I
am receiving the following error when I was using the following code(given at
the end).
Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
I feel that since the function Grx is recursively related, perhaps making the
code too complicated too handle. Can anyone let me know if
2009 Jul 30
1
reading a file
Hello there,
I have the following info in MyData:
01 0.40
02 0.40
03 0.40
04 0.35
05 0.34
06 0.33
I want to read them using the following code:
ifn <- "MyData"
dat <- read.table(ifn)
names(dat1)<-c("Code","M")
names(dat2)<-c("Code","M")
I want to have the first three lines in
2009 Aug 13
1
reading a string
Hello All:
I am having the following data file named "data.dat"
Number of people
Number of pets
Age of trees
ifn <- "data.dat"
dat <- read.table(ifn)
colnames(dat)<-c("Variables")
I want R to read all these in a string but when I ask R to read these,
it gives me error because there more than one word in each line. Any
comments to solve this problem?
2010 Feb 20
2
R logo as SVG ?
Hi,
does anybody have the R logo in a vector format preferable SVG?
Need it for Freedesktop (GNOME desktop) integration of Rcmdr ...
Thanx,
jel.
--
Otto-von-Guericke University http://www.cs.uni-magdeburg.de/
Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2
39106 Magdeburg, Germany Tel: +49 391 67 12768
2008 Oct 12
3
blue screen: clock interrupt win2008
Hi,
when installing windows server 2008 Std hvm I get always a blue screen
telling me:
''a clock interrupt was not received on a secondary processor within the
allocated time interval''
I googled around and found, that this occured with vista as well:
http://lists.xensource.com/archives/html/xen-changelog/2007-01/msg00170.html
Config is:
+ virt-install --name=win2008ss
2011 Sep 11
8
bad seagate drive?
Hi list,
I''ve got a system with 3 WD and 3 seagate drives. Today I got an email
that zpool status indicated one of the seagate drives as REMOVED.
I''ve tried clearing the error but the pool becomes faulted again. Taken
out the offending drive and plugged into a windows box with seatools
install. Unfortunately seatools finds nothing wrong with the drive.
Windows seems to see
2009 Mar 27
3
Ploting a matrix
Hi evrybody,
in a matrix consisting of 49 columns, I would like to plot all columns
against the first in 48 different graphs.
Can you help me?
Thank you in advance
Sebastian
--
***************************************************************************************************************
Dipl. Biol. Sebastian Krug
PhD - student
IFM - GEOMAR
Leibniz Institute of Marine Sciences
Research