Displaying 20 results from an estimated 400 matches similar to: "Building an array from matrix blocks"
2011 Feb 22
2
Plotting a functional time series
Hello,
I'm willing to plot a sequence of densities on a 3d graph, something like
-----------------------------------------------------------------
x <- sapply(1:10, function(i)rnorm(1000))
f <- sapply(1:10, function(i)density(x[,i], from=-5,to=5)$y)
grid <- density(x[,1], from=-5,to=5)$x
win.graph()
persp(grid1, 1:10, f,theta=-50, phi=30, d=2)
2010 Nov 15
3
Defining functions inside loops
Hello,
I was trying to define a set of functions inside a loop, with the loop index
working as a parameter for each function. Below I post a simpler example, as
to illustrate what I was intending:
f<-list()
for (i in 1:10){
f[[i]]<-function(t){
f[[i]]<-t^2+i
}
}
rm(i)
With that, I was expecting that f[[1]] would be a function defined by t^2+1,
f[[2]] by t^2+2 and so on.
2013 Jan 23
1
cannot allocate memory block of size 2.7 Gb
Hello R-users
I am getting error messagens when I require some packages or execute some procedures, like these below:
> require(tseries)
Loading required package: tseries
Error in get(Info[i, 1], envir = env) :
cannot allocate memory block of size 2.7 Gb
> require (TSA)
Loading required package: TSA
Loading required package: locfit
Error in get(Info[i, 1], envir = env) :
cannot
2011 Nov 29
1
Read TXT file with variable separation
Hi!
I have to import some TXT files into R, but the separation between the
columns are made with different blank spaces, but each file use the
same separation. Example:
31 104 5 0 11RUA SAO
SEBASTIAO 25
BAIRRO FILETO
01
2011 Apr 04
1
RGtk2: How to populate an GtkListStore data model?
hello all
I am trying to learn how to use the RGtk2 package...
so, my first problem is: I don't get the right way for populate my
gtkListStore object!
any help is welcome... because I am trying several day to mount the code...
Thanks in advanced
Cleber N. Borges
---------------------------
# my testing code
library(RGtk2)
win <- gtkWindowNew()
datamodel <-
2013 Apr 09
3
rep() fails at times=0.29*100
Dear list,
I have found an unusual behavior and would like to check if it is a
possible bug, and if updating R would fix it. I am not sure if should post
it in this mail list but I don't where is R bug tracker. The only mention I
found that might relate to this is "If times is a computed quantity it is
prudent to add a small fuzz." in rep() help, but not sure if it is related
to
2008 Jun 18
1
Error in bugs.run -- R2WinBUGS
Hi,
I tried to use MethComp library and this library make use of the WinBUGS
by R2WinBuGUS,
but I get the follow error in bugs.run:
*Error in bugs.run(n.burnin, bugs.directory, WINE = WINE, useWINE =
useWINE, : *
Look at the log file and
try again with 'debug=TRUE' to figure out what went wrong within Bugs.
Anyone can help-me, please?
Thanks
Cleber
library( MethComp )
library(
2017 Dec 21
1
develop.raw error ( adimpro )
Hello all,
I'm trying to use the adimpro package to read RAW files (image). Make
readins is OK!
> r <- read.raw( '20171218_210956.dng', type='RAW', compress=FALSE )
> summary( r )
> ### cut the many lines...
Filter pattern: GR/BG
> extract.info( r )
[1] "GR/B"
>
To next, develop the raw file using the "develop.raw" function.
But the
2013 Aug 25
3
POSIXct bug for conversion of specific combinations of date and time
Hello everyone,
I'm having a big trouble with which seems to be a bug in as.POSIXct()
date-time conversion. I have massive GPS datasets in which each location
has it's own date and time attribute. As I convert them to POSIXct format,
1300 cases (of about half a million locations) simply return NA values.
I picked up a small sample of failed cases and normal cases to demonstrate
the
2011 Jan 03
7
Saving objects inside a list
Hello there,
any ideas on how to save all the objects on my workspace inside a list
object?
For example, say my workspace is as follows
ls()
[1] "x" "y" "z"
and suppose I want to put these objects inside a list object, say
object.list <- list()
without having to explicitly write down their names as in
object.list$x = x
object.list$y = y
object.list$z = z
Is
2010 Nov 17
2
Numerical integration
Hi!
I was wondering if there are any other functions for numerical integration,
besides 'integrate' from the stats package, but which wouldn't require the
integrand to be vectorized. Oh, and must be capable of integrating over
(-inf,+inf).
Thanks in advance,
Eduardo Horta
[[alternative HTML version deleted]]
2010 Dec 13
2
Integration with LaTex and LyX
Hello,
Are there any packages which allow for a good integration between R and
LaTex / LyX? I'm interested mainly in automatic (automagic?) imports of
plots/graphics.
Thanks in advance and best regards,
Eduardo de Oliveira Horta
[[alternative HTML version deleted]]
2010 Nov 16
2
Vectors out of lists?
Hello there
I have a list, Y, and each component of that list is a real-valued function
(that is, Y[[i]](u) returns a number).
I was wishing to build the mean function and the first thing I thought of
was
Ybar<-function(u){
mean(Y[[1:n]](u))
}
but obviously this doesn't work, since Y[[1:n]] is not allowed at all.
Any elegant suggestions? I really would like to avoid something like
2012 Nov 08
1
the results of the SORT function differ from Scilab/Matlab for Complex Numbers
Hello useRs,
The results of the SORT function differ from Scilab/Matlab for Complex
Numbers in my example.
This design is the desirable in R?
Thanks.
Cleber
r <- c(
1.7507+0.1689i, 1.7507-0.1689i, 1.3886+0.0000i, 1.0458+0.0792i,
1.0458-0.0792i,
0.8279+0.1861i, 0.8279-0.1861i, 0.8263+0.3731i, 0.8263-0.3731i,
0.6548+0.0000i
)
> cbind(sort(r, d=T))
[,1]
[1,]
2012 Apr 26
0
Some graphical parameters don't works in plot.table and plot.TukeyHSD.
Hello all,
I would like to relate this behaviour of: plot.table & plot.TukeyHSD.
They don't work with some graphical parameters.
Thanks for your attetion.
Cleber
> ### example:
> plot( table(1:10), cex.axis=0.6)
> plot( table(1:10), las=2)
>
> tukaov <- TukeyHSD( aov(breaks ~ wool + tension, data = warpbreaks) )
>
> plot( tukaov, main='xxx' )
Error
2011 Jan 26
0
Greek letters in CairoPDF
Hello there,
Straight to the point: it seems that CairoPDF from package "Cairo"
cannot handle greek letters from expression(). For example,
> eta = seq(from=-pi, to=pi, length=100)
> f = sin(eta)^2
> pdf(file = "temp_pdf.pdf")
> plot(eta, f, type="l", main=expression(f(eta)==sin(eta)^2), xlab=expression(eta), ylab=expression(f(eta)))
> dev.off()
2017 Dec 26
0
Unexpected behaviour of windowsFonts() when Rdevga is edited
Hi folks,
?
Running R in a Windows machine:
?
> sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)
?
Matrix products: default
?
locale:
[1] LC_COLLATE=Portuguese_Brazil.1252? LC_CTYPE=Portuguese_Brazil.1252? ?
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C? ? ? ? ? ? ? ? ? ? ??
[5]
2009 Dec 22
0
Embed Fonts in All EPS files inside a Directory
Hi List, I would like to embed some fonts (AFM format) on 324 eps files
produced by a R loop, I’m able to do so one-by-one with the following
command:
embedFonts('C:/Users/Rodrigo/Documents/UFPR/Micropaleontologia/Potiguar/Cata
logo/Mapas/EPS/Example.eps',
outfile='C:/Users/Rodrigo/Documents/UFPR/Micropaleontologia/Potiguar/Catalog
o/Mapas/EPS/Example2.eps',
2011 Mar 27
1
gtk, RGtk2 and error in callback: delet_event in mai window
Hello All,
I am trying to learn about the GUI in R (with GTK+Glade+RGtk2) and in my
test I don't get sucess in to make
an callback to destroy the application...
When I try to define an function for "delet-event callback", I get the
error message:
(with mouse click in X window)
*Error in function () : *
* unused argument(s) (<pointer: 0x017ca000>, <pointer:
2011 Jul 21
1
Error: bad index in plotmo functions for MARS model (package earth)
Hello all useRs,
I am tring make a simple surface plot ( 2 by 2 terms of a MARS model
(with earth package)
but I get the follow error message:
> plotmo( mars )
Error: bad index (missing column in x?)
I don't no how to workround this... :-(
I thanks in advanced by some help!
Thanks.
Cleber
###############
>
> ### example code:
> library( earth )
> data( gasoline,