Displaying 20 results from an estimated 2000 matches similar to: "A Call for a Smaller R Core Package"
2006 Mar 08
1
problem installing RNetCDF
Hello all,
I set 'UDUNITS_PATH' and 'NETCDF_PATH' successfully to my custom places and
then
% R CMD INSTALL RNetCDF_1.1-3.tar.gz
and got this:
...
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for main in -lnetcdf... yes
checking for main in -ludunits...
2010 Jun 03
3
reformat time from hhmm
Hi,
I'm newish to R, a recent convert from Matlab... So far I'm impressed, and
determined to solve the following problem, which seems like it should be
easy:
I have a long (millions of points) data series recorded with a datalogger
that produced a timestamp in 4 columns: Year, Day of Year, Time in (H)HMM
and Seconds. I would like to have R interpret these columns as a time
object and have
2006 Oct 20
1
How to evaluate a Variable Name?
Hi,
I have a dataframe Wash2005, which has daily weather data. I am doing a
regression by month as follows:
# FM10 Regression by Month
# Plot 12 Month of OFM10, FFM10
for(i in 1:12) {
Temp <- subset (Wash2005, MM == i)
assign( paste('Wash2005FM10', strtrim(month.name[i],3),
sep=""),lm(Temp$FM10.1 ~ Temp$FM10))
}
Wash2005FM10Jan, Wash2005FM10Feb, etc holds the
2011 Nov 17
1
how to read a free text file into individual variables
hi ,I am writing a soft package based on R.
But when I try to read a configure file showed as below.
How can I read the parameter in this text file.
How can I read the parameter into each variable in this file ?
configinfo<-scan(file(configfile),ok=TRUE,n=-1)
scan seems need every line have same column ?
configinfo <- readLines(configfile,ok=TRUE,n=-1)
methodnum <-
2010 Jan 25
3
Matching a character in a string
Hello.
Sorry for this very basic question but I didn't find (of didn't understand)
the answer either in the help or in the online guide.
I have a string, let's say "hello". I want to know if there is some
character in it, let's say an 'o'.
I tried
> charmatch("o", strstplit("hello",""))
but it gives NA (why??)
Thinking it may
2011 Mar 10
1
avoid copying big object passed into optimize()
Hello list,
I have the following scenario:
f1 <- function(a)
{
.... # doing things; may need 'a', but does not change 'a'.
g <- function(x)
{
sum(x + a) # Say. Use 'a'; does not change 'a'.
}
optimize(f = g, lower = 0, upper = 1)
}
f2 <- function()
{
b <- runif(100000000000) # Create big object.
f1(a
2011 Jun 30
1
Match strings across two differently sized dataframes and copy corresponding row to dataframe
Hello-
Sorry, this is a bit of a noob question, but I can't seem to progress
it any further.
I have two dataframes which contain a series of strings which exactly
match. The problem is one has more rows than the other (more cases
have been added) and they have been sorted so that they are not in the
same order. The smaller dataframe, though, contains in another column
which has codes
2004 Nov 24
2
an R function to search on Prof. Baron's site
Inspired by the functions that Barry Rawlingson and Dave Forrest posted for
searching Rwiki and R-help archive, I've made up a function that does the
search on Prof. Baron's site (Thanks to Prof. Baron's help on setting up the
query string!):
RSiteSearch <- function(string, restrict="Rhelp", format="long",
sortby="score",
2004 Dec 23
1
searching Jonathan Baron's R Site
First, my site will be down December 27-28 because of a network
upgrade at Penn. It will also be down at least one day before
that, while I upgrade the operating system. (And another day
some time in January because of a planned power outage.)
Second, I have replaced the search engine in my R site:
http://finzi.psych.upenn.edu/
I am now using Namazu instead of HtDig. The direct link to the
2012 Jun 07
1
noexec tmp directory
Hello,
I am fixing up a system for someone and they did not make a separate
partition for /tmp...but I want to make it noexec, nosuid.
I came across a site that said I could skip all the mount/unmount and
new partition stuff (which would probably include downsizing a lvm to
make room for it)... by adding this in fstab
/tmp /tmp bind nosuid,noexec,bind 0 0
and then reboot...
There is
2007 Aug 06
4
Function for trim blanks from a string(s)?
I feel like an idiot posting this because every language I've ever seen has a
string function that trims blanks off strings (off the front or back or
both). Ideally, it would process whole data frames/matrices etc but I don't
even see one that processes a single string. But I've searched and I don't
even see that. There's a strtrim function but it does something completely
2003 Aug 26
3
matching-case sensitivity
Hi All,
I am trying to match two character arrays (email lists) using either
pmatch(), match() or charmatch() functions. However the function is
"missing" some matches due to differences in the cases of some letters
between the two arrays. Is there any way to disable case sensitivity or is
there an entirely better way to match two character arrays that have
identical entries but written
2011 Aug 27
3
ImageMagick : Centos GUI ?
I accidentally discovered 'convert'. It is a command line utility.
Changing a file from png to gif works like this
convert aaa.png aaa.gif
Amazingly simple, powerful and effective.
I've since discovered it has an amazing list of options
convert --help
a manual
file:///usr/share/doc/ImageMagick-6.2.8/www/convert.html
and a web site
http://www.imagemagick.org/
Does anyone
2002 Oct 22
3
Loading packages at startup
> 4) One problem with saving an R session and then restoring it is that
> the packages in use are not reloaded. Quitting an R session and
> saving could write .Rpackages in the current directory (with the
> library recorded if it were not the default). Then restarting a
> session in that directory would restore the loaded packages
> automatically.
I've been
2006 Mar 07
3
Expanding partial names
I'm writing wrappers for some functions that change some of the default
arguments. I'd rather not list all of the arguments for the low level
functions because there are about a dozen wrapper functions, and about
20 arguments to lowlevel. Instead I'm trying something like this:
lowlevel <- function(longname = 1) {
cat("longname = ", longname, "\n")
}
2012 Jan 26
0
Conflicts between 'parallel' and 'Rprof', and between two parallel R sessions
Dear list,
I observed two problems that I suppose are generic.
First, using 'Rprof' to profile a parallel (based on the package
'parallel') code caused
.... Error in unserialize(node$con) : error reading from connection....
Second, on a multicore desktop, I concurrently opened two terminals
and ran two separate R sessions, both running (actually
identical) parallel code (which
2006 Feb 11
0
failed installing hdf5 package--can't find zlib
I use Mac, tried to install the package hdf5-1.6. Its configuration script
can't find zlib, which
apparently exists in my /usr directory. I used
R CMD INSTALL --configure-args=--with-hdf5=/sw
--configure-args=--with-zlib=/usr
hdf5....tar.gz
It still can't find zlib. Is this a bug? Any pointer is appreciated.
Zepu
2006 Feb 11
1
install.packages() failed
I use Mac. I installed R with the download from R-project, so R is in /usr/bin/R.
My TclTk library is installed via fink (although I don't remember I intentionally
installed it) so libtk8.4.dylib is in /sw/lib.
I tried to install the HDF5 package from within R:
>install.packages('hdf5')
and it failed like this
-------
Loading Tcl/Tk interface ... Error in dyn.load(x,
2008 Jun 27
1
Similarity matching with probabilities
Hello,
It's just a strange coincidence that someone posted just very recently a
question about matching. I know there are several match function in the base
package (such as match, pmatch, charmatch, and the gsub etc) but I can't
seem to use them wisely to be able to get what I need.
suppose I have the following strings:
"tets"
"estt"
"rtes7"
2006 Mar 08
0
survival
Dear R-helpers,
We marked 6000 leaves from 5 SPECIES - 10 individuals/species - in two
different TREATMENTs: a control and a dry-plot from which 50% of
incoming precipitation was excluded. We followed those leaves for 42
months and noted the presence and absence at each visit. I then carried
out a Cox Harzard model to see differences in leaf mortality between
parcels and among species over time: