Error in hist.default: 'x' must be numeric - histogram

I want to make multiple histogram for my data but it always throws an error.
Error in hist.default: 'x' must be numeric
my data structure:

Related

How to Parse out a Data Column with Multiple Messages

I have a simple query that is returning data that has a field which contains more than 1 data piece
Current Data below in the error msg detail field.
Document #1
---INPUT ERROR---
Error: Data Missing
Element: Insert the right data into table 2
---INPUT ERROR---
Error: Data Missing
Element: Missing Data from dimension
What I would like to see is that flatten out...Like this..There could be more than 2 error msgs.
ErrorId Error Element 1 Element 2
1 Data Missing Insert the right data into table 2 Missing Data from dimension

Excel Power Query: Passing parameter to oDataFeed URL throws error

When a direct number for the TestPlanID is given it works.
When passing the value from sheet to a Query and then appending it to URL throws an error.
Expression.Error: We cannot apply operator & to types Text and Number.
Details:
Operator=&
Left=https://analytics.dev.azure.com/OrgName/ProjName/_odata/v3.0-preview/TestPoints?$apply=filter((TestSuite/TestPlanId eq
Right=39128
Can you try
eq"""&varTPID&"""
If value of varTPID is an integer/decimal, can you change the first line in power query to varTPID=Text.From(varTestPlanID) and then use eq"""&varTPID&"""
Also I think, TestPoints?"&"$apply needs to be changed to TestPoints?$apply

PG::NumericValueOutOfRange: ERROR: value "34531513513513" is out of range for type integer

I needed to test the creation of a record in the database. I went to the page with the form, randomly entered the value "34531513513513" in the title field. Selected values from select for belongs_to. And in the end I clicked on "Add".
As a result, the record was added to the database, and the controller action made me a redirect to index where I received this error:
ActiveRecord::RangeError - PG::NumericValueOutOfRange: ERROR: value "34531513513513" is out of range for type integer
The error is caused by this code:
scope :order_by_title, (lambda do
order(Arel.sql("left(lower(posts.title), 1), substring(posts.title, '\\d+')::int NULLS FIRST, posts.title"))
end)
Specifically:
substring(posts.title, '\\d+')::int
Tell me, please, how can I fix this code? But the sorting logic needs to be preserved.
P. S. I understand that for me it is most likely a very rare bug in production (because with 99% probability I will not use such large numbers in titles). But I still wonder how to solve this problem.

In QUERY on unique values, NO_COLUMN error

I have a list of U.S. states where duplicate values are also available. I need to find how many unique states are there in a list.
'Unique' function returns all the unique states but in conjunction with 'query' function the following error message is returned:
Unable to parse query string for Function QUERY parameter 2: NO_COLUMN: A
=query(unique(A3:A26),"Select count(A)")
What am I doing wrong?
Having reconstructed the data (after UNIQUE it is different) you can't then continue with letters for column references. So:
=query(unique(A3:A26),"Select count(Col1)")

Data type mismatch in foxpro stored procedure

I want to make a copy of every record inserted in jobact to a new table jobactupdates. I am using a stored procedure for this purpose. Both tables are exactly the same and have same no of columns. When I insert data in jobact using insert query then, the stored procedure fails and show the Data Type mismatch error.
My code looks like this:
PROCEDURE insertData
INSERT INTO jobactupdates (jobcode ,jobdescr ,fileno ,port ,mastcode ,mastdescr ,mastdescr1 ,shipper ,goods ,unit1 ,qty ,unit ,vesname ,arremarks ,arrdate ,remarks ,docstat ,docdate ,blno ,bldate ,jastat ,rate ,demand ,received ,balance ,transpor,dldate);
VALUES(jobact.jobcode,jobact.jobdescr,jobact.fileno,jobact.port,jobact.mastcode,jobact.mastdescr,jobact.mastdescr1,jobact.shipper,jobact.goods,jobact.unit1,jobact.qty,jobact.unit,jobact.vesname,jobact.arremarks,jobact.arrdate,jobact.remarks,jobact.docstat,jobact.docdate,jobact.blno,jobact.bldate,jobact.jastat,jobact.rate,jobact.received,jobact.balance,jobact.transpor,jobact.dldate);
ENDPROC
A Data Type Mismatch error occurs when you try to insert an inappropriate data type into a field. For example, if you try to store a string into an integer field. I would double check the table structures and confirm that they are identical.
Another thing to be aware of is if any of the JOBACT field types are set to Integer (AutoInc). They will have to be set to just Integer in the JOBACTUPDATES table. Otherwise you will get a "Field is read-only" error message.
For
Character fields: write them into '' marks,
Numeric fields: just numbers for example 123,
Date fields: {^yyyy-mm-dd}
(There can also optionally be time in Date field.)
Is this your actual query? If so, the fact your Columns and Values clauses contain different field lists has certainly caused this error:
Insert Into ...
bldate,
jastat,
rate,
demand,
received,
balance ..
Values ...
jobact.bldate,
jobact.jastat,
jobact.rate,
jobact.received, <--
jobact.balance, <--
jobact.transpor <--
.

Resources