user02

1

votes
0

answer
59

views

Leaflet setview() to look at County Map

Hello all experts out there, I am very new to R and leaflet I would like to create a shiny dashboard and within it, I want to create a map with leaflet. Here is how I want it to be, first, the user will pick a state, then, you may or may not pick a county. So if they pick a state I would like to us...
user02
1

votes
0

answer
119

views

R- Merge csv file with shapefile

I would like to merge shapefile with a data frame and I receive the following error Error in match(bx, by, 0L) : 'match' requires vector arguments My code is mydat
user02
1

votes
0

answer
107

views

Save Base64 String as Image to gallery in iPhone/Android - IONIC

I am trying to save generated qr Code to gallery of mobile, for that i am using Base64ToGallery plugin. Base64ToGallery Plugin is saving image in the following path ' /var/mobile/Containers/Data/Application/D453CNA6-ACC1-40F1-916A-D73B5A13975C/Library/NoCloud/_img4622783188.png' in iPhone. But i can...
User02
-1

votes
0

answer
14

views

sum the minimum of the column when the column contains a negative value

I have a dataframe like this idx A B C D 1 0.01 0.01 0.03 0.01 2 -0.01 -0.02 0.04 -0.01 3 0.02 -0.03 0.02 0.05 4 0.03 0.01 0.01 0.01 What I need to do is shifting all the series by their minimum value, when the series contains a negative value. I w...
user02
1

votes
1

answer
3.5k

views

Python- combine two lists to make a list of lists [duplicate]

This question already has an answer here: How to declare and add items to an array in Python? 7 answers What is the syntax to insert one list into another list in python? 5 answers Split list into different variables 1 answer I want to combine two lists into a list of lists. And vice versa. I can...
user02
2

votes
3

answer
54

views

Calculate distances in multi-dimensional matrix

I wrote this code to calculate the distance. But getting error of ValueError: math domain error. import math a=[[5, 10], [16, 23]] b=[[6, 1], [21, 2]] dL=[] dist=[] k=0 h=1 for i in range(len(a)): dL=[] for j in range(len(a)): d=math.sqrt((a[i][k]-b[j][k])^2 + (a[i][h]-b[j][h])^2) dL.append(d) dist....
user02
8

votes
4

answer
199

views

Python- Removing items

I want to remove item from a list called mom. I have another list called cut mom= [[0,8,1], [0, 6, 2, 7], [0, 11, 12, 3, 9], [0, 5, 4, 10]] cut =[0, 9, 8, 2] How do I remove what in cut from mom, except for zero? My desire result is mom=[[0,1],[0,6,7],[0,11,12,3],[0,5,4,10]]
user02
3

votes
1

answer
202

views

How to convert nested list of numbers to list of strings?

I have a list of lists below p=[[1,2,3,4],[2,3,4,1]] How do I put the sublist into a string? For example, desire result is: p=['1234','2341']
user02