similar to: Extract only the values from a row

Displaying 20 results from an estimated 8000 matches similar to: "Extract only the values from a row"

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 02
7
Extract names from vector according to their values
Dear helpers, I can create a vector with the priority of the packages that came with R, like this: > installed.packages()[,"Priority"]->my.vector > my.vector base boot class cluster codetools "base" "recommended" "recommended" "recommended" "recommended" compiler datasets
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 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] "?" >
2005 Apr 07
2
PDC: Logging out from Windows XP SP2 takes a long time
I have samba set up as primary domain controller, and have problems with my Windows XP SP2 machines. Logging in is quick, but most of the time (nine out of ten times) the logout process takes a long time - I do end up rebooting, but once I let it stay and it took a whole hour before it was logged out. It seems to act the same way for all users. Possible sources already eliminated: - I have
2008 Feb 07
5
Row percentages for a table object
I an stumbling on something that is probably very simple, but I cannot see the solution. I have an object generated by the table () function and want to recompute this table so each cell represents the percentage of the corresponding row sum. Of course a dedicated function can be written (which I have done), containing the necessary loops etc., but there should be a simpler way. I'd
2003 Oct 27
1
template homedir confusion
Hi, I have set up Samba 3.0.0 with ADS integration. It works fine, with a workaround for a small oddity. I use template homedirs like this: template homedir = /home/%D/%U On a soon-to-be-retired server running 3.0a19, I have a directory LOCAL (as in LOCAL.DOMAIN.NAME) containing the homedirs - this works as expected from the output of "getent passwd", which shows the homedirs of
2012 Sep 06
1
How to extract p value from the lmekin object obtained by fitting mixed model with function lmekin() in package coxme?
Hi, R experts I am currently using lmekin() function in coxme package to fit a mixed effect model for family based genetic data. How can I extract the p value from a lmekin object? When I print the object in R console, I can see the p value and Z value are just over there. But I can not extract them by the coef() function. kinfit$coefficient$fixed (kinfit is the name of the lmekin object)
2004 Jun 21
1
Syslinux + integrated flash disk
Quick summary: Syslinux stops at "Boot failed". Which, from a quick look at the raw disk image, seems to indicate that the boot sector loads but it fails to load the .sys loader. The details: I've been trying to load Linux (or etherboot...or anything at all that is not NT embedded) into a set of Compaq Evo T20 48/64 for a while now. What I finally managed to do is using the
2011 Jan 30
4
Extract time only from POSIXlt object
How can I extract only the time component from an POSIXlt object? For example if I try the following it still returns both the date and time... >as.POSIXlt(tr.date[1]) [1] "2010-10-18 21:46:53" >as.POSIXlt(tr.date[1],"%H:%M:%S") [1] "2010-10-18 21:46:53" round and trunc don't help... is there an "as.Time" equivalent to as.Date ? Thanks,
2017 Nov 07
5
Missing information in source()
Dear R-help, I am running a Mac under Sierra, with R version 3.4.2 and RStudio 1.1.383. When running head () or tail () on an object in a script using source (<script name>) nothing appears in the output file, but if I use these commands in the normal R window the normal output appears. What am I doing wrong? Tom Backer Johnsen University of Bergen Norway
2006 Feb 09
11
Tranferring R results to word prosessors
I have just started looking at R, and are getting more and more irritated at myself for not having done that before. However, one of the things I have not found in the documentation is some way of preparing output from R for convenient formatting into something like MS Word. An example: If you use summary(lm(....)) you get nice output. However, if you try to paste that output into the word
2008 Oct 24
18
Transferring results from R to MS Word
R-users At the moment I am teaching a course on the use of R for data analysis. Part of course requirements involves the transfer of results from R to something that resembles the APA (American Psychological Associations) type tables to MS Word. Until now I have used the HTML function in the R2HTML library, with a call like this: HTML(summary(model1), file("clipboard",
2008 Apr 26
2
[LLVMdev] ParamAttr Patch - Alignment fix
On Sunday 27 April 2008 00:48:00 Gordon Henriksen wrote: > On Apr 26, 2008, at 17:41, Anders Johnsen wrote: > > Hi Gordon, > > > > Thanks a lot for the feedback. I can see I've been way to > > concentrated on how > > llvm is build, then on this particular patch. I've done the changes > > you have > > suggested and it's now a lot nicer and
2007 Dec 04
6
Is R portable?
Recently I came across an interesting web site: http://portableapps.com/. The idea is simple, this is software that is possible to install and run on some type of USB memory, a stick or one of these hard disks. I can think of a number of situations where this could be handy. In addition memory sticks are getting cheaper and more powerful by the day. So: Is it possible to run R off one of
2007 Nov 02
4
Permutation test, grouped data
I am perfectly aware that this question is not an R question, at least not yet, but I have not succeeded in finding what I want in other ways, so ... What I am looking for are two algorithms, preferabley in Pascal, but other languages may do. For (a) systematic (complete) permutations for grouped data with unequal group sizes, and (b) random permutations for the same kind of data. I know