Displaying 20 results from an estimated 12000 matches similar to: "interactive session"
2010 Sep 16
1
The permutation of one vector into another
Dear R-help-list
I have two character vectors
a <- c("A", "B", "C")
b <- c("A", "C", "B")
Then
sapply(a, function(i) grep(i, b))
computes the permutation of the entries in 'b' needed
to bring 'b' into the same order as 'a'.
I have searched around, but haven't been able to find
any existing function
2011 Apr 22
1
Seeking help re: ? single apply command or an alternative
Dear R-help list,
Sorry to trouble everyone. This seems like it could be achieved with a
single command (? variant of apply), but I am not quite seeing it.
I am trying to multiply one vector (a1 below) by corresponding values in a3
(as determined by matching element in a vector a2). The example below might
be clearer.
a1 <- c(4,3,4,6,8,9,2,3,4,6,7,4)
a2 <-
2010 Aug 31
1
ez version 2.0
The ez package was developed to aid those that are new to statistical
programming. Over the course of several years of helping colleagues
and students learn R, I observed that folks are often initially turned
off R because they have difficulty obtaining SPSS-like results quickly
(SPSS is the dominant environment in my field, psychology). ez
attempts to fill this gap, providing quick and easy
2010 Aug 31
1
ez version 2.0
The ez package was developed to aid those that are new to statistical
programming. Over the course of several years of helping colleagues
and students learn R, I observed that folks are often initially turned
off R because they have difficulty obtaining SPSS-like results quickly
(SPSS is the dominant environment in my field, psychology). ez
attempts to fill this gap, providing quick and easy
2009 Nov 21
4
other decriptive stats packages
i just found the following list, i wondered if anybody could add to this as i
have to characterize a large data set and am new to R...the list below was
so helpful....can you add to this???
Just to forestall confusion amongst those who would like to use one of
the functions called "describe"...
Hmisc package - describe
numeric
name
count of observations
count of missing
2011 Jan 29
1
environment question: changing variables from a formula through model.frame?
Hello all,
I came across a behavior of R with environments that I'm not sure what is
causing it.
It involves changing variables that are found through using model.frame on a
formula inside a function.
I wonder if it's a "bug" or a "feature". And in either case, how it might
be managed.
Here is a simple example:
# let's say we have an x and y variables:
temp_x
2010 Aug 26
1
Passing arguments between S4 methods fails within a function:bug? example with raster package.
Dear all,
This problem came up initially while debugging a function, but it
seems to be a more general problem of R. I hope I'm wrong, but I can't
find another explanation. Let me illustrate with the raster package.
For an object "RasterLayer" (which inherits from Raster), there is a
method xyValues defined with the signature
2010 Aug 26
3
Using termplot() with transformations of x
Hi all
I was playing with termplot(), and came across what appears to be an inconsistency.
It would appreciate if someone could enlighten me:
> # First, generate some data:
> y <- rnorm(100)
> x <- runif(length(y),1,2)
> # Now find the log of x:
> logx <- log(x)
>
> # Now fit two models that are exactly the same, but specified differently:
> m1 <-
2011 Apr 17
5
cube root
This is some interesting:
> -8^(1/3)
[1] -2
> x=(-8:8)
> y=x^(1/3)
> y
[1] NaN NaN NaN NaN NaN NaN NaN NaN
0.000000 1.000000
[11] 1.259921 1.442250 1.587401 1.709976 1.817121 1.912931 2.000000
So, can anybody explain this?! (Why is x[1]^(1/3)=y[1]=NaN, but
-8^(1/3)=-2?)
Thx!!!
[[alternative HTML version deleted]]
2017 Dec 20
1
[ESS] R window: Text is read only (: Another round :)
Dear All
Working along in R (Emacs {Aquamacs}, ESS ) usually I am getting a long
R buffer with many rows. To reduce its length, I used to select
backwards and delete those unnecessary rows. Now I cannot do that, only
C-k allows single lines to be deleted. the mode line says 'Text is
read-only *R*>'. Both R and ESS are up to date.
Aquamacs 3.3 GNU Emacs 25.1.1
2010 Sep 03
1
'seq' help page: seq_length -> seq_len?
In the Value section of the 'seq' help page it says
'seq_along' and 'seq_length' always return an integer vector.
I believe it should be
'seq_along' and 'seq_len' always return an integer vector.
as there are no seq_length function?
Best, Niels
--
Niels Richard Hansen Web: www.math.ku.dk/~richard
Associate Professor
2011 Apr 14
2
Krylov subspace computations of matrix exponentials
I use the very nice expm functions available from the expm and Matrix
packages. My understanding is that for large sparse matrices the
currently best methods available are Krylov subspace methods, but
they are as far as I can tell not implemented in either of the packages
mentioned, nor in any other R package I have found.
Does anybody know if Krylov subspace methods are available from
any R
2013 Jan 12
1
Aquamacs Preferences not showing, windows inaccessible, Scrolling not possible !!!
Hi, sorry for bothering, but I suspect the start of M-x R within
Aquamacs is causing my problems:
*Scrolling* is *not possible*, neither by key stroke nor by mouse.
Aquamacs does not show all windows. 'Prefences', 'About A.', 'Check fo
updates' will not open. Menu 'windows' shows several windows, but
clicking on them will not open their buffers. Also,
2008 Oct 23
2
What editors can I get R in Mac OS X to talk to?
All,
Apologies if this was already answered... I couldn't find an answer that
specifically addressed Mac OS instead of either windows or linux. I use
"aquamacs emacs" as my text editor. It is essentially Xemacs with a GUI
that looks closer to standard Mac GUIs, as far as I can tell. I installed
the GUI-friendly Mac version of R. I can have R choose the aquamacs as the
editor
2005 Aug 11
6
Need just a little help to start a rails app
I''m very new to Ruby and RoR, have been trying to get it working with no
success. I''m on Ubuntu, installed Rails correctly, run scripts for model,
controller and scaffold no problem, installed fcgi which now appear in apache
header. When I point browser to http://localhost/tada/public/category I get:
Not Found
The requested URL /tada/public/category was not found on this server.
2005 Jun 23
7
where s filtering done?
hello,
I am trying to find where filtering is done in order to drop packets
randomly there (eg.10%of them) for a testing purpose in a school
project.
I want to do this after packet is filtered and before being sent. I d
aprreciate if you could help or suggest.
Thanks.
2006 Apr 05
1
Installing Rails for emacs on OSX - emacs newbie
I''m a newbie to emacs trying to set up emacs Rails on a clean emacs
installation. I''m using Aquamacs: http://aquamacs.org/.
Basically, I''ve gotten to the part where I have to install the cedet
package to install ECB to install Rails to ? you get the idea. I''ve
forgotten all of my feeble Linux commands and have no idea what I need
to do to install the packages,
2010 Sep 30
1
Assignment to a slot in an S4 object in a list seems to violate copy rules?
Dear R-developers
I came across the following issue, which I find strange:
setClass("A", representation(a = "numeric"))
B <- list()
myA <- new("A", a = 1)
B$otherA <- myA
B$otherA at a <- 2
myA at a
Assigning a new value to slot 'a' in the _copy_ of myA stored
in B$otherA changes the original value of myA -- this was
surprising to me, and I
2007 May 16
5
drop a letter
hello,
how can I do to drop C from this character "C325" ?
_____________________________________________________________________________
[[alternative HTML version deleted]]
2010 Dec 11
1
'identical' and the warning "ignoring non-pairlist attributes"
Dear R developers
Using the 'foreach' package I encounter warnings like
Warning message:
In identical(.combine, cbind) : ignoring non-pairlist attributes
Warnings appear once in a new R-session when I run a
particular piece of code - and not again. I understand from
the source code of 'identical' that the function checks and
believes that .combine and cbind have non-pairlist