Displaying 20 results from an estimated 2000 matches similar to: "Extract names from vector according to their values"
2012 Jul 22
5
Reorder in decreasing order
reorder() is probably the best way to order the levels in a vector
without manually specifying the order. But reorder() orders by default
in an increasing order: "The levels are ordered such that the values
returned by ?FUN? are in increasing order."
Is there a way to do what reorder() does, but order the levels
according to a _decreasing_ order of the values?
Sverre
2011 Aug 03
1
Extract rows from a matrix according to value in column
Dear helpers,
I'm trying to extract certain rows from a matrix according to the
values the rows have in a certain column. I've been googling for a
while without result.
Here's a reproducible example of a matrix (and the one I was playing
with initially):
> myrepo<-getOption("repos")
>
2011 Jul 17
3
gsub() with unicode and escape character
Dear helpers,
I'm trying to replace a character with a unicode code inside a data
frame using gsub(), but unsuccessfully.
> data.frame(animals=c("dog","wolf","cat"))->my.data
> gsub("o","\u0254",my.data$animals)->my.data$animals
> my.data$animals
[1] "d??g" "w??lf" "cat"
It's not that a data
2011 Jul 11
2
Extract only the values from a row
Dear helpers,
how can I extract only the values from a row in a data frame? Using
[X,] doesn't do the trick:
> data.frame(letters[1:10],letters[11:20])->my.data
> my.data[1,]
letters.1.10. letters.11.20.
1 a k
I would like to be able to extract only the values "a" and "k" without
getting the row names and column names with them.
2011 Aug 15
1
update() ignores object
Hi all,
I'm extracting the name of the term in a regression model that
dropterm specifies as the least significant one, and I'm assigning
this name to an object. However, when I use update(), it ignores this
object. Is there a way I can make it not ignore it? A reproducible
example is below:
> lm(x1~1+y1*y2+y3+y4,data=anscombe)->my.lm
>
2011 Aug 09
1
embedFonts() does not embed fonts?
Dear helpers,
I'm trying out the embedFonts() to embed fonts into my pdf files.
However, when I inspect the new pdf with a program designed to look
for embedded fonts, I see that the fonts have in fact not been
embedded. Below are my calls.
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)
2013 Nov 09
1
Support writing UTF-8 output in Windows
As recently discussed on Stack Overflow, R for Mac OS and Ubuntu (so
probably all Unix systems) can correctly write files with UTF-8
encoding, but R for Windows cannot:
http://stackoverflow.com/questions/19877676/write-utf-8-files-from-r
I strongly suggest that R for Windows should support this feature in
upcoming versions.
Sverre
2011 Jul 14
1
Export Unicode characters from R
Dear helpers,
I am not able to export Unicode characters from R. Below is an example
where the Unicode character is correctly rendered as long as I am stay
within R. When I export it, the character appears only with its basic
code, and the same happens when I import it back into R . I'm using R
2.13.1 in Windows XP.
> funny.g <- "\u1E21"
> funny.g
[1] "?"
>
2009 Nov 10
4
Upgrading R packages on Etch
Greetings,
I've been trying to upgrade R packages on my Debian Etch
(whose other upgrades I have been cheerfully going along
with as they occur).
When I did, just now:
sudo apt-get dist-upgrade
I got:
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages have been kept back:
r-base-core r-cran-boot r-cran-cluster
2010 Nov 20
1
Trying to install R on Lucid Lynx
Hi:
I installed Lucid Lynx amd64 on my system today, dual booted with Win 7.
I've managed to install several packages through the Ubuntu Software
Center with success and also installed texlive. Alas, installing my favorite
software has not been so joyful. I went through the last few months
of posts in this group to find something similar, but to no avail.
After a couple of false starts, I
2008 May 07
2
bug on compilation (PR#11395)
Dear Mr.
Beginning to work on Linux.
I am trying to install R into Ubuntu Gustsy. I installed version 2.5.1 and worked fine. But then I tried to upgrade by adding these lines to sources.list:
deb http://cran.fiocruz.br/bin/linux/debian etch-cran/
deb http://cran.fiocruz.br/bin/linux/ubuntu gutsy/
I introduced the authorization keys (as recommended) and the files were downloaded. But then I
2023 Mar 21
1
Rprofile.site and automatic installation of missing packages
On 21/03/2023 9:58 a.m., PIKAL Petr wrote:
> Hallo Duncan
>
> Tested but does not work so something other must be wrong.
>
> R version 4.2.2.
>> installed.packages()[,"Package"]
> base boot class cluster codetools compiler datasets foreign graphics grDevices grid KernSmooth
2011 Jul 13
1
Ubuntu 10.04 and R: dependency problems
Hello,
I'm not sure if this is the correct place to post this, but please help if
you can.
I have Ubuntu 10.04 OS and was running
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-pc-linux-gnu (64-bit)
I recently had problems using install.packages() to get 'maps' and 'mapproj'
anyway, long story
2017 Apr 25
1
R-3.4.0 and recommended packages
On 2017-04-25 15:50, Dirk Eddelbuettel wrote:
>
> On 25 April 2017 at 14:58, G?ran Brostr?m wrote:
> | hello,
> |
> | I just installed R-3.4.0 from scratch:
> |
> | $ sudo apt install r-base
> |
> | but when I try
> |
> | > library(survival, lib.loc = "/usr/lib/R/library")
> | > fit <- coxph(Surv(exit, event) ~ x, data = mort)
> |
> |
2023 Mar 21
2
Rprofile.site and automatic installation of missing packages
?Startup says: "Note that when the site and user profile files are
sourced only the base package is loaded, so objects in other packages
need to be referred to by e.g. utils::dump.frames or after explicitly
loading the package concerned."
So you need utils::installed.packages and utils::install.packages .
Duncan Murdoch
On 21/03/2023 8:04 a.m., PIKAL Petr wrote:
> Dear all.
2015 Jan 19
2
Unable to install R 3.1.2 on Debian:Testing
Le 18/01/2015 15:55, Dirk Eddelbuettel a ?crit :
>
> On 18 January 2015 at 14:14, Dirk Eddelbuettel wrote:
> | Ok. I will set up a new toolchain for testing then. We need this for Rocker
> | all the time---eg I just put something marvelous into littler which I need in
> | Rocker, yet Debian is frozen with no timeline for release. And it is silly
> | for us to keep rebuilding all
2015 Feb 26
2
Suggestions to improve the info page of /bin/linux/debian
After Johannes set up the CRAN repository for Jessie, I had quite some
trouble figuring out what any user should do to have a running and
up-to-date R in Debian (particularly Testing). Part of the problem is, I
think, the overwhelming documentation on the page "DEBIAN PACKAGES OF R
SOFTWARE" which is provided on CRAN at /bin/linux/debian. Some information
is also lacking in places.
2008 Apr 24
2
r won't start: "r: symbol lookup error: r: undefined symbol: R_Visible" (PR#11265)
Full_Name: Jakob Stoeger
Version: 2.7.0
OS: ubuntu 7.10
Submission from: (NULL) (137.248.74.38)
Hi!
I hope, it is justified to write this email...
I'm relatively new to linux, and haven't worked with r, yet, so please pardon
any things I do not know...
I tried installing r on my computer, and didn't manage to get the program
running.
After having installed littler, typing r into
2009 Jan 13
1
Message: No title available (pre-2.0.0 install?)
Hello All,
I'm actually the system administrator of a UNIX system where several
users use R version 2.6.0. I have a user who is trying to use the SURVEY
package, and when he does, he gets the message:
survey' is not a valid package -- installed < 2.0.0?
When I run the library() command, I get (see below):
Anything that is listed as ** No title available (pre-2.0.0 install?) **
2013 Apr 03
1
R-3.0.0 reg-tests-3.R / survival
"make check" is failing on reg-test3.R with a message that survival was
built with an older version of R. (On my Ubuntu 32 bit and Ubuntu 64
bit machines). Why would "make check" be looking anywhere that it would
find something built with an older version of R?
~/RoboAdmin/R-3.0.0/tests$ tail reg-tests-3.Rout.fail
> print(1.001, digits=16)
[1] 1.001
> ## 2.4.1 gave