Displaying 20 results from an estimated 200 matches similar to: "lists on a script"
2011 Mar 10
2
within group sequential subtraction
Hi Everyone,
I would like to do sequential subtractions within a group so that I know the
time between separate observations for a group of individuals.
My data:
data <- structure(list(group = c("IND1", "IND1", "IND2",
"IND2", "IND2", "IND3", "IND4", "IND5",
"IND6", "IND6"), date_obs =
2011 Aug 10
2
choosing selective data with permutations
Hello,
I am a R beginner and hoping to obtain some hints or suggestions about
using permutations to sort a data set I have.
Here is an example dataset:
Ind1 11 00 12 15 28
Ind2 21 33 22 67 52
Ind3 22 45 21 22 56
Ind4 11 25 74 77 42
Ind5 41 32 67 45 22
This will be read into a variable using read.table. What I want to do
is permute these individuals and every
2017 Nov 18
0
Using cforest on a hierarchically structured dataset
Hi,
I am facing a hierarchically structured dataset, and I am not sure of
the right way to analyses it with cforest, if their is one.
- - BACKGROUND & PROBLEM
We are analyzing the behavior of some social birds facing different
temperature conditions.
The behaviors of the birds were recorder during many sessions of 2 hours.
Conditional RF (cforest) are quite useful for this analysis
2011 Mar 09
2
Cleaning date columns
Hi Everyone,
I have the following problem:
data <- structure(list(prochi = c("IND1", "IND1", "IND1",
"IND2", "IND2", "IND2", "IND2", "IND3",
"IND4", "IND5"), date_admission = structure(c(6468,
6470, 7063, 9981, 9983, 14186, 14372, 5129, 9767, 11168), class = "Date")),
.Names =
2005 Jul 25
0
lda: scaling to 'disctiminant function'
Friends
Briefly...
In the documentation for lda in MASS it describes the value 'scaling' as
'a matrix which transforms observations into discriminint functions...'.
How?
Verbosely...
I have a matrix of data. 9 independent variables and describing
3-classes. About 100 observations in total. A 10x100 matrix of data.
I am trying to generate two discriminant functions and i
2009 Sep 11
2
Accumulating results from "for" loop in a list/array
Dear R users,
I would like to accumulate objects generated from 'for' loop to a list or
array.
To illustrate the problem, arbitrary data set and script is shown below,
x <- data.frame(a = c(rep("n",3),rep("y",2),rep("n",3),rep("y",2)), b =
c(rep("y",2),rep("n",4),rep("y",3),"n"), c =
2009 Aug 09
1
problem adding columns to matrix
Hi all, i purchased a copy of the book Morphometrics with R by Springer.
at the end of each chapter there are exercises to train what you just
read and (hope) learned...
so i have this problem:
Define a hypothetical data frame containing five measurments normally
distributed(size,head,pectoral,area,weight) for four individuals
(named ind1, ind2, etc). ADD A COLUMN corresponding to the
2011 Dec 05
1
Subsetting a data frame
Hi R users,
I really need help with subsetting data frames:
I have a large database of medical records and I want to be able to match
patterns from a list of search terms .
I've used this simplified data frame in a previous example:
db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1,
2, 1.3, 3), test2 = c(56L, 27L, 58L,
2011 Oct 05
2
Subsetting a data frame with multiple values and exclusions.
Hi all,
I realise that the convention is to provide a working example of my problem
but the data are of a sensitive nature so I'm not able to do that in this
case.
I need to query a database for multiple search terms:
db <- structure(list(ind = c("ind1", "ind2", "ind3", "ind4"), test1 = c(1,
2, 1.3, 3), test2 = c(56L, 27L, 58L, 2L), test3 =
2008 Oct 29
1
Subsetting data in a loop
I need some help with sub-setting my data. I am trying to divide a data frame into multiple data frames based on the year collected, and stored in a list with each new data frame labeled with "year X" where X is the year the data was collected. When I run my current code I get nine error messages stating
"In one_year[name] <- myear : number of items to replace is not a
2012 Aug 04
2
find errors in a directory of files
hello list,
I'm trying to write a script that will search through a directory of trace
logs for an oracle database. From what I understand new files are always
being created in the directory and it's not possible to know the exact
names of the files before they are created. The purpose of this is to
create service checks in nagios. Because you don't know the names of the
files ahead
2006 Mar 03
3
Pluralisation issue?
I''m having trouble with rails and a table named ''dives''. It seems to
work fine if I try it with another table name. I''ve generated the
scaffold with the script and have not made any modifications to it. When
I try to run the dives controller it starts looking for ''dife.rb'' and
fives me ''uninitialized constant Dife''.
Is this a
2012 Apr 30
3
95% confidence interval of the coefficients from a bootstrap analysis
Hello,
I am doing a simple linear regression analysis that includes few variables.
I am using a bootstrap analysis to obtain the variation of my variables to
replacement.
I am trying to obtain the coefficients 95% confidence interval from the
bootstrap procedure.
Here is my script for the bootstrap:
N = length (data_Pb[,1])
B = 10000
stor.r2 = rep(0,B)
stor.r2 = rep(0,B)
stor.inter =
2011 Dec 04
1
similarity matrix
Hello R-users,
I've got a file with individuals as colums and the clusters where they occur
in as rows. And I wanted a similarity matrix which tells me how many times
each individual occurs with another. My eventual goal is to make
Venn-diagrams from the occurence of my individuals.
So I've this:
cluster ind1 ind2 ind3 etc.
1 0 1 2
2 3 0 1
3
2011 Dec 04
2
frequency table?
Hello R-users,
I've got a file with individuals as colums and the clusters where they occur
in as rows. And I wanted a table which tells me how many times each
individual occurs with another. I don't really know how such a table is
called...it is not a frequency table....My eventual goal is to make
Venn-diagrams from the occurence of my individuals.
So I've this:
cluster ind1 ind2
2011 Dec 03
1
pivot table help
Hello R-users,
I've got a huge table with about 20.00 rows and 50 columns. The table now
has headers as Members1, Members2 etc. My data are 8 different individuals.
And I've got a column with clusters. So each individual belongs to different
clusters and can occurs multiple times within a cluster (that's the reason
that there can be more than 8 members). I want a presence/ absence
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 Aug 18
2
Porcentajes por grupos
Hola Eric.
Muchas gracias por tu respuesta.
Intenté hacer lo mismo sobre una variable agregada a datos, de modo:
datos$p_Valores <- datos[, Valores/sum(Valores), by=MesAño]
pero no funciona, porque pega un data.table en una única variable:
In `[<-.data.table`(x, j = name, value = value) :
Supplied 2 items to be assigned to 5849 items of column 'pValores'
(recycled leaving remainder
2015 Aug 05
2
EFI: HP + syslinux = crash
On 05-08-15 15:28, Gene Cumm wrote:
>>> 0x2f8 is a BIOSism.
>
>> Is this a problem? The example in the comments said 0x3f8 which is COM1.
>
> It means that a BIOS IO port for a UART won't work for EFI. No value
> for DEBUG_PORT will do anything unless someone's got some translation
> "glue" to take the attempts to open the UART and use an EFI handle
2009 Aug 08
2
[LLVMdev] Initial cut at a instruction raising patch
Chris Lattner wrote:
> How do you plan to handle things like arbitrary precision integers,
> etc? It seems like you'll end up duplicating a ton of codegen logic
> to handle this.
Maybe I'm not being very clear. I want this replacement to be done at
the very last minute (before unreferenced functions are removed, of
course).
I only want to catch libgcc-ish functions.
For