Displaying 20 results from an estimated 32 matches for "126l".
Did you mean:
126
2012 Mar 23
5
How to convert factors to numbers
...R")
data.precios <- read.table ("p_diarios.txt ", header =TRUE
, dec=",", sep="\t")
Time <- data.precios$time # 01.02.2004 - 12.05.2011
Price <- data.precios$price # Historical spot price
log.Price <- log(data.precios$price)
Error en Math.factor(c(12L, 126L, 213L, 342L, 160L, 186L, 219L, 37L, 54L, :
log not meaningful for factors
As you can see, I cannot calculate the price logarithms.
Any help is appreciated.
Sandro
--
View this message in context: http://r.789695.n4.nabble.com/How-to-convert-factors-to-numbers-tp4498828p4498828.html
Sent fro...
2010 Sep 06
3
Finding the two most recent dates
...1st_event = structure(c(14784,
14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784
), class = "Date"), bp_date = structure(c(12660, 14571, 13392,
13080, 12012, 13080, 13894, 14622, 12654, 13894), class = "Date"),
SBP = c(135L, 160L, 135L, 153L, 150L, 153L, 151L, 126L, 150L,
151L), DBP = c(85L, 80L, NA, 79L, 82L, 79L, 76L, 60L, 82L,
91L)), .Names = c("prochi", "date_1st_event", "bp_date", "SBP",
"DBP"), row.names = 108:117, class = "data.frame")
It consists of repeated measures for the same...
2011 Nov 08
2
nesting scale_manual caracteristics in ggplot
...2L, 2L, 2L, 3L, 3L, 3L, 4L, 4L, 4L, 5L, 5L, 5L,
6L, 6L, 6L, 7L, 7L, 7L), .Label = c("A", "B", "C", "D", "E",
"F", "G"), class = "factor"), total = c(135L, 118L, 121L, 64L,
53L, 49L, 178L, 123L, 128L, 127L, 62L, 129L, 126L, 99L, 183L,
45L, 57L, 45L, 72L, 30L, 71L, 123L, 89L, 102L, 60L, 44L, 59L,
124L, 145L, 126L, 103L, 67L, 97L, 66L, 76L, 108L, 36L, 48L, 41L,
69L, 47L, 57L, 167L, 136L, 176L, 85L, 36L, 82L, 222L, 149L, 171L,
145L, 122L, 192L, 136L, 164L, 154L, 46L, 57L, 57L, 70L, 55L,
102L, 111L, 152L, 204L, 41L,...
2009 Feb 26
1
using predict method with an offset
...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( qlogis( 0.25 ), nrow(c1) )
# offset d...
2013 Feb 27
2
matrix multiplication
...255L, 363L, 298L, 373L, 416L, 200L, 56L,?
263L, 288L, 13L, 305L, 291L, 17L, 53L, 130L, 458L, 385L, 198L,?
158L, 140L, 492L, 249L, 27L, 134L, 479L, 171L, 177L, 9L, 355L,?
398L, 380L, 404L, 304L, 129L, 338L, 281L, 65L, 386L, 144L, 252L,?
77L, 352L, 20L, 96L, 403L, 296L, 268L, 489L, 63L, 424L, 496L,?
126L, 334L, 183L, 232L, 406L, 407L, 163L, 346L, 287L, 475L, 127L,?
321L, 124L, 237L, 308L, 376L, 212L, 423L, 211L, 329L, 437L, 179L,?
253L, 372L, 101L, 251L, 90L, 433L, 311L, 241L, 327L, 422L, 349L,?
493L, 442L, 38L, 449L, 410L, 370L, 421L, 325L, 451L, 240L, 71L,?
392L, 2L, 151L, 332L, 83L, 350L, 87L, 3...
2013 Jan 03
2
Sas by function in R
Hello,
It's an alternative to use SAS by function in R?
I want to plot d histograms by plot.from example bellow:
Thank you!
plot d
1 1 16.3
2 1 25.0
3 1 57.8
4 1 17.0
5 2 10.8
13 2 96.4
17 3 76.0
18 3 32.0
19 3 11.0
20 3 11.0
24 3 106.0
25 3 12.5
21 4 19.3
22 4 12.0
26 4 15.0
27 5 99.3
32 7 11.0
36
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
...L 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 model.frame.default(formula = cbind(Cor...
2009 Aug 07
1
ggplot2-ddply question
...38L, 39L, 40L, 41L, 42L, 43L, 44L, 45L, 46L,
47L, 49L, 50L, 51L, 52L, 53L, 54L, 55L, 56L, 57L, 58L, 60L, 61L,
68L, 79L, 90L, 93L, 94L, 95L, 96L, 97L, 98L, 69L, 70L, 71L, 72L,
73L, 74L, 75L, 76L, 77L, 78L, 80L, 81L, 82L, 83L, 84L, 85L, 86L,
87L, 88L, 89L, 91L, 92L, 99L, 110L, 121L, 123L, 124L, 125L, 126L,
127L, 128L, 100L, 101L, 102L, 103L, 104L, 105L, 106L, 107L, 108L,
109L, 111L, 112L, 113L, 114L, 115L, 116L, 117L, 118L, 119L, 120L,
122L, 2L, 13L, 24L, 27L, 28L, 29L, 30L, 31L, 32L, 3L, 4L, 5L,
6L, 7L, 8L, 9L, 10L, 11L, 12L, 14L, 15L, 16L, 17L, 18L, 19L,
20L, 21L, 22L, 23L, 25L, 26L, 33L, 34L, 35L...
2016 Apr 22
1
Unique Ordering
...177L, 176L, 172L, 174L, 173L,
171L, 169L, 170L, 166L, 168L, 167L, 163L, 165L, 164L, 162L, 160L,
161L, 159L, 157L, 158L, 156L, 154L, 155L, 153L, 151L, 152L, 148L,
150L, 149L, 147L, 145L, 146L, 142L, 143L, 144L, 139L, 140L, 141L,
138L, 137L, 136L, 135L, 133L, 134L, 132L, 130L, 131L, 127L, 129L,
128L, 126L, 124L, 125L, 121L, 122L, 123L, 120L, 118L, 119L, 117L,
115L, 116L, 112L, 114L, 113L, 109L, 110L, 111L, 106L, 108L, 107L,
105L, 103L, 104L, 102L, 100L, 101L, 99L, 97L, 98L, 94L, 96L,
95L, 93L, 91L, 92L, 90L, 88L, 89L, 85L, 86L, 87L, 84L, 82L, 83L,
81L, 79L, 80L, 76L, 77L, 78L, 75L, 73L, 74L, 72L, 70...
2013 Apr 11
1
Dotchart per groups
...L, 47L, 66L, 86L, 88L, 122L, 11L, 16L, 94L, 95L,
115L, 123L, 24L, 80L, 78L, 111L, 103L, 3L, 22L, 23L, 10L, 107L,
97L, 75L, 96L, 106L, 102L, 118L, 7L, 110L, 30L, 59L, 76L, 114L,
74L, 104L, 1L, 64L, 73L, 54L, 58L, 19L, 69L, 92L, 14L, 119L,
18L, 127L, 41L, 15L, 8L, 49L, 91L, 65L, 120L, 113L, 93L, 17L,
126L, 29L, 105L, 90L, 77L, 81L, 45L, 38L, 85L, 39L, 53L, 9L,
121L, 125L, 109L, 101L, 48L, 52L, 84L, 21L, 60L, 72L, 56L, 124L,
57L, 12L, 112L, 13L, 4L, 26L, 89L, 116L, 27L, 128L, 20L, 117L,
40L, 33L, 28L, 37L, 25L), class = "data.frame")
I use this codes (I made them more simple for this post)...
2007 Oct 02
2
plot question
Hello,
I have a question about how to plot a series of data. The folloqing is my
data matrix of n
> n
25p 5p 2.5p 0.5p
16B-E06.g 45379 4383 5123 45
16B-E06.g 45138 4028 6249 52
16B-E06.g 48457 4267 5470 54
16B-E06.g 47740 4676 6769 48
37B-B02.g 42860 6152 19276 72
35B-A02.g 48325 12863 38274 143
35B-A02.g 48410 12806 39013 175
35B-A02.g 48417 9057 40923
2018 May 16
1
Systemfit Question
...16L, 253L, 283L, 291L,
323L,
327L, 295L, 296L, 292L, 210L, 270L, 374L, 3L, 484L, 42L,
47L, 51L, 121L, 123L, 198L, 337L, 336L, 385L, 55L, 60L,
54L,
71L, 78L, 70L, 64L, 436L, 67L, 79L, 93L, 129L, 133L,
152L,
158L, 163L, 154L, 131L, 136L, 126L, 145L, 185L, 179L,
194L,
214L, 219L, 296L, 322L, 378L, 422L, 452L, 480L, 508L,
166L,
119L, 76L, 68L, 72L, 77L, 79L, 67L, 62L, 65L, 63L, 59L,
63L,
74L, 92L, 112L, 149L, 206L, 225L, 195L, 227L, 308L,
329L,
363L, 405L, 444L, 446L, 448L, 4...
2009 Feb 25
2
[R] length 1 offset in glm (& lm)
This post about length 1 offsets on R help seems to have been ignored
(sorry deleted original email - is there a way to continue thread in
this case?)
https://stat.ethz.ch/pipermail/r-help/2009-February/189352.html
It does seem to be a bug, in that glm does not behave as documented. In
fact the same bug applies to lm as well.
I don't think the suggested fix works though - Y isn't
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
2008 Jul 06
2
lattice question
...2L,
2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L,
3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), .Label =
c("Negative",
"Neutral", "Positive"), class = "factor"), value = c(153L, 157L,
151L, 152L, 129L, 129L, 89L, 134L, 129L, 126L, 125L, 106L, 108L,
120L, 148L, 109L, 128L, 123L, 132L, 111L, 142L, 139L, 146L, 156L,
153L, 167L, 123L, 161L, 177L, 178L, 163L, 175L, 140L, 141L, 143L,
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...
2011 Nov 14
3
max & min values within dataframe
dear R-team
I need to find the min, max values for each patient from dataset and keep
the output of it as a dataframe with the following columns
- Patient nr
- Region (remains same per patient)
- Min score
- Max score
Patient Region Score Time
1 1 X 19 28
2 1 X 20 126
3 1 X 22 100
4 1 X 25 191
5 2 Y 12 1
2018 May 16
0
Systemfit
...??????????????????????????????????????71L,
>78L, 70L, 64L, 436L, 67L, 79L, 93L, 129L, 133L, 152L,?
>
>???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????158L,
>163L, 154L, 131L, 136L, 126L, 145L, 185L, 179L, 194L,?
>
>???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????214L,
>219L, 296L, 322L, 378L, 422L, 452L, 480L, 508L, 166L,?
>
>???????????????????????????????????...
2017 Dec 06
2
Odd dates generated in Forecasts
...141L, 155L, 169L, 183L,
197L, 211L, 225L, 239L, 253L, 267L, 281L, 295L, 309L, 323L, 337L,
351L, 365L, 379L, 393L, 407L, 421L, 435L, 449L, 463L, 477L, 491L,
505L, 519L, 533L, 547L, 561L, 575L, 589L, 603L, 617L, 631L, 645L,
659L, 673L, 687L, 701L, 715L, 729L, 13L, 27L, 41L, 55L, 69L,
83L, 97L, 111L, 126L, 140L, 154L, 168L, 182L, 196L, 210L, 224L,
238L, 252L, 266L, 280L, 294L, 308L, 322L, 336L, 350L, 364L, 378L,
392L, 406L, 420L, 434L, 448L, 462L, 476L, 490L, 504L, 518L, 532L,
546L, 560L, 574L, 588L, 602L, 616L, 630L, 644L, 658L, 672L, 686L,
700L, 714L, 728L, 12L, 26L, 40L, 54L, 68L, 82L, 96L, 110L,...
2018 May 15
2
Systemfit
...??????????????????????????????????????????????????????71L, 78L, 70L, 64L, 436L, 67L, 79L, 93L, 129L, 133L, 152L,?
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????158L, 163L, 154L, 131L, 136L, 126L, 145L, 185L, 179L, 194L,?
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????214L, 219L, 296L, 322L, 378L, 422L, 452L, 480L, 508L, 166L,?
???????????????????????????????????????????????????????...