[R] question

dalfardi.s
Tue, 15 Mar 2022 20:15:19 -0000

Hello Dear Bert Gunter

Thank you for your answer it means alot to me.

by the way i am not profesional in R and faced a problem and need to fix
it as soon as possible and it is the reason i ask here but absolutely i
try to improve my skills. but now i need help and said to my self maybe
some one could help me and have similar experience.

Thanks for your answer

Best

On 2022-03-15 21:50, Bert Gunter wrote:

> 1. RStudio is not R; it is a separate for profit organization/company
> that contributes free packages to R and also provides both free and
> non-free R-oriented software. RStudio.com is their website (as you
> know) and https://community.rstudio.com/# is where you can post
> questions about *their* products.
>
> 2. HOWEVER... your query seems to be related to a special (not
> standard) R package, not RStudio, specifically the 'flowr' package.
> This general r-help list is not usually a good place to post queries
> about such specific packages -- there are thousands of them! Maybe you
> will get lucky and someone here will be able to help you.  But it is
> recommended in the posting guide (linked below) that a better option
> is to contact the package maintainer, which you can find via the:
>
> maintainer("flowr")
>
> command at the R console prompt.
>
> Hope this helps.
>
> Bert Gunter
>
> "The trouble with having an open mind is that people keep coming along
> and sticking things into it."
> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip
)
>
> On Tue, Mar 15, 2022 at 10:52 AM dalfardi.s <dalfardi.s at ut.ac.ir>
wrote:
> hello everyone
>
> I faced an problem in Rstudio version 4.1.2 and while i am new in R and
> Rstudio, but i search alot in internet and have thaught about the reason
> of it but all i done didnt fix it.
>
> I have a function of a package named priority flow as bellow:
>
> RIVSMOOTH=RIVERSMOOTH(DEM=TRAVHS$DEM, DIRECTION=TRAVHS$DIRECTION,
>
MASK=FARWATERSHED.MASK,RIVER.SUMMARY=SUBBASIN$SUMMARY,RIVER.SEGMENTS=SUBBASIN$SEGMENTS,BANK.EPSILON
> =0.01,RIVER.EPSILON = 0,D4=C(1,2,3,4),PRINTFLAG = T)
>
> and all needed inputs are available but when i run it give me the bellow
> error:
>
> [1] "No terminal river segments provided, not adjusting DEM"
> Error in RiverSmooth(dem = travHS$dem, direction = travHS$direction,
> mask = FARwatershed.mask, :
> object 'active' not found
>
> I dont know what active object is here? but all other objects are here
> available.i also assighned this needed inputs in different object
> forinstance AA=travHS$dem and then defined AA in the function but it
> return error again.
>
> this is summary of two dataframe that included needed data:
>
> SUMMARY(SUBBASIN)
> Length Class Mode
> segments 4200 -none- numeric
> subbasins 4200 -none- numeric
> RiverMask 4200 -none- numeric
> summary 98 -none- numeric SUMMARY(TRAVHS) Length Class Mode
> dem 4200 -none- numeric
> mask 4200 -none- numeric
> marked 4200 -none- numeric
> step 4200 -none- numeric
> direction 4200 -none- numeric
> basins 4200 -none- numeric
>
> this is part of my work and i really stumbled in it. Is there any one
> could help me?
>
> I really appreciate it.
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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]]