Displaying 20 results from an estimated 7000 matches similar to: "Question about subsetting data"
2008 Jun 04
1
Similar question about subsetting data
This is just a slight modification of a question I asked earlier. Thanks to all the responders.
I have a data set(Bill) of with 1 variable (var1), with 100 obs that are in ascending order. I want to sample every 10 observations and save them in 10 different groups such as Group1 is obs 1-10 Group 2 is obs-11-20 .... Subset data into the 10 groups, then calculate the mean/0.8 of var1 for each
2001 May 09
7
R-Quant
Greetings,
Does anyone know if R-Quant, http://www.smartquant.com/ an outgrowth of
the statistical package "R"?
Bill Vedder
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the
2012 Nov 14
2
aggrete data from combination
Dear R users,
A have a dataframe (matrix) with two collumns (plot, and diameter (d)). I
want all diameters values for different combination of plots.
For example I want all d values for all posible combination, 100C2 (all d
values for plot 1 with all d values in the plot 2.......with all d values
from plot 1 with all d values from plot 100, ...... with all d values from
plot 99 with all d values
2011 May 01
2
bwplot in ascending order
Can anyone point me to examples with R code where bwplot in lattice is used to order the boxes in ascending order? I have found the following discussion and it partly works. But, I have a conditioning variable, so my example is more like
bwplot(var1 ~ var2|condition, dat)
Th example in the discussion below works only when there is not a conditioning variable as far as I can tell. I can tweak the
2008 Jan 02
2
Subsetting data frame problem....
Dear R users,
I'm new but already fascinated R user so please forgive for my
ignorance. I have the problem, I read most of help pages but couldn't
find the solution. The problem follows....
I have large data set 10,000 rows and more than 100 columns... Say
something like
var1,var2,var2,var4.......var120
-------------------------------------------
12,12,345,657,67,8.....
2012 May 30
2
Sorting a data set
I am a novice user of R and am stumbling on how to order a dataset
produced during my session.
I have a 1863 row X 14 column dataset that I want to put out to a file.
I want the output sorted by the first column and then by the second
column both in ascending order. The first column is character and the
second is numeric (I hope). I used an "as.numeric" function to assign
that
2008 Dec 07
2
subsetting large data frames.
Hi all,
I have a question regarding subsetting of large data frames. I have two
data frames ?catches? and ?tows? and they both have the same 30 variables
(columns). I would like to select rows in the data frame ?tows? where all 5
specific variables are NOT matched in ?catches. That is to say, the
combination of these 5 variables is unique. One or more of the variables
could be the same but the
2009 Jun 24
2
subsetting data frame using a vector of column names / values
Hello
I have a data frame d with columns "var1", "var2", "var3"
Then I have two vectors:
columns <- c("var2", "var3")
values <- c(0, 1)
Is there a compact way to subset the data frame
using these two vectors and get the result equivalent to:
select (d, var2==0 & var3==1) ?
Thank You
Blazej
2009 Jan 16
2
Winsorizing Multiple Variables
Hi All,
I want to take a matrix (or data frame) and winsorize each variable.
So I can, for example, correlate the winsorized variables.
The code below will winsorize a single vector, but when applied to
several vectors, each ends up sorted independently in ascending order
so that a given observation is no longer on the same row for each
vector.
So I need to winsorize the variable but
2013 Jul 18
1
Bland Altman summary stats for all column combinations
Hello,
I have the following data.frame
structure(list(Study = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L,
8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 1L,
2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L,
16L, 17L, 18L, 19L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L,
11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 1L, 2L, 3L, 4L,
5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L,
2010 Jun 04
1
subsetting a dataframe
Hi there,
> a<-data.frame(c(1,2,2,5,9,9),c("A","B","C","D","E","F"))
> names(a)<-c("x1","x2")
> max(table(a$x1))
[1] 2
>
The above shows the max count for x1 is 2, which is correct. But we can't tell
there are 2 groups that meet this criteria: 2,2 and 9,9.
I then want to extract the
2007 Apr 20
2
sorting data in R
hello,
I'd like know how to sort a data frame in R for example how I should do to sort by Catholic with swiss data frame like below
thanks
Fertility Agriculture Examination Education Catholic Infant.Mortality
Courtelary 80.2 17.0 15 12 9.96 22.2
Delemont 83.1 45.1 6 9 84.84 22.2
2009 Dec 11
2
Data
Hi all,
Imagine I have a matrix and the first colum is a list that repeats the same
names, I want to sum the second column on each unique name on first column.
Imagine this:
Pepe 2
Pepe 3
Pepe 4
Jose 2
Jose 5
Manuel 4
Manuel 2
I want to make a new matrix that calculates and recognizes that there are 3
different names ans sum second column. But a priori I don´t know the list of
the different
2009 Feb 18
1
multidimensional scaling with long form data
I have a dissimilarity dataset with the form:
1 1 dissimilarity value
1 2 ...
1 3
1 4
2 2
2 3
2 4
...
I would like to do nonmetric multidimensional scaling with this data, but I
am having trouble using this format. I would like to either find a function
that accepts this format or find a way to easily convert this format to a
matrix for use with existing functions.
Thanks!
2007 Feb 22
4
Sorting rows of a binary matrix
Hallo,
The command:
x <- 3
mat <- as.matrix(expand.grid(rep(list(0:1), x)))
generates a matrix with 2^x columns containing the binary representations
of the decimals from 0 to (2^x-1), here from 0 to 7. But the rows are not
sorted in this order.
How can sort the rows the ascending order of the decimals they represent,
preferably without a function which converts binaries to decimals
2010 Mar 05
2
"\." vs "\\."
Hola a tod@s,
¿alguien me podría clarificar la diferencia entre "\." y "\\." en el siguiente caso? (He mirado ?regex, ?cat, ?Quotes y FAQ 7.37 y no lo acabo de ver)
> a<-"hola.me.llamo.pepe"
> a
[1] "hola.me.llamo.pepe"
> strsplit(a,"\.")
[[1]]
[1] "" "" "" "" "" ""
2012 Mar 14
2
aggregate
Dear all I am having a vector with large length and I would like to ask you if I can aggregate the values by constant sized windows. For example for the following vector, I would like to take 30 points until the end
and find their mean.
> myData<-seq(1:100000)
>
> c(mean(myData[1:30]),mean(myData[31:60])) #...and so one until the end
[1] 15.5 45.5
I have searched in the R
2006 Jul 24
9
RadRails with Eclipse
Hi all,
who is using RadRails with Eclipse to create RoR applications?
jsn
--
Posted via http://www.ruby-forum.com/.
2016 Nov 17
4
BUG: nopassword doesn't work with CRAM-MD5
On Thursday 17 of November 2016, Aki Tuomi wrote:
> On 17.11.2016 10:14, Arkadiusz Mi?kiewicz wrote:
> > Hello.
> >
> > dovecot 2.2.26.0
> >
> > When testing nopassword extra field
> > (http://wiki2.dovecot.org/PasswordDatabase/ExtraFields) with CRAM-MD5
> > dovecot doesn't allow any password (while it should) and returns
> >
> >
2008 Dec 20
5
Calendar icon for date selection functionality
Hello.
I would like to add date selection functionality using a calendar
icon. Is there a tutorial anywhere I could use?
Thanks in advance.
Pepe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to