[R] Convert one rectangle into two rectangles

Avi Gross @v|gro@@ @end|ng |rom ver|zon@net
Tue Apr 26 19:24:35 CEST 2022


>>> Is it possible to do this in R?

Is it possible?
Yes, I am sure if it can be done in any language, it can also be done in R.
The real question is do you have an algorithm you can come up with to try to implement in R or any other method?
You know the lengths of your initial rectangle. So you can calculate your area.
You can also calculate what 45% and 55% of that area is.
Hint: are you being asked to make two totally new rectangles with an infinite number of solutions, or subdivide the existing rectangle into two joined parts? That can lead to two fairly easy answers.

-----Original Message-----
From: javad bayat <j.bayat194 using gmail.com>
To: R-help using r-project.org
Sent: Tue, Apr 26, 2022 5:20 am
Subject: [R] Convert one rectangle into two rectangles

Dear R users;
I want to convert a rectangle into 2 new rectangles. I have a rectangle (18
m * 200 m), and I want to subtract 45 percent of it's area as a new
rectangle. Is it possible to do this in R?
Sincerely.

    [[alternative HTML version deleted]]

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]



More information about the R-help mailing list