Displaying 20 results from an estimated 1300 matches similar to: "Using '[' as a function"
2010 Aug 26
3
Non-standard sorts on vectors
I have a dataset I need to sort:
test.df<-data.frame(Zone=c("Floodplain", "Lake",
"Shoreline"),Cover=c(50,60,70))
However, I don't want it sorted ascending/descending but in an order that I
define via a vector:
sort.v<-data.frame(c("Lake","Shoreline","Floodplain"))
I realize I could probably just create the vector of
2011 Mar 29
2
List extraction
I have created a list of tables with the same columns but different number of
row.
Example (actual list has ~200 elements):
> temp1<- data.frame(ID=c("Herb","Shrub"),stat=c(4,5),pvalue=c(.03,.04))
> temp2<- data.frame(ID=c("Herb","Shrub",
> "Tree"),stat=c(12,15,13),pvalue=c(.2,0.4,.3))
> L<-list(a=temp1,b=temp2)
> L
$a
2002 Jul 18
4
rsync anti-FUD
I'm working on a commercial project that would benefit immensely from
the use of rsync. However, I cannot convince management that rsync is a
worthy tool due to the rote "it's shareware, it's not supported" FUD.
Are there any documented, corportate users of rsync? Testimonials? In
short, how do I drag this risk-averse group out of the FTP age into the
rsync present?
/p
2010 Jun 09
1
generate list of variable names
Hi!
Would anyone know how to generate a list of variable names from a data frame by the class of the variable?
I have large tables with different numbers of columns and am trying to script some rote analyses. There are several categorizing variables (factors) and many response variables (integers and numeric). I want to extract a list of classifier column names in one list and response variable
2006 Oct 28
1
(kein Betreff)
Frank Harrell rote in a message dating from Oct 8th:
> n.group is an argument to latex.default in the Hmisc package
I must admit that I can't find it in the function head,
which reads on my installation:
function (object, title = first.word(deparse(substitute(object))),
file = paste(title, ".tex", sep = ""), append = FALSE, label = title,
rowlabel = title,
2010 Feb 18
2
Extracting values from a list
I have run a kruskal.test() using the by() function, which returns a list of
results like the following (subset of results):
Herb.df$ID: 4-2
Kruskal-Wallis chi-squared = 18.93, df = 7, p-value = 0.00841
--------------------------------------------------------------------
Herb.df$ID: 44-1
Kruskal-Wallis chi-squared = 4.43, df = 6, p-value = 0.6187
So then, how do extract a vector
2010 Feb 18
2
subset() for multiple values
This code works:
subset(NativeDominant.df,!ID=="37-R17")
This code does not:
Tree.df<-subset(NativeDominant.df,!ID==c("37-R17","37-R18","10-R1","37-R21","37-R24","R7A-R1","3-R1","37-R16"))
how do i get subset() to work on a range of values?
--
View this message in context:
2014 Dec 17
5
[LLVMdev] How to figure out what #includes are needed?
This is partly an llvm question, and maybe partly C++.
I am trying to make calls on code in the llvm infrastructure.(3.4.2) I appear
to be missing some include files, but don't know how to track them down. I get
compile errors on existing llvm header files, like the following two examples:
--------------------------------------------------------------------------------
In file included
2009 Aug 19
2
how do i vectorize relational queries in R
I am basically trying to append a value(vector) to one dataframe using a
relational value from another dataframe. Obviously, I can use a loop to
accomplish this. However, is there a way to vectorize it?
Example:
> data <- data.frame(c(1,1,1,2,2,2,3,3,3),rep(2,9)); names(data) <-
> c("Sample","Score")
> meta <-
2004 Sep 22
3
IE under wine.
Does intenet explorer work under wine?
Thanks
Chip
--
Ralph "Chip" Blach
IBM LTC
Raleigh, North Carolina
919 543 1207
2005 Dec 13
3
Features for next webgen release
| Ross Bamford wrote:
|
| On Tue, 13 Dec 2005 12:50:08 -0000, Thomas Leitner <thomas_leitner at
| gmx.at> wrote [in comp.lang.ruby]:
|
| > I''m currently gathering ideas for new features for the next big
| > webgen release (0.4.0). Some of the planned features are:
| >
| > * RSS feed generation (proposed by Friz Heinrichmeyer)
|
| That would be very nice -
2009 Sep 29
1
vectors levels are carried through to subsets...
I have a dataset. Initially, it has 25 levels for a certain factor,
Description.
However, I then subset it, because I am only interested in 2 of the 25
factors. When I subset it, I get the following. The vector lists only the
two factors, yet there remain 25 levels:
> Quadrats.df$Description
[1] Emergent 25x75 Emergent 25x75 Emergent 25x75 Emergent 25x75
Emergent 25x75 Emergent 25x75
2009 Sep 29
1
Interesting function in a function problem....
#I have these data. Basically, I want to run a tapply to calculate the mean
and st. err. by factor.
#The problem is, I want to add a finite correction to the variance prior to
calculating the standard error.
#Now I know I could just do this in 3/4 steps by calculating the var,
applying the correction, then calculating the StErr.
#However, I am trying to learn about functions and how they work. So
2013 Nov 19
6
[PATCH 2/5] X86 architecture instruction set extension definiation
From eee3a3d3072651327453220876ebe9a7345d6ffe Mon Sep 17 00:00:00 2001
From: Liu Jinsong <jinsong.liu@intel.com>
Date: Tue, 19 Nov 2013 18:44:45 +0800
Subject: [PATCH 2/5] X86 architecture instruction set extension definiation
Intel has released new version of Intel Architecture Instruction Set
Extensions Programming Reference, add new features like AVX-512, MPX, etc.
refer
2009 Sep 29
1
axis scale issues....
I have read all the help on axis scales, which seems to be much harder to
deal with than it should be, given how common the need to alter axes.
Anyway....yeah, suppress the axis using yaxt then call and define the new
scale using axis().
The problem is, this doesn't change the actual axis, only the text.
Example:
plot(1:length(TreeDensity.df$Description[which(TreeDensity.df$Description ==
2009 Jul 13
1
Help get this simple function to work...
I have a function (see below). This function has one object, ID. If I run
the loops by themselves using a character value (ie,"VFFF1-7") instead of
the function object, then the loops work fine. However, when I try to
insert the character value via the function call, it doesn't work. I don't
get an error, but the TotalCover.df dataframe does not update according to
the loop
2010 Jan 20
7
Data Manipulation
Dear All,
I would like to to group the Ticker by Industry and create file names from
the
Industry Factor and export to a txt file.
I have tried the folowing
ind=finvizAllexETF$Industry
ind is then "Aluminum" "Business Services" "Regional Airlines"
ind2=gsub(" " ,"",ind)
ind3
[1] "Aluminum"
2016 Sep 09
2
¿Cómo generar tabla apaisada salida PDF con RMarkdown?
Muchas gracias, Jos Antonio y Carlos.
Estaba por escribir sandeces varias. Comento, por si hay algn lector,
que como yo, se guarda los correos con respuestas a problemas posibles.
No estaba usando|header.tex|, que es necesario para una como para otra
solucin.
El encabezado queda as:
|---||
||title: "Tablas que no entran"||
||author: "Sandia Urlia"||
||date: ""||
2006 Mar 07
6
[PATCH] Allow Ajax.InPlaceCollectionEditor to load collection externally
Attached is a patch to allow Ajax.InPlaceCollectionEditor to load the
collection using AJAX.
It adds a new option, loadOptionsURL, which is the URL used to load the
values over the interweb. It expects the server to return
<option></option> values. If one of them has a selected="selected"
attribute, it will probably be pre-selected. Not tested that though.
Also only tested
2011 Jan 07
2
Idea to possibly improve flac?
On Fri, Jan 7, 2011 at 3:56 PM, David Richards <rawdod at gmail.com> wrote:
> Its really sad to hear thats happening but even more sad is the fact
> that flac is becoming a very common format for music on the interweb
> whilst at the same time the development has ceased. I've found some
> severe issues with OggFLAC that essentially make it a useless format
> for streaming,