Error in plot.window(...) : need finite 'xlim' worths In addition: Warning messages:1: In min(x) : no non-missing arguments to min; return Inf2: In max(x) : no non-missing arguments to max; returning -Inf3: In min(x) : no non-missing debates to min; returning Inf4: In max(x) : no non-missing debates to max; returning -InfIf you try to display screen the obelisk using the assigned variables:

table$xResult:

NULLHow would certainly I deal with this? I especially want my function to require separate names for the column names alone and the table name alone.

You are watching: No non-missing arguments to min; returning inf


10 comments
share
save
hide
report
75% Upvoted
This object is archived
New comments cannot be posted and also votes cannot be cast
Sort by: best


*

level 1
· 4y
Your trouble is the table$x is trying to find a column called x, not one referred to as whatever you're storing in the x variable the duty takes together input. To get the meant behavior, try table<,x>

Also that looks prefer you want to pass speed and distance as strings when calling the function: plotting("speed", "distance", cars)


3
Share
ReportSave
level 2
Op · 4y

Thanks, I obtained it to job-related with table<,x> as soon as using the correct name v quotation marks roughly it once using the function.


1
Share
ReportSave
level 1
· 4y

It looks like you have a working answer, however it's worth mentioning that it is feasible to avoid having actually to "string quote" the change names once you call the function, if friend really desire to. It's quite an advanced concept and not generally worth bothering, however maybe you'll need it one day. It's just how dplyr and also the various other tidyverse packages work, and also you can read the NSE vignette to discover more.


2
Share
ReportSave
level 1
· 4y

What is table?

I'd gambling there room some Inf, NaN, or NA worths in her data.


1
Share
ReportSave
level 2
Op · 4y

table is the third entry as soon as using the function, in this instance I provided the "cars" dataset developed into R which includes no missing values or anything choose that.

The problem seems come be that it won't allow me usage table$x, I would still need to use table$distance also though I have the word distance assigned come x.

See more: How To Fix Nexus 4 Wont Turn On And Blinking Red Notification Light Only


1
Share
ReportSave
Continue this thread 


More articles from the Rlanguage community
Continue looking in r/Rlanguage
r/Rlanguage
We room interested in implementing R programming language because that statistics and data science.
25.7k
Members


20

Online


Created Feb 11, 2011
Join
*
*
*
*

*

Top posts june 21st 2017Top short articles of june, 2017Top write-ups 2017
helptastecraftedmcd.com coinstastecraftedmcd.com premiumtastecraftedmcd.com gifts
aboutcareerspressadvertiseblogTermsContent policyPrivacy policyMod policy
Back to Top