Displaying 20 results from an estimated 1000 matches similar to: "how to implement a circular buffer with R"
2015 Jun 21
2
Trying to re-install ZFS drivers
What should have been a routine upgrade to ZFS 0.6.4.1-1.el6.x86_64
somehow failed, and now I've lost access to a 2T raidz2 array. I've
tried removing all zfs and related packages (spl*), then starting fresh.
For reasons that have have nothing to do with this problem (I don't
think), I'm still booted to kernel 2.6.32-431.29.2.el6.x86_64, and there
are no other kernels installed.
2004 Feb 19
1
piece wise application of functions
Dear all,
After struggling for some time with *apply() and eva() without
success, I decided to ask for help.
I have 3 lists labeled with, each contains 3 different
interpolation functions with identical names:
> names(missgp0)
[1] "spl.1mb" "spl.2mb" "spl.5mb"
>
> names(missgp1)
[1] "spl.1mb" "spl.2mb" "spl.5mb"
>
>
2007 Aug 30
1
Barplot2 using for loop, how to adjust margins?
Hi R-users,
I inted to make multiple plots using for loop. The question is how can
I adjust the left hand side margin of the plot according to the
names.arg argument in barplot2. In every plot I have different
annotations in the y axis and they vary in length. Now when I have
fixed margins
opar <- par(mar=c(3,15,0,2)...
I get the same margins in all of the plots. That leaves lots of white
2010 Jan 18
3
Using the output of strsplit
I successfully combined my data frames, and am now on my next hurdle.
I had combined the data and quarter, and used tapply to count the
entries for each unique date/quarter pair.
ar= tapply(ewrgnd$gw, list(ewrgnd$dq), sum) #for each date/quarter
combination sums the gw (which are all 1)
dq=row.names(ar)
spl=strsplit(dq)
But I need to split them back into the separate date and quarter. So I
used
2005 Jul 20
2
.spl files
I am not certain that this is the right place to post this, but maybe
some kind soul can point me in the right direction if not. And I
apologize if this is the wrong spot...The reason I posted here is that
I recall running across a syslinux changlog that said "..added support
for reading .spl..." files. I want to customize the suse boot up
splash screens (for a CD install). I have been
2002 Nov 25
2
Pspline smoothing
Dear all,
I'm trying to use the Pspline add-on package to fit a quintic spline
(norder =3), but I keep running into a Singularity error.
> traj.spl <- smooth.Pspline(time, x, norder=3 )
Error in smooth.Pspline(time, x, norder = 3) :
Singularity error in solving equations
>
Playing around with the other parameters produces an "unused arguments" error:
> traj.spl
2008 Feb 29
3
Graphic text
Can R handle graphic text ? I mean something like a pop-up message
window or a text widget ?
Thank you so much.
--
Maura E.M
2010 Apr 02
4
Derivative of a smooth function
Dear All,
I've been?searching for?appropriate codes to compute the rate of change and the curvature?of ?nonparametric regression model whish was denoted by a smooth function?but?unfortunately?don't manage to?do?it. I presume that such characteristics from a smooth curve can be determined by the first and second derivative operators.
The following are the example of fitting a
2011 Jan 14
3
RSQLite - How to express(or save) a dataframe as an output?
Dear R helpers
Suppose following is an output due to some R process. I wish to save it as a table in 'temp.db'
df <- data.frame(x = c(5, 4, 3, 11), y = c(25, 16, 9, 121))
library(RSQLite)
write('** Initializing','')
drv <- dbDriver("SQLite", shared.cache = TRUE)
con <- dbConnect(drv, dbname = "temp.db",
2009 Jul 05
2
integrar resultado de splines cubicos
hola soy nuevo usuario de R y necesito crear un objeto p tal que,
p=lambda*integral[f´´(x)^2 dx ]
donde "lambda" es uno de los parametros que resultan de la funcion
"smooth.spline()" y la integral es sobre la derivada 2 de esa misma
funcion...
dos cuestiones:
1) como extraigo lambda de los resultados de smooth.spline() para usarlo
como objeto cuando lo requiera y
2) como
2009 Sep 08
1
Character manipulation using "strsplit" & vectorization
Dear R users,
Suppose I have a data set with inconsistent names for a field.
I desire to make these to consistent names.
i.e
"University of New Jersey", "New Jersey Uni", "New Jersey University" (3
different inconsistent names) to "The University of New Jersey" (consistent
name)
Below are arbitrary data set produced from "state.name" (built
2009 Nov 02
4
Incremental ReadLines
I've been trying to figure out how to read in a large file for a few days
now, and after extensive research I'm still not sure what to do.
I have a large comma delimited text file that contains 59 fields in each
record.
There is also a header every 121 records
This function works well for smallish records
getcsv=function(fname){
ff=file(description = fname)
x <- readLines(ff)
2007 Oct 30
2
Where can I find package "segmented" ?
I tried to install "segmented" from three different repositories but I keep
getting the following message on R window: ... Please, advice where to find
this package.
Thank you in advance.
Maura
> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
Warning: package 'segmented' is in use and will not be installed
> utils:::menuInstallPkgs()
2008 Feb 10
3
R on Mac PRO does anyone have experience with R on such a platform ?
I saw there exists an R version for Mac/OS.
I'd like to hear from someone who is running R on a Mac/OS before venturing
on getting the following computer system.
I am in the process of choosing a powerful laptop 17" MB PRO
2.6GHZ(dual-core) 4GBRAM ....
Thank you so much,
--
Maura E.M
[[alternative HTML version deleted]]
2012 Jun 29
5
puppetmaster init script - bug ?
I''ve configured puppet to use storedconfigs and puppetDB,
If I start the puppet master using the init script puppetmaster I get a permission denied error when a node connects:
Master:
[root@puppet ~]# service puppetmaster start
Starting puppetmaster: [ OK ]
Node:
[root@puppet-slave ~]# puppet agent --test
err: Could not retrieve catalog from remote
2007 Nov 21
3
How can I save a plot ?
I recently installed R 2.6 on Linux/SuSE
When I was running the previous version on Windows I was able to save my
plots from a script.
There was a command "savePlot" that is no more retrieved in the last
version.
In this scenario, how can I tell R to save the currently displayed plot to a
file ?
The "save" command is generic and do not know how to tell R that the plot is
to be
2007 Sep 05
1
How to extract part of an array?
Hi,
How can I extract part of an array? I would like to extract table
Supported from this array. If this is not possible, how do I convert
array to list? I'm sorry this is not an reproducible example.
> spl <- tapply(temp$var1, list(temp$var2, temp$var3, temp$var3), mean)
> spl
, , Supported
07 08
A 68.38710 71.48387
B 21.67742 20.83871
C
2011 Oct 14
1
Multi t tests
hi all
I have R object look like this:
> spl
$SB012XSB044
DPW Cross
1 66.6 SB012XSB044
2 96.5 SB012XSB044
3 78.8 SB012XSB044
4 68.6 SB012XSB044
5 62.0 SB012XSB044
6 72.1 SB044XSB012
7 72.2 SB044XSB012
8 69.6 SB044XSB012
9 87.9 SB044XSB012
10 84.4 SB044XSB012
11 51.9 SB044XSB012
12 65.5 SB044XSB012
$SB012XSB099
DPW Cross
13 100.9 SB012XSB099
14 44.4 SB012XSB099
2007 Oct 30
2
R installation on SuSE 10.3
I have downloaded the source code for Linux.
the ./configure procedure can find gcc but cannot find f77 or f2c
I have looked for the above compiler with Test and installed all what
pertains to Fortran. Still not even the man pages for f77 anf fc2 work >.
Where is f77 and f2c with linux 10.3 ??
Thank you do much
--
Maura E.M
[[alternative HTML version deleted]]
2008 Aug 07
1
recursive root finding
Dear list,
I've had this problem for a while and I'm looking for a more general
and robust technique than I've been able to imagine myself. I need to
find N (typically N= 3 to 5) zeros in a function that is not a
polynomial in a specified interval.
The code below illustrates this, by creating a noisy curve with three
peaks of different position, magnitude, width and