search for: 1l

Displaying 20 results from an estimated 1951 matches for "1l".

Did you mean: l1
2013 Mar 08
2
Coversion from yearly to weekly data
Dear all, I have a big data matrix and I want to convert those data into weekly basis which means 7 days needs to be avaraged and aggregate a single value > dput(test) structure(list(locid = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L...
2012 Oct 17
2
Setting all rows of a certain level to NA in a factor
...39;Yes')) summary(B20_A) No Yes NA's 0 149 580 to my surprise, 'No' is also set as NA, why is this happening? I am a frequent SPSS user and I am surprised that this operation does not seem to be so straight forward in R. Thanks my object is defined below. structure(c(4L, 1L, 4L, 4L, 1L, 3L, 1L, 3L, 1L, 1L, 1L, 3L, 1L, 3L, 3L, 1L, 1L, 4L, 1L, 4L, 4L, 3L, 1L, 3L, 4L, 3L, 4L, 3L, 3L, 1L, 1L, 3L, 1L, 3L, 4L, 4L, 3L, 1L, 1L, 4L, 4L, 3L, 3L, 3L, 1L, 3L, 3L, 3L, 1L, 4L, 1L, 4L, 1L, 1L, 1L, 3L, 3L, 1L, 4L, 4L, 3L, 1L, 1L, 4L, 4L, 3L, 1L, 1L, 3L, 1L, 4L, 3L, 3L, 3L, 1L, 4L...
2011 Apr 17
1
side by side histogram after splitting data by year
...ut I'm not sure how I'd do this. I want to explore the possibilities that jays are altering their strategies in different years. Data are below. This is a common need for myself so any help would be greatly appreciated! Thanks, Jeff structure(list(year = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L...
2008 Jul 06
2
lattice question
...but I don't know the lattice package well enough to figure out the former or the latter. I spent today trying but with no success. Thanks. #DATA STRUCTURE CODE #================================================================================ pdata<-structure(list(Var.1 = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 1L, 2L, 3L, 4L, 5L, 6L...
2012 Mar 05
2
Running Total
I'm am trying to create a vector that has a running total that adds each time a 1 occurs. here's the code and data c(1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 0L, 1L, 1L, 1L...
2017 Jul 30
1
Add Anova statistics in each figure
...lly only interaction ( example treatment*control F(XX, XX) = xxx, p = xxx) into figures, but i was not able to add. Would you mind to help on how I can add information into each figure? I have attached the example data and the code that I used for this. dat<-structure(list(Sites = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1...
2011 Jun 09
1
lattice plot query
...xyplot function of library(lattice) to get this sorted out. ##the data for illustrative purpose..is as follows: MyData<- structure(list(Subj = structure(c(3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 9L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 10L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 7L, 7L, 7L, 7L, 7L, 7L, 7L, 7L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 8L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 11L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 4...
2009 Oct 06
2
ggplot cumsum refined question (?)
...L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L, 21973269L), agency = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L...
2009 Jan 12
1
Determining variance components of classed covariates
...10.3220768104446, 8.55132985773453, 10.1678182524815, 10.6145417864386, 10.4169948161073, 10.0253039670548, 10.2568017077865, 10.5045847076951, 9.75993936712448, 8.99997092895909, 10.6742222414794, 10.8640943324257, 10.4295384371541, 10.1987862649656, 10.6744617172313), rs11834524 = structure(c(1L, 2L, 2L, 3L, 2L, 3L, 3L, 2L, 3L, 2L, 3L, 2L, 1L, 2L, 2L, 2L, 1L, 1L, 3L, 3L, 1L, 1L, 2L, 2L, 1L, 2L, 1L, 2L, 2L, 3L, 3L, 3L, 2L, 1L, 1L, 3L, 2L, 2L, 3L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 2L, 2L, 2L, 3L, 2L, 3L, 3L, 2L, 3L, 1L, 2L, 1L, 1L, 3L, 1L, 2L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 1L, 2L, 2...
2008 Jul 31
2
dput vs unclass to see what a factor really is composed of
...to see what this variable *really* is, in R. For instance, sometimes R converts a 0/1 variable into a 1/2 variable when it considers it a factor. The "dput" function often enables me to see what a variable really is, but in this case it tells me that the components of the factor are "1L" and "2L", that is, "one uppercase ell" and "two uppercase ell." What does the uppercase ell mean? In this case, "unclass" seems to enable me to see what the variable really consists of. But what do "1L" and "2L" mean? > summary...
2017 Nov 07
1
fill histogram in ggplot
...ng data and I have a histogram for mms like ggplot(hist,aes(x=hist$mms))+ geom_histogram(binwidth=1,fill="white",color="black")and then I want to fill the color of histogram by probable=1 and probable=0, could anyone help me in this? My data: structure(list(probable = c(1L, 0L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 0L, 1L, 1L, NA, 0L, 1L, NA, NA, 0L, 1L, NA, 1L, 0L, 0L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, NA, 1L, NA, NA, 1L, 0L, 1L, 0L, 0L, 0L, 1L, 1L, 0L, 1L, 1L, NA, 0L, 0L, 1L, 0L, 1L, NA, 1L, 0L, 0L, 0L, 0L, 0L, 1L, NA, 0L, 1...
2017 Dec 14
2
help with recursive function
...seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta"), ent_num = c(23L, 14L, 43L, 30L, 44L, 60L, 17L, 34L, 41L, 40L, 9L, 36L, 38L, 19L, 61L, 51L, 45L, 42L, 3L, 39L, 21L, 11L, 12L, 7L, 35L, 5L, 70L, 47L, 28L, 16L, 72L, 13L, 49L, 67L, 56L, 32L, 27L, 46L, 24L, 63L, 15L, 66L, 26L, 29L, 48L, 1L, 54L, 37L, 2L, 50L, 52L, 31L, 33L, 25L, 6L, 69L, 53L, 10L, 18L, 55L, 59L, 4L, 58L, 22L, 20L, 64L, 71L, 57L, 11L, 17L, 4...
2017 Dec 14
0
help with recursive function
...ot;seta", "seta", "seta", > "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", > "seta", "seta"), ent_num = c(23L, 14L, 43L, 30L, 44L, 60L, 17L, > 34L, 41L, 40L, 9L, 36L, 38L, 19L, 61L, 51L, 45L, 42L, 3L, 39L, > 21L, 11L, 12L, 7L, 35L, 5L, 70L, 47L, 28L, 16L, 72L, 13L, 49L, > 67L, 56L, 32L, 27L, 46L, 24L, 63L, 15L, 66L, 26L, 29L, 48L, 1L, > 54L, 37L, 2L, 50L, 52L, 31L, 33L, 25L, 6L, 69L, 53L, 10L, 18L, > 55L, 59L, 4L, 58L, 22L, 20L, 64L, 7...
2017 Dec 14
2
help with recursive function
...;, "seta", "seta", >> "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", >> "seta", "seta"), ent_num = c(23L, 14L, 43L, 30L, 44L, 60L, 17L, >> 34L, 41L, 40L, 9L, 36L, 38L, 19L, 61L, 51L, 45L, 42L, 3L, 39L, >> 21L, 11L, 12L, 7L, 35L, 5L, 70L, 47L, 28L, 16L, 72L, 13L, 49L, >> 67L, 56L, 32L, 27L, 46L, 24L, 63L, 15L, 66L, 26L, 29L, 48L, 1L, >> 54L, 37L, 2L, 50L, 52L, 31L, 33L, 25L, 6L, 69L, 53L, 10L, 18L, >> 55L, 59L, 4L, 58L,...
2016 Apr 19
0
Indicator Species analysis; trouble with multipatt
Hi Ansely, As Jim points out we really need some sample data to go with the code. Have a look at ?dput which is the best way to supply sample data here or have a look at http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and/or http://adv-r.had.co.nz/Reproducibility.html for some general suggestions on asking questions here---including discussions of using
2013 Mar 15
1
merge two matrices
Dear R-help members I would be grateful if anyone could help me with the following problem: I would like to combine two matrices (SCH_15 and SCH_16, they are attached) which have a species presence/absence x sampling plot structure. The aim would be to have in the end only one matrix which shows all existing species and their presence/absence on all the different plots(an_1, an_2 etc.) To do
2017 Dec 14
2
help with recursive function
...seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta"), ent_num = c(23L, 14L, 43L, 30L, 44L, 60L, 17L, 34L, 41L, 40L, 9L, 36L, 38L, 19L, 61L, 51L, 45L, 42L, 3L, 39L, 21L, 11L, 12L, 7L, 35L, 5L, 70L, 47L, 28L, 16L, 72L, 13L, 49L, 67L, 56L, 32L, 27L, 46L, 24L, 63L, 15L, 66L, 26L, 29L, 48L, 1L, 54L, 37L, 2L, 50L, 52L, 31L, 33L, 25L, 6L, 69L, 53L, 10L, 18L, 55L, 59L, 4L, 58L, 22L, 20L, 64L, 71L, 57L, 11L, 17L, 4...
2018 Jan 30
2
Could the Odds represent weight in Generalized Linear Model?
...56, 56, 56, 56, 56, 56, 56, 56, 57, 57, 57, 57, 57, 57, 57, 57, 57, 58, 58, 58, 58, 58, 58, 58, 59, 59, 59, 59, 59, 59, 60, 60, 60, 60, 60, 60, 60, 61, 62, 62, 62, 62, 63, 64, 64, 65, 65, 67, 74), Times = c(6L, 6L, 16L, 6L, 9L, 23L, 33L, 6L, 14L, 17L, 36L, 4L, 9L, 15L, 20L, 26L, 28L, 30L, 33L, 6L, 11L, 14L, 20L, 26L, 28L, 30L, 32L, 4L, 4L, 6L, 9L, 17L, 26L, 28L, 30L, 33L, 44L, 47L, 4L, 6L, 23L, 26L, 32L, 4L, 9L, 11L, 11L, 14L, 14L, 15L, 17L, 18L, 20L, 23L, 26L, 36L, 44L, 50L, 4L, 9L, 28L, 30L, 32L, 4L, 17L, 23L, 4L, 6L, 9L, 9L, 11L, 14L, 25L, 33L, 33L, 51L, 4L, 6L, 14L, 17L, 18L, 26L, 28L, 30L,...
2008 Sep 02
0
Error in .local(object, ...) : test vector does not match model !
...looked at the attributes and type and everything seems the same. Any comments are greatly appreciated. Thanks ../Murli #=========================================================================== sequence.data.train<- structure(list(Class = structure(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("-", "+"), class = "factor"), V1 = structure(c(2L, 1L, 1L, 1L, 1L, 1L, 1L, 4L, 2L, 4L, 2L, 1L, 2L, 4L, 3L, 4L, 4L, 4L, 3L, 3L), .Label = c("a", "c", "g", "t"), class = "factor...
2017 Dec 14
0
help with recursive function
...seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta", "seta"), ent_num = c(23L, 14L, 43L, 30L, 44L, 60L, 17L, 34L, 41L, 40L, 9L, 36L, 38L, 19L, 61L, 51L, 45L, 42L, 3L, 39L, 21L, 11L, 12L, 7L, 35L, 5L, 70L, 47L, 28L, 16L, 72L, 13L, 49L, 67L, 56L, 32L, 27L, 46L, 24L, 63L, 15L, 66L, 26L, 29L, 48L, 1L, 54L, 37L, 2L, 50L, 52L, 31L, 33L, 25L, 6L, 69L, 53L, 10L, 18L, 55L, 59L, 4L, 58L, 22L, 20L, 64L, 71L, 57L, 11L, 17L, 4...