Displaying 20 results from an estimated 600 matches similar to: "Package 'operators'"
2009 Jul 03
6
Remove all spaces from a string so it can be used by assign()
Hi
I have a string "56 Fe [1]" that I would like to use as a variable name by using "assign" however I think the spaces and brackets might be causing R some trouble.
How can I change the string so that it just becomes 56Fe1 and can be used as a variable name.
Thank You
Kurt
_________________________________________________________________
[[elided Hotmail spam]]
2009 Jul 02
1
package post install instructions
Hello,
I've looked in tools:::.install_packages for some sort of hook that
would let packages developers point to further instructions after a
package is installed. For example, some packages need to setup
environment variables, ...
Is there something I have missed ?
Romain
--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|-
2009 Jul 03
4
Function to eliminate blank space within strings?
Is there an specific function
to eliminate blank space within
strings?
Thanks
--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: Agustin.Lobo at ija.csic.es
http://www.ija.csic.es/gt/obster
2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
I am out of my league with this question. The following code starts the java imaging program ImageJ from within R, and displays an image (assuming ImageJ is installed on your computer).
library(RImageJ)
img <- IJ$openImage( file.choose() ) #pick an available .tif file
img$show() # make the image object visible
# An image is now displayed
# find out about the objects involved
>
2012 Jan 19
2
POSIXct value display incorrect for some values
First, the reproducable example, showing how converting from character to
POSIXct to character changes the milliseconds in the first time stamp
though not in the second:
> as.POSIXct('2010-06-03 9:03:58.324')
[1] "2010-06-03 09:03:58.323 PDT"
> as.POSIXct('2010-06-03 9:03:58.325')
[1] "2010-06-03 09:03:58.325 PDT"
This seems to be due to truncation of
2008 Aug 28
1
Interaction between aggregate() and length()
Folks,
I've been running into an odd situation that occurs when I use length()
function with aggregate(), but not with either one separately. Together,
the results looks correct but is given an unexpected name. 'if
(stringsAsFactors) factor(x) else x' instead of just 'x'.
# Numbers work ok
tt <- data.frame(idx=c(1,1,1,1,1,1,2,2,2,2,2,2)
2009 Apr 02
1
Updating a data frame
Folks,
Updating values in a table is simple in SAS or SQL, but I've wracked my
brain looking for an elegant solution in R to no avail thus far. Certainly
this is a common need that's been solved in dozens of different ways.
Given an initial dataframe nn and a smaller dataframe of updates uu, I'd
like to replace the values in
nn <- expand.grid('a'=1:4, 'b'=1:3)
2009 Feb 10
1
aggregate taking way too long to count.
Folks,
I'm checking the structure of a dataframe for duplicate parameters at a
site station (i.e depth should be measured once, not twice), using
aggregate to count each parameter within a site station. The fake data
below has only 26000 rows, and takes roughly 14 seconds. My real data has
750000 rows and I had to stop execution after about an hour. The by()
function is faster, but I
2009 Jul 10
1
RUnit detects parse error, but why?
Folks,
An RUnit test suite is failing after all tests are complete with the
following message:
Error in parse(n = -1, file = file) : unexpected '}' at
620:
621: }
All individual tests work when run individually, and all but one run
within the RUnit test suite. What might be causing this?
A similar error message during package creation was discussed earlier
2012 Sep 27
1
Is there a way to source from a specific Git repository without hardcoding the location everywhere?
Folks,
A small group of us are working together to develop a set of R functions
to support data management and analysis using Eclipse/StatET in a Windows
environment. We are using Git/EGit for version control. We work within
our own repository and occasionally push to a common remote location.
I'd like to have the code source files from the 'local' git repository
without
2005 Oct 07
2
Assign references
Folks,
I've run into trouble while writing functions that I hope will create
and modify a dataframe or two. To that end I've written a toy function
that simply sets a couple of variables (well, tries but fails).
Searching the archives, Thomas Lumley recently explained the <<-
operator, showing that it was necessary for x and y to exist prior to
the function call, but I haven't
2005 Jul 12
4
Calculation of group summaries
I know R has a steep learning curve, but from where I stand the slope
looks like a sheer cliff. I'm pawing through the available docs and
have come across examples which come close to what I want but are
proving difficult for me to modify for my use.
Calculating simple group means is fairly straight forward:
data(PlantGrowth)
attach(PlantGrowth)
stack(mean(unstack(PlantGrowth)))
2009 Dec 08
2
automated image processing
Hi,
I am looking for a R package which is capable to process and analysis pictures of tissues (stained) in an automatic way.
I had a look on biops and EBImage (Bioconductor) but they are not automatic...
Did you already use/know a such package ?
Thanks,
- Martial
_________________________________________________________________
Tchattez en direct en en vidéo avec vos amis !
2009 Jul 08
5
Análisis de imágenes en R
Buenas dias a tod@s,
Quisiera saber si alguien tiene experiencia con el procesamiento de imágenes
(en formatos JPEG o PNG) en R y la búsqueda de similitudes / diferencias
entre ellas.
La idea de lo que me gustaría hacer es: tomar una imagen, cargarla en R y
luego analizar su estructura. Para las dos primeras tareas, la
libreria ReadImages en CRAN me ha sido útil, pero para la segunda, hasta
2011 Apr 19
0
doSMP package works better than perfect, at least sometimes.
Some might have noticed that REvolution Computing released the doSMP
package to the general public about a month and a half ago, which allows
multiple cores to be accessed for parallel computation in R. Some of our
physical habitat calculations were taking an extraordinary amount of time
to complete and required over-weekend runs, which prompted our interest in
this package. What follows
2009 Jun 23
0
RImageJ initial release
Hello,
I've uploaded the initial release (0.0-142) of the RImageJ package to CRAN.
The package allows R to use the facilities of the java based image
processing and analysis platform ImageJ.
See also the announcement on my blog, with a very simple example showing
how to use the package:
http://romainfrancois.blog.free.fr/index.php?post/2009/06/22/using-ImageJ-from-R%3A-the-RImageJ-package
2009 Jun 23
0
RImageJ initial release
Hello,
I've uploaded the initial release (0.0-142) of the RImageJ package to CRAN.
The package allows R to use the facilities of the java based image
processing and analysis platform ImageJ.
See also the announcement on my blog, with a very simple example showing
how to use the package:
http://romainfrancois.blog.free.fr/index.php?post/2009/06/22/using-ImageJ-from-R%3A-the-RImageJ-package
2007 Aug 23
4
Calculating diameters of cirkels in a picture.
Hi,
Maybe this is more a programming questions than a specific R-project question, but maybe there is someone who can point me in the right direction.
I have a picture of cirkels which I took with a digital camera.
Now I want to use the diameter of the cirkels on the picture for analysis in R.
I can use pixmap to import the picture, but how do I find the outside cirkels and calculate the
2013 Mar 05
1
Generating 1-bit and 8-bit BMP files using R
Hi,
I'm trying to use the data which I generate within R to make images in .bmp format to be lateron printed by a printer.
My first thought was the RImageJ package, but this seems to be discontinued. What I am currently doing is generating a matrix of grey values, which needs to be parsed into the right image format. Is anyone aware of a package or rather "easy" way to generate
2010 May 08
1
Error in RImageJ
Hello everybody,
I'm running R under Mac OS 10.6.3 on a MacBook 2.16 GHz Intel Core 2 Duo. I've recently installed R 2.11.0 and the RImageJ library v. 0.1-142. When trying to follow the example given in the package manual and I get the following error:
download.file( "http://www.google.fr/intl/en_en/images/logo.gif", dest = "google.gif" )
trying URL