Displaying 20 results from an estimated 2000 matches similar to: "lapply item names"
2008 Sep 02
3
Free SQL Database with R
Hi all,
could someone tell me which is the best user-friendly free/open source sql
database system to use with R, particularly as a back-end for a data-hungry
web page?
Thanks in advance.
Kind Regards
Chibisi
[[alternative HTML version deleted]]
2008 Oct 17
1
wrireframe
Dear all,
Does anyone know how to overlay a 3d line on a wireframe plot? I would also
like to be able to keep the legend that you get when using the option:
drape = TRUE
when using the option: shade = TRUE.
In addition, I would like to know how to keep the axes while getting rid of
the box, I use this:
par.box = list(col = NA)
to get rid of the box but that also causes the axes to disappear.
2008 Aug 26
1
plot3d origin
Hi all,
I am trying to do a 3d plot where the x,y,z axes intersects with the origin
(0,0,0) using the plot3d() funtion in the rgl package without success. I
looked back at the past archives on this subject and someone suggested using
djmrgl package. I searched and found it, installed it but when I try to load
it I get the error ...
Error in inDL(x, as.logical(local), as.logical(now), ...) :
2008 Sep 01
1
play3d() translation
Hi All,
I would like to be able to use play3d() to translate the view along a
surface, and zoom in and out. All the examples in play3d() function
description are of rotations.
I would also like to know if there is a method of creating a legend of for
the 3d surface using rgl package.
Thanks in advance.
Chibisi
[[alternative HTML version deleted]]
2012 Jan 12
1
How can I prevent solve.QP from printing the solution progress ?
Dear R Users,
How can I prevent solve.Qp from printing the solution progress ?
Thanks in advance,
Tolga
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at
2008 Nov 11
3
Reading tables using a truncated name
Dear all,
I am trying to read a bunch of csv files using read.table() that are named
"test_xxxxxx.csv" where "xxxxxx" has no particular pattern. Is there a way
of reading all the files by specifying a truncated file name e.g. "test_"
with some wild card characters, or would I have to laboriously create some
vector with the "xxxxxx" names and iterate or
2008 Dec 06
1
snowfall sfInit error
Dear all,
I am trying to execute the simple example in snowfall
http://cran.r-project.org/web/packages/snowfall/vignettes/snowfall.pdf ...
require(snow)
require(snowfall)
sfInit( parallel=TRUE, cpus=2 )
sfLapply( 1:10, exp )
sfStop()
I have installed the snow and snowfall packages in R on a machine with
windows xp, however, after running the "sfInit( parallel=TRUE, cpus=2 )"
line I
2011 Jun 03
2
tkrplot Newbie
Hello,
I am trying to write a tcltk based program that plots/manipulates
xts/xoo time series objects.
I have the code I used from
## http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tkrplot.html :
##
require(quantmod)
require(tcltk)
library(tkrplot)
Sys.setenv(TZ="GMT")
getSymbols("^GSPC", from = "1960-01-01")
Myhscale <- 2.5 # Horizontal scaling
2008 Nov 19
2
do.call and plotting functions ...
I'm trying to write a simple wrapper for plotting functions to make
them print to postscript, something like
ploteps <- function(file, plotFunction, ...) {
args <- list(bquote(...))
# prepare postscript device
do.call(plot, args)
# close postscript device
}
I have inserted the bquote otherwise I get a lot of numbers in the
plot when I plot/hist something. But if I invoke
2009 Apr 14
1
using Sweave, how to save a plot in a given size
Hi,
I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots in a given size. How can I do that ? The code is :
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<<partI, echo=FALSE ,fig=TRUE, include=FALSE>>=
plotFunction()
@
\includepdf[pages=-]{figs/plot-partI}
When I use
2008 Nov 02
0
error in lapply (sorry error in last e-mail)
Dear all,
I am getting a error while using lapply to generate plots. The variable
".name" is used to identify each plot in the "main" variable. The method
worked once but afterwards seems to throw up an error when used in a
different case. The input ...
dataOut <- lapply(names(dataIn), FUN = function(.name){
anotherplotFun(dataIn[[.name]], numb = .name)} )
Throws up the
2010 Feb 17
1
skip lapply item for conditions(RAM, execution time)
Hi,
I use lapply with a function from a package, and every 20th to 50th function execution (out of 500 to 10 000 times) fails for some unknown reason. RAM consumption ever increases (out of limit) and execution time is endless. I am not going to debug the package. (I rather feel like an end-user.)
If it was Java, I'd wrap the function in a try...catch statement like about
try{
2011 Apr 12
0
lapply over list and the respective name of the list item
Hi all,
I find myself sometimes in the situation where I lapply over a list and
in the particular function I'd like to use the name and or position of
the respective list item. What I usually do is to use mapply on the list
and the names of the list / a position list:
o <- list(A=1:3, B=1:2, C=1)
mapply(function (item, name) paste(name, sum(item), sep="="), o,
names(o))
2009 Apr 14
1
using Sweave, how to save a plot in a given size
Hi there,
I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots in a given size. How can I do that ? The code is :
\SweaveOpts{prefix.string = figs/plot, eps = FALSE, pdf = TRUE}
<<partI, echo=FALSE ,fig=TRUE, include=FALSE>>=
plotFunction()
@
\includepdf[pages=-]{figs/plot-partI}
The issue is
2009 Apr 10
0
Sweave, how to save plots with a defined size and how to include several pdf pages on the same line
Hi there,
I'm trying to realise a repport with R and Latex (TeXnicCenter and Miktex for Windows) using Sweave().
I'd like to save my plots with a given size. How can I do that ? The issue is that I have several plots created (but it's not always the same numbers of plots, in depends on the data), so I save them in a .pdf file automatically with Latex. Each plot is on one page of the
2008 Aug 28
0
Loading Bitmapped files
Dear all,
is there a package that I could use to load bit mapped files into R?
Everytime I save a picture as .jpg it loses it's exactness because of some
type of interpolation. If not .bmp or .png then please tell me a free
program I could use to convert those to the bit mapped file type that R will
accept.
Thanks in advance
Kind Regards
Chibisi
[[alternative HTML version deleted]]
2008 Mar 31
1
download.file error
Dear all,
I am looking for a way to work out if a file on the internet exists before attempting to download it using the function download.file(). For example,
using a url that does not exist
url <- "http://finance.yahoo.com/ftse.csv"
destfile <- tempfile()
download.file(url = url, destfile = destfile)
# gives the following response ...
trying URL
2007 Jul 17
2
Combine R2HTML and Rcmd BATCH?
Hi All,
I have an R script that spawns output in the form of an HTML page. This
is done by the R2HTML package.
Now I want to run the same script using Rcmd BATCH. However, it seems
that it is not possible to use R2HTML in this case.
My script ends with this error message:
#########################
Error in dev.print(png, file = AbsGraphFileName, width = Width, height =
Height, :
can only
2010 Mar 08
1
lapply and list indexing basics
I have split my original dataframe to generate a list of dataframes each of
which has 3 columns of factors and a 4th column of numeric data.
I would like to use lapply to apply the fitdistr() function to only the 4th
column (x$isi) of the dataframes in the list.
Is there a way to do this or am I misusing lapply?
As a second solution I tried splitting only the numeric data column to yield
a list
2010 Mar 08
1
lapply and list indexing basics (after realizing I wasn't previously subscribed...sorry)
I have split my original dataframe to generate a list of dataframes each of
which has 3 columns of factors and a 4th column of numeric data.
I would like to use lapply to apply the fitdistr() function to only the 4th
column (x$isi) of the dataframes in the list.
Is there a way to do this or am I misusing lapply?
As a second solution I tried splitting only the numeric data column to yield
a