search for: 94l

Displaying 20 results from an estimated 54 matches for "94l".

Did you mean: 948
2011 Nov 10
2
plotting a function with given formula in ggplot2
Hi All, I have a scatter plot produced using ggplot2 and I want to add the regression line to this scatter plot. I suppose I can use geom_smooth() to do this, but for the sake of learning ( I am new both to R and ggplot2), I want to try and add it as a function (something that curve() does in the standard R plotting). I did some search and found that stat_function() can be used for this. But
2010 Mar 16
3
function arguments: name of an object vs. call producing the object?
..."factor")), mental = structure(c(1L, 2L, 3L, 4L, 1L, 2L, 3L, 4L, 1L, 2L, 3L, 4L, 1L, 2L, 3L, 4L, 1L, 2L, 3L, 4L, 1L, 2L, 3L, 4L), .Label = c("Well", "Mild", "Moderate", "Impaired"), class = c("ordered", "factor")), Freq = c(64L, 94L, 58L, 46L, 57L, 94L, 54L, 40L, 57L, 105L, 65L, 60L, 72L, 141L, 77L, 94L, 36L, 97L, 54L, 78L, 21L, 71L, 54L, 71L)), .Names = c("ses", "mental", "Freq"), row.names = c(NA, -24L), class = "data.frame") -- Michael Friendly Email: friendly AT yorku DOT ca...
2011 Jul 01
2
Initiating in BNArray
...34L, 35L, 36L, 37L, 38L, 39L, 40L, 41L, 42L, 43L, 44L, 45L, 46L, 47L, 48L, 49L, 50L, 51L, 52L, 53L, 54L, 55L, 56L, 57L, 58L, 59L, 60L, 61L, 62L, 63L, 64L, 65L, 66L, 67L, 68L, 69L, 70L, 71L, 72L, 73L, 74L, 75L, 76L, 77L, 78L, 79L, 80L, 81L, 82L, 83L, 84L, 85L, 86L, 87L, 88L, 89L, 90L, 91L, 92L, 93L, 94L, 95L, 96L, 97L, 98L, 99L, 100L, 101L, 102L, 103L, 104L, 105L, 106L, 107L, 108L, 109L, 110L, 111L, 112L, 113L, 114L, 115L, 116L, ...... ...... ..... V2 = structure(c(278L, 23L, 11L, 169L, 14L, 86L, 94L, 51L, 37L, 43L, 22L, 169L, 49L, 120L, 18L, 60L, 42L, 41L, 38L, 64L, 38L, 32L, 140L, 146L...
2012 Jul 17
1
Script help: Determining Time Difference between two data points.
...SIXct", "POSIXt"), tzone = ""), Score = c(80L, 11L, 81L, 152L, 130L, 122L, 142L, 20L, 1L, 31L, 93L, 136L, 128L, 112L, 48L, 57L, 92L, 108L, 100L, 107L, 81L, 37L, 47L, 70L, 114L, 125L, 99L, 46L, 108L, 106L, 111L, 75L, 75L, 136L, 36L, 13L, 35L, 71L, 105L, 113L, 116L, 116L, 94L, 130L, 102L, 19L, 1L, 33L, 78L, 89L, 115L, 130L, 117L, 105L, 0L, 36L, 80L, 130L, 124L, 124L, 66L, 75L, 57L, 94L, 124L, 165L, 170L, 158L, 127L, 116L, 107L, 118L, 150L, 96L, 101L, 59L, 38L, 46L, 77L, 83L, 54L, 61L, 60L, 55L, 110L, 127L, 129L, 87L, 61L, 70L, 85L, 110L, 131L, 151L, 123L, 50L, 77L,...
2008 Oct 09
1
YALAQ - Yet Another LApply Question
...A, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA), stat = c(0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 0L), dam = c(NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, 2L, NA, NA), yrc = c(95L, 95L, 95L, 95L, 93L, 95L, 93L, 95L, 94L, 95L, 95L, 95L, 94L, 96L, 93L, 93L, 95L, NA, 95L, 95L), az = c(NA, 172L, NA, NA, 276L, NA, 243L, NA, 221L, 2L, 80L, 270L, 342L, NA, 240L, 170L, 6L, NA, NA, 155L), dist = c(NA, 11.21, NA, NA, 8.1, NA, 15.94, NA, 9.11, 9.23, 6.39, 6.45, 10.88, NA, 12.42, 15.19, 15.16, NA, NA,...
2012 Jul 19
1
Truncating (rounding down) to nearest half hour.
...IXct", "POSIXt"), tzone = ""), Score = c(80L, 11L, 81L, 152L, 130L, 122L, 142L, 20L, 1L, 31L, 93L, 136L, 128L, 112L, 48L, 57L, 92L, 108L, 100L, 107L, 81L, 37L, 47L, 70L, 114L, 125L, 99L, 46L, 108L, 106L, 111L, 75L, 75L, 136L, 36L, 13L, 35L, 71L, 105L, 113L, 116L, 116L, 94L, 130L, 102L, 19L, 1L, 33L, 78L, 89L)), .Names = c("Date", "Score"), row.names = c(NA, 50L), class = "data.frame") I'm trying to round the time down to the nearest half hour, without losing the date. For example, 01/01/2009 1:29 would round to 01/01/2009 1:00, wh...
2008 Sep 26
2
Date Time conversion
what am I doing wrong? chron(as.character(f), format=c(dates="%m/%d/%y", times="%h:%m")) f <- structure(c(51L, 60L, 66L, 87L, 90L, 115L, 23L, 35L, 37L, 6L, 12L, 55L, 84L, 96L, 109L, 17L, 29L, 41L, 3L, 74L, 94L, 102L, 30L, 8L, 46L, 69L, 107L, 15L, 25L, 39L, 1L, 71L, 95L, 19L, 56L, 62L, 76L, 85L, 99L, 111L, 42L, 4L, 52L, 61L, 67L, 91L, 13L, 24L, 36L, 38L, 7L, 81L, 82L, 57L, 64L, 100L, 113L, 21L, 33L, 44L, 78L, 54L, 73L, 83L, 108L, 16L, 28L, 2L, 58L, 65L, 86L, 101L, 32L, 43L, 77L, 93L, 104L, 10L, 48L, 53L,...
2009 Feb 26
1
using predict method with an offset
...n there is a newdata argument. In the example below, the behavior is the opposite of the help page, if I am understanding it correctly, and a warning is thrown when it does seem to work as desired. c1 <- structure(list(Contr = c(0.028, 0.043, 0.064, 0.097, 0.146, 0.219 ), Correct = c(34L, 57L, 94L, 152L, 160L, 160L), Incorrect = c(126L, 103L, 66L, 8L, 0L, 0L)), .Names = c("Contr", "Correct", "Incorrect" ), row.names = c("13", "15", "17", "19", "21", "23"), class = "data.frame") q25 <- rep(...
2011 Jul 07
2
How do I overlay two trellis plots of lme fitted lines produced by plot.augPred?
...42 )), .Names = c("ptno", "age", "y"), row.names = c(1L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 25L, 26L, 27L, 28L, 29L, 30L, 31L, 32L, 44L, 45L, 46L, 47L, 48L, 49L, 50L, 51L, 52L, 53L, 77L, 78L, 79L, 80L, 81L, 82L, 83L, 84L, 85L, 86L, 87L, 88L, 89L, 90L, 91L, 92L, 93L, 94L, 95L, 96L, 97L, 98L, 99L, 100L, 101L, 102L, 103L, 104L, 105L, 106L, 107L, 108L, 109L), class = "data.frame") library(nlme) grpdat = groupedData(y ~ age | ptno, data = tmpdat, FUN = mean, labels = list(x="Age...
2013 Feb 27
2
matrix multiplication
...From: eliza botto <eliza_botto at hotmail.com> To: "smartpink111 at yahoo.com" <smartpink111 at yahoo.com> Sent: Wednesday, February 27, 2013 8:47 AM Subject: RE: matrix multiplication there you go >dput(eliza) structure(c(428L, 359L, 353L, 498L, 169L, 46L, 29L, 444L, 194L,? 439L, 284L, 79L, 226L, 105L, 106L, 326L, 234L, 196L, 417L, 190L,? 480L, 275L, 478L, 341L, 197L, 395L, 85L, 295L, 70L, 18L, 471L,? 218L, 19L, 43L, 280L, 427L, 229L, 5L, 205L, 494L, 393L, 307L,? 465L, 383L, 265L, 103L, 348L, 166L, 58L, 320L, 14L, 107L, 440L,? 24L, 347L, 419L, 135L, 202L, 294L, 173L...
2014 Sep 01
1
Correlation Matrix with a Covariate
...9, 3), hare = c(20, 32, 10, 16, 11, 11, 15, 15, 35.294118, 33, 26, 22, 27, 27, 22, 33, 33, 32, 34, 29.473684, 27.368421, 20, 8.421053, 32, 27, 30, 30, 31, 24, 16.842105, 15.789474, 25, 26, 30, 23, 29, 10, 22, 16, 29, 30, 27, 24 ), ext_t = c(193L, 374L, 127L, 181L, 198L, 112L, 208L, 194L, 185L, 224L, 275L, 204L, 235L, 257L, 149L, 279L, 320L, 322L, 188L, 220L, 273L, 206L, 129L, 296L, 223L, 277L, 156L, 195L, 219L, 155L, 167L, 176L, 220L, 227L, 224L, 195L, 150L, 277L, 134L, 285L, 255L, 225L, 176L), total_barrat_11_imputed = c(52, 49.65517241, 49, 50, 59, 33, 80, 59...
2012 Nov 14
2
aggrete data from combination
...71L, 71L, 73L, 73L, 73L, 73L, 74L, 74L, 74L, 74L, 75L, 75L, 75L, 75L, 76L, 76L, 76L, 76L, 78L, 78L, 78L, 79L, 79L, 80L, 80L, 81L, 81L, 81L, 81L, 82L, 82L, 82L, 83L, 83L, 83L, 84L, 85L, 85L, 85L, 87L, 87L, 87L, 87L, 87L, 87L, 88L, 88L, 88L, 88L, 89L, 89L, 90L, 91L, 91L, 91L, 91L, 91L, 92L, 93L, 93L, 94L, 95L, 95L, 95L, 95L, 96L, 96L, 96L, 97L, 97L, 98L, 98L, 98L, 98L, 99L, 100L, 100L, 100L, 100L, 100L), d = c(15, 27.5, 10.5, 12.25, 14, 32.5, 80, 49.5, 15.25, 13.5, 12.25, 12, 72.5, 68.5, 12, 9.25, 12.75, 13.5, 28, 38, 10.25, 62.5, 73.5, 61.5, 54.5, 40, 24.25, 43, 13, 20.75, 23.25, 25.5, 7.25, 11.25...
2012 May 03
2
Help with readBin
I'm trying to read a binary file created by a fortran code using readBin and readChar. Everything reads fine (integers and strings) except for double precision numbers, they are read as huge or very small number (1E-250,...). I tried various endianness, swap, But nothing has worked so far. I also tried on R 64 bit for linux and windows (R 2.14) and R 2.11 on windows XP 32 bit. Any help would
2008 Jul 06
2
lattice question
...217L, 206L, 185L, 192L, 203L, 196L, 190L, 195L, 192L, 217L, 210L, 181L, 197L, 222L, 123L, 168L, 156L, 169L, 178L, 178L, 149L, 181L, 175L, 177L, 168L, 153L, 179L, 139L, 156L, 142L, 115L, 135L, 143L, 164L, 158L, 111L, 119L, 131L, 120L, 160L, 141L, 161L, 123L, 135L, 152L, 135L, 164L, 191L, 183L, 81L, 94L, 74L, 90L, 77L, 62L, 57L, 74L, 71L, 71L, 77L, 72L, 63L, 77L, 83L, 63L, 68L, 83L, 71L, 81L, 73L, 70L, 81L, 91L, 91L, 78L, 93L, 75L, 71L, 64L, 62L, 51L, 56L, 47L, 51L, 93L, 66L, 74L, 67L, 70L, 66L, 71L, 60L, 71L, 79L, 73L, 96L, 81L, 89L, 54L, 63L, 52L, 48L, 48L, 57L, 69L, 101L, 109L, 89L, 74L, 96L, 9...
2008 Dec 09
2
Need help optimizing/vectorizing nested loops
...300L, 163L, 65L, 145L, 377L, 257L, 690L, 655L, 420L, 288L, 346L, 461L, 1276L, 897L, 633L, 812L, 1018L, 1337L, 1295L, 1163L, 550L, 1104L, 768L, 933L, 433L), V9 = c(555L, 478L, 374L, 349L, 357L, 360L, 905L, 954L, 552L, 438L, 703L, 984L, 1616L, 1732L, 1234L, 1213L, 1518L, 1746L, 1191L, 967L, 1394L, 1722L, 1706L, 610L, 169L), V10 = c(1527L, 1019L, 926L, 401L, 830L, 833L, 931L, 816L, 1126L, 1232L, 1067L, 1169L, 1270L, 1277L, 1145L, 1159L, 1072L, 1534L, 997L, 391L, 1328L, 1414L, 1037L, 444L, 1L), V11 = c(1468L, 1329L, 1013L, 603L, 1096L, 1237L, 1488L, 1189L, 1064L, 1303L, 1258L, 1479L...
2009 Oct 06
2
ggplot cumsum refined question (?)
...7L, 38L, 39L, 40L, 41L, 42L, 43L, 44L, 45L, 46L, 47L, 48L, 49L, 50L, 51L, 52L, 53L, 54L, 55L, 56L, 57L, 58L, 59L, 60L, 61L, 62L, 63L, 64L, 65L, 66L, 67L, 68L, 69L, 70L, 71L, 72L, 73L, 74L, 75L, 76L, 77L, 78L, 79L, 80L, 81L, 82L, 83L, 84L, 85L, 86L, 87L, 88L, 89L, 90L, 91L, 92L, 93L, 94L, 95L, 96L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 18L, 19L, 20L, 21L, 22L, 23L, 24L, 25L, 26L, 27L, 28L, 29L, 30L, 31L, 32L, 33L, 34L, 35L, 36L, 37L, 38L, 39L, 40L, 1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 12L, 13L, 14L, 15L, 16L, 17L, 1...
2010 Apr 19
1
What is mclust up to? Different clusters found if x and y interchanged
...2L, -67L, -59L, -62L, -68L, -61L, -58L, -69L, -57L, -59L, -67L, -73L, -81L, -90L, -87L, -82L, -80L, -80L, -81L, -83L, -90L, -89L, -107L, -122L, -128L, -113L, -124L, -93L, -89L, -92L, -85L, -79L, -84L, -83L, -148L, -142L, -127L, -130L, -123L, -131L, -85L, -87L, -90L, -81L, -65L, -81L, -119L, -121L, -94L, -90L, -117L, -95L, -69L, -122L, -103L, -85L, -106L)), .Names = c("mine", "dCu65", "dD"), class = "data.frame", row.names = c(NA, -130L))
2012 Feb 21
2
Dataframes in PLS package
I have been working with the pls procedure and have problems getting the procedure to work with matrix or frame data. I suspect the problem lies in my understanding of frames, but can't find anything in the documentation that will help. Here is what I have done: I read in an 10000 x 8 table of data, and assign the first four columns to matrix A and the second four to matrix B pls <-
2009 Feb 23
0
length 1 offset in glm
...an page offset ... This should be NULL or a numeric vector of length either one or equal to the number of cases. ... but with the following example, I get an error if the offset is of length 1 c1 <- structure(list(Contr = c(0.028, 0.043, 0.064, 0.097, 0.146, 0.219 + ), Correct = c(34L, 57L, 94L, 152L, 160L, 160L), Incorrect = c(126L, + 103L, 66L, 8L, 0L, 0L)), .Names = c("Contr", "Correct", "Incorrect" + ), row.names = c(NA, 6L), class = "data.frame") glm(cbind(Correct, Incorrect) ~ Contr - 1, binomial, data = c1, offset = qlogis(0.25)) Error in...
2011 Jan 19
1
Using subset to filter data table
...y", "LithClass"), row.names = c(1L, 2L, 4L, 5L, 6L, 7L, 8L, 12L, 14L, 16L, 17L, 20L, 21L, 23L, 24L, 26L, 27L, 28L, 30L, 31L, 35L, 36L, 37L, 38L, 40L, 41L, 42L, 43L, 44L, 45L, 46L, 47L, 48L, 55L, 56L, 58L, 59L, 61L, 62L, 65L, 66L, 67L, 69L, 71L, 72L, 76L, 78L, 79L, 80L, 88L, 92L, 93L, 94L, 95L, 96L, 97L, 98L, 99L, 100L, 102L, 103L, 104L, 105L, 106L, 107L, 108L, 109L, 112L), class = "data.frame") The data (in the "structure") is removed, but the labels for all LithClass remain. If I then produce a boxplot or some other graphic where LithClass is involved, blank p...