Questions tagged [data-conversion]

This tag refers to the process of converting the data type of one piece of information into another type.

1963 questions
0
votes
2 answers

Struct to byte array with bigEndian

Hi Im trying to find way how to convert struct to byte array (from little endian to big) I know how to convert struct to byte array but question is how to do it with conversion from little to big endian. Data in struct is in luttle endian but data…
MacColl
  • 11
  • 1
0
votes
1 answer

How to share a data.frame in R?

I need to provide a data frame for a MWE, result of other complex operations and tons of data not directly related to the point of the question. In order to make the example simple and lean, is there a way to transform/convert the data frame into a…
juanmah
  • 1,130
  • 1
  • 14
  • 21
0
votes
1 answer

Convert Binary QString to QPixmap

I'm receiving a binary thru FTP and storing it as a QString. The original image was BMP but to pass through FTP I converted it to QPixmap. I'm able to successfully receive this binary but I can't convert back to a QPixmap or some sort of format to…
user8057102
0
votes
0 answers

Convert a currency to a number

I have strings in currency format which i have to convert to float without using any js library. 2 079,15 EUR as an example should return 2079.15 Is there a simple way to do it ? the solution proposed in How to convert a currency string to a double…
Hassan ALAMI
  • 318
  • 1
  • 5
  • 18
0
votes
1 answer

Convert Large Document Term Document Matrix into Matrix

I've got a large Term Document Matrix. (6 elements, 44.3 Mb) I need to covert it into a matrix but when trying to do it I get the magical error message: "cannot allocate 100 GBs". Is there any package/library that allows to do this transformation in…
Dario Federici
  • 1,228
  • 2
  • 18
  • 40
0
votes
1 answer

SQL Server 2008 convert float to time

Could You please help me with convert float to time? I have values (number of hours) which look like: [- 104.59 / -104:35:00], [0.25 / 00:15:00], [5,84 /05:50:00] I can't find solution, because on the similar questions there weren't case…
0
votes
1 answer

Negative values while converting hex color in rgba (JavaScript)

My problem is to convert a hexadecimal color string, with alpha value, and obtain the four channels R G B A. The lenght of the string is 8 (for example: 4faabbaa) I've tried the following code, with bitwise operators, to convert the string and…
devpelux
  • 2,492
  • 3
  • 18
  • 38
0
votes
1 answer

Unicode (Hexadecimal) to varchar conversion

Here is the problem, the system I use can create a saved search which basically generates a 'Where' clause and saves it in the database as type Image .. I am trying to convert the image entry to a readable format, it is saved in 2 forms (Unicode and…
0
votes
0 answers

how to use cast function when the data conversion fails

My query fails with the following error: Conversion failed when converting from a character string to uniqueidentifier. My query in SQL Server 2012: SELECT DISTINCT cst_recno as [Member ID], reg_key, ind_first_name as 'First name', ind_last_name as…
user7948585
0
votes
1 answer

Convert BW Image to Matrix

After converting an image x to a black and white image by using im2bw(x), imfilter returns black and white images only. How can I convert this black and white image into a normal matrix such that imfilter can return a matrix of reals? Demo: >> k =…
Ell
  • 4,238
  • 6
  • 34
  • 60
0
votes
2 answers

Add fractions of a month to a Date

I was looking all over the internet for this functionality but couldn't find any acceptable solution Simple question, How can you add 1.5 month to a DateTime, AddMonth accepts only integer as a parameter. and yes i know i can use AddDays, but it…
Alex G
  • 595
  • 6
  • 21
0
votes
1 answer

How to convert Mat to matrix of dlib

I creating program using CNN where I need insert a matrix of 192 channels. This matrix (width: 32, height: 240, channels: 192, type: uchar) is stored in Mat (OpenCV). How convert Mat to dlib matrix? std::vector>…
gulliver
  • 86
  • 2
  • 9
0
votes
2 answers

How would I convert a species x site dataframe into a matrix?

I have a dataframe (in the form of an excel file) with rows of sampled sites and columns of each species (sp). A very standard community ecology species by sites matrix but in dataframe format. example data (note i added a column for site names as…
Leo Ohyama
  • 887
  • 1
  • 9
  • 26
0
votes
0 answers

Map of to map of ;

Currently, I have a vector of maps that contain strings as keys and size_t as a count which was useful to have as size_t before. example of current vector: (std::vector> allFiles;) Now I need to multiply those counts…
nomim
  • 51
  • 6
0
votes
2 answers

Converting URL titles to standard titles

Suppose I have this following list [('2015-2016-regular', '2016-playoff'), ('2016-2017-regular', '2017-playoff'), ('2017-2018-regular',)] which represents the two previous complete NHL years and the current one. I would like to convert it so that…
user8802531
1 2 3
99
100