search for: wheat

Displaying 20 results from an estimated 63 matches for "wheat".

Did you mean: what
2004 Sep 06
2
Bug#270019: serial/lp rules for logcheck
At the moment I've no host with which to test ppp/lp things on. If you (or anyone) could provide complete regexes, (each beginning with ^ and ending with $) I will patch the rules accordingly. If not, sending the full log lines is a good start. Thanks! -- [ Todd J. Troxell ,''`. Student, Debian GNU/Linux Developer, SysAdmin, Geek :
2012 Dec 01
1
reading json tables
I'm trying to read two data sets in json format from a single .js file. I've tried fromJSON() in both RJSONIOIO and RJSON packages, but they require that the lines be pre-parsed somehow in ways I don't understand. Can someone help? > wheat <- readLines("http://mbostock.github.com/protovis/ex/wheat.js") > str(wheat) chr [1:70] "var wheat = [" " { year: 1565, wheat: 41, wages: 5 }," ... > The wheat.js file looks like this and defines two tables: wheat and monarch: var wheat = [ { year:...
2017 Oct 18
4
Error messages using nonlinear regression function (nls)
...nlinear regression (nls) to analyze some seed germination data, but am having problems with error codes. The data that I have closely matches the germination dataset included in the drc package. Here is the head of the data temp species start end germinated TotSeeds TotGerminated Prop 1 10 wheat 0 1 0 20 0 0.0 2 10 wheat 1 2 0 20 0 0.0 3 10 wheat 2 3 0 20 0 0.0 4 10 wheat 3 4 0 20 0 0.0 5 10 wheat 4 5 0 20 0...
2013 Apr 19
5
how to subtotal by rows
Dear R-users, I have a dataset as like below, and I want to subtotal the values of rice,wheat and maize by year for each fid. fid      year     rice     wheat      maize ------------------------------------------------ 1        1995      5        NA           NA 1        1995      NA        3           NA 1        1995      NA       NA           2 1        1996      4        NA           N...
2006 Nov 06
1
rule seems to be matching all but last occurrence
Every hour I get a mail from logcheck with a line like Nov 6 12:08:34 wheat fetchnews[13617]: clamping maxage for comp.os.linux.admin to global expire 50 The strange thing is that syslog is filled with similar lines, but this is the only one I get in the report. It is the last such line in each group: # many similar lines deleted Nov 6 12:08:32 wheat fetchnews[13617]: co...
2017 Oct 20
1
Error messages using nonlinear regression function (nls)
...increase your chance to get some answer. I changed your data to groupedData object (see below), but I did not find any problem in it. plot(wlg) gives reasonable picture and I am not such expert to see any problem with data. Seems to me, that something has to be wrong with nlsList function. > wheat.list <- nlsList(Prop ~ SSlogis(end,Asym, xmid, scal), data=wlg) Warning message: 6 times caught the same error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...): NA/NaN/Inf in 'x' produces empty list. So maybe others could find some problem. Cheers Petr > dput(wlg) s...
2010 Apr 29
3
convert Factor as numeric
...meric as I couldn't find any clear answer. Here is my df : Pose1 <- structure(list(DESCRIPTION = structure(c(1L, 2L, 3L, 4L, 5L, 8L), .Label = c(" SUGAR NO.11 May/10 ", "COTTON NO.2 May/10 ", "PLATINUM Jul/10 ", "ROBUSTA COFFEE (10) May/10 ", "WHEAT May/10 ", "PRIMARY NICKEL USD", "PRM HGH GD ALUMINIUM USD", "SPCL HIGH GRADE ZINC USD", "STANDARD LEAD USD"), class = "factor"), POSITION = c(5, 3, -1, 15, 4, 2), SETTLEMENT = structure(c(3L, 5L, 2L, 1L, 4L, 8L), .Label = c("1,353.0000&...
2010 Apr 14
6
sum specific rows in a data frame
I have a data frame called "pose": DESCRIPTION QUANITY CLOSING.PRICE 1 WHEAT May/10 1 467.75 2 WHEAT May/10 2 467.75 3 WHEAT May/10 1 467.75 4 WHEAT May/10 1 467.75 5 COTTON NO.2 May/10 1 78.13 6 COTTON NO.2 May/10 3 78.13 7 COTTON NO.2 May/10 1 78.13 I wo...
2010 May 11
1
merge two data frames
...;GOLD Jun/10", "HENRY HUB NATURAL GAS May/10", "ROBUSTA COFFEE (10) Jul/10", "SILVER May/10", "SOYBEANS Jul/10", "SPCL HIGH GRADE ZINC USD", "STANDARD LEAD USD", "SUGAR NO.11 Jul/10", "SUGAR NO.11 May/10", "WHEAT Jul/10", "WHEAT May/10"), class = "factor"), pl = c(4.75000000000003, -14, -1.5, 7.75, 3.74999999999999, 5.22500000000005, 21.6999999999998, -0.0490000000000013, 68, 45.300, -8.5, -41, -118, 2.72999999999999, -0.900000000000002, -64.25, 0), quantity = c(...
2010 May 11
1
merging data frame
...5L, 6L, 7L, 8L, 9L, 12L), .Label = c("COPPER May/10", "COTTON NO.2 Jul/10", "CRUDE OIL miNY May/10", "GOLD Jun/10", "ROBUSTA COFFEE (10) Jul/10", "SOYBEANS Jul/10", "SUGAR NO.11 Jul/10", "SUGAR NO.11 May/10", "WHEAT Jul/10", "PRIMARY NICKEL USD", "PRM HGH GD ALUMINIUM USD", "SPCL HIGH GRADE ZINC USD", "STANDARD LEAD USD"), class = "factor"), POSITION = c(2, -3, -2, -2, -18, -3, -5, 1, -5, 1), prix = c(702.9, -244.77, -166.48, -2273.8, -24876, -2...
2000 Mar 29
1
A "stack" function
...time to make it elegant and to document it, I thought I would check if I have overlooked an existing way of doing this. Here is an example > library(Devore5) > data(ex10.09) > boxplot(ex10.09) > str(ex10.09) # show the structure `data.frame': 6 obs. of 4 variables: $ Wheat : num 5.2 4.5 6 6.1 6.7 5.8 $ Barley: num 6.5 8 6.1 7.5 5.9 5.6 $ Maize : num 5.8 4.7 6.4 4.9 6 5.2 $ Oats : num 8.3 6.1 7.8 7 5.5 7.2 > stack <- function(data) + data.frame(values = unlist(data), + lev = factor(rep(names(data), lapply(data, length)))) > stack(ex10.09...
2010 Jan 11
3
Illustrating kernel distribution in wheat ears
Dear all R2.10 WinXP I have a dataset dealing with the way different wheat cultivars build their yield. Wheat ears are organised in spikelets where the spikelets can be numbered from the bottom, with even numbers on one side and odd on the other. I know how many kernels there were in each spikelet after some months spent counting them... Now I want to illustrate the diff...
2010 May 26
5
(no subject)
...;GOLD Jun/10", "HENRY HUB NATURAL GAS May/10", "ROBUSTA COFFEE (10) Jul/10", "SILVER May/10", "SOYBEANS Jul/10", "SPCL HIGH GRADE ZINC USD", "STANDARD LEAD USD", "SUGAR NO.11 Jul/10", "SUGAR NO.11 May/10", "WHEAT Jul/10", "WHEAT May/10"), class = "factor"), PL = c(3500, -1874.99999999999, -2612.50000000003, -2169.99999999998, -680, 425, 1025, 1008.00000000000, -3057.59999999999, 3212.5, -1781.25000000001, -2265.0, 75, -387.5, 2950, 490.000000000013, 0), POSITION...
2010 May 11
2
Regex and gsub
...3 <- structure(list(DESCRIPTION = c("COPPER May/10", "COTTON NO.2 Jul/10", "CRUDE OIL miNY May/10", "GOLD Jun/10", "ROBUSTA COFFEE (10) Jul/10", "SOYBEANS Jul/10", "SUGAR NO.11 Jul/10", "SUGAR NO.11 May/10", "WHEAT Jul/10", "SPCL HIGH GRADE ZINC USD", "STANDARD LEAD USD", "CORN May/10", "SILVER May/10", "WHEAT May/10", "COFFEE C Jul/10", "CORN Jul/10", "HENRY HUB NATURAL GAS May/10"), POSITION = c(0, 0, 0, 0, 0, 0, 0, 0, 0...
2003 Oct 21
5
issue with 3.7.1p2
...did the compiles the exact same way. Why would one compile work, but not the other? I would like to migrate to the newer version, since it has some security fixes. Is there something I need to do during compile, or is this a runtime configuration thing? Thanks in advance, Steve -- Steve "Wheat" Belt Motorola, Inc. Steve.Belt at motorola.com 6501 William Cannon Dr. West, MD OE341 512-895-2268 Austin, TX 78735
2010 Aug 04
3
merge two data frames
.../10", "CORN Dec/10", "CRUDE OIL miNY Sep/10", "GOLD Aug/10", "HENRY HUB NATURAL GAS Sep/10", "PALLADIUM Sep/10", "SILVER Sep/10", "SOYBEANS Nov/10", "SPCL HIGH GRADE ZINC USD", "SUGAR NO.11 Oct/10", "WHEAT Sep/10"), prix = c(-168.3, -1.60000000000002, -773.75, -78.75, -1168.3, -0.0919999999999996, -470.75, 1758.5, -975.25, 1964, -19.09, -605.75), pos = c(-1, 0, -2, -1, -1, 0, -1, 1, -1, 1, -1, -1), PL = c(-12.03, -31.68, -43.2, -70.49, -11.88, -95.04, -3.96, -35.64, -30.24, -12.5, -36.09, -4.32)...
2010 Apr 30
1
read.csv and blank character in object name of my data.frame
...= structure(1:9, .Label = c(" SUGAR NO.11 Jul/10 ", " SUGAR NO.11 May/10 ", "CORN May/10 ", "COTTON NO.2 Jul/10 ", "CRUDE OIL miNY May/10 ", "ROBUSTA COFFEE (10) Jul/10 ", "SILVER May/10 ", "SOYBEANS Jul/10 ", "WHEAT May/10 "), class = "factor"), POSITION = c(3, -1, 3, 4, 3, 10, 1, 1, 6), SETTLEMENT = c(17.08, 16.85, 363.25, 82.12, 85.51, 1386, 1843.3, 993, 480.25)), .Names = c("DESCRIPTION", "POSITION", "SETTLEMENT"), row.names = c(NA, 9L), class = "data.fra...
2004 Sep 01
3
Imputing missing values
...le contains missing values (NA), which I want to substitute by the mean of the remaining (non-NA) Price values of the same Season-Crop combination of levels. Price Crop Season 10 Rice Summer 12 Rice Summer NA Rice Summer 8 Rice Winter 9 Wheat Summer Price[is.na(Price)] gives me the missing values, and by(Price, list(Crop, Season), mean, na.rm = T) the values I want to impute. What I've not been able to figure out, by looking at by and the various incarnations of apply, is how to do the actual substitution. Any help would be m...
2009 May 20
10
How to google for R stuff?
...ore distinctive names like Perl, Java, Python, Matlab, OCaml, etc., usually including the name of the language in the query is enough to ensure that the top hits are relevant. But this trick does not work for R, because the letter R appears by itself in so many pages, that the chaff overwhelms the wheat, so to speak. So I'm curious to learn what strategies R users have found to get around this annoyance. TIA! KJ [[alternative HTML version deleted]]
2017 Oct 20
1
Error messages using nonlinear regression function (nls)
Thank you Martin. If I understand correctly, OP could do wheat.list <- nlsList(Prop ~ SSfpl(end, A, B, xmid, scal), data=wlg) or add some small value to all zeroes wlg$prop < -wlg$Prop+1e-7 wheat.list <- nlsList(prop ~ SSlogis(end,Asym, xmid, scal), data=wlg) which gives fairly reasonable results. plot(augPred(wheat.list)) Am I correct? Cheers Pe...