0, 0, 0, 0, 0, 0, 0, 0,
> > > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
> > > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), RO = c(0,
> > > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
> > > 0, 0, 0, 0, 0, 0, 0, 0, 0
64175415, 34.4827562570572, 7.95454531908035,
> > 75, 0, 0, 0, 0, 0, 0, 5.26393800973892, 0, 0, 0, 0, 0, 0, 0,
> > 0, 0, 74.6153831481934, 84.6153914928436, 0, 5.09554147720337,
> > 0, 0, 0, 21.0884347558022, 18.4549376368523, 6.1224490404129,
> > 25.373136997222
224490404129,
> > 25.3731369972229, 2.12765969336033, 0, 84.3988716602325, 0, 0,
> > 0, 100), awc_class = c(106.228088378906, 78.2306137084961,
> 80.9311141967773,
> > 32.4921531677246, 54.8475151062012, 80.6665878295898, 116.331588745117,
> > 54.84751510620
2812, 453.118286132812,
> 95.2380981445312, 63), se025 = c(163.529998779297, 2.70000004768372,
> 157, 5.5, 6.3019073486, 36.024577637, 86, 5.0990463257,
> 6.4009536743, 6, 8.6980926514, 4, 6.3019073486, 5.8019073486,
> 8.8019073486, 2, 118.809997558594,
"2", "3", "4", "5", "6", "7",
"8", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
"21", "22", "2
Hi Thierry and Petr,
I really appreciate the comments you already gave. Thank you very much for
that.
Below you can find a link to the data and the code. Hopefully this helps in
spotting the error.
I still think the issue is that the cut2 function only accepts numbers, and
not an "i" that refers
day, August 14, 2015 10:16 AM
> To: Michael Dewey
> Cc: r-help@r-project.org
> Subject: Re: [R] cut variable within a loop
>
> Hey Michael,
>
> Sorry for the late reply!
>
> Thanks for your comment, but for the cut2 command, this is not the
> case. If I enter for insta
Hey Michael,
Sorry for the late reply!
Thanks for your comment, but for the cut2 command, this is not the case. If
I enter for instance
Alldata$irri=cut2(irrigation,3)
Then I get 2 intervals from 0-3 and from 3-100.
Janka
2015-08-11 17:25 GMT+02:00 Michael Dewey :
> Dear Janka
> If you suppl
Dear Janka
If you supply a single number to the breaks parameter of cut I think it
is the number of intervals.
On 11/08/2015 13:57, Janka Vanschoenwinkel wrote:
Hi Thierry!
Thanks for your answer. I tried this, but I get this error:
"Error in cut.default(x, k2) : invalid number of intervals"
Hi Thierry!
Thanks for your answer. I tried this, but I get this error:
"Error in cut.default(x, k2) : invalid number of intervals"
Which is strange because I am not specifying intervals, but the number at
where the sample has to be cut?
Greetings from Belgium! :-)
2015-08-11 14:52 GMT+02:00 T
You'll need to send a reproducible example of the code. We can't run the
code that you send. Hence it is hard to help you. See e.g.
http://adv-r.had.co.nz/Reproducibility.html
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kw
Dear Janka,
You loop goes for 0 to 100. It should probably go from 1:99
Best regards,
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belg
12 matches
Mail list logo