Questions tagged [spread]

This tag relates to the R spread function. For the javascript spread syntax - please use spread-syntax.

Some of the features are:

  1. Powerful Formula Engine with 300+ Excel Functions
  2. Full Excel Import/Export, PDF, and Print
  3. Support Input, Display, and Data Visualization Controls
  4. Visual Drag-and-Drop Designers
420 questions
0
votes
1 answer

Farpoint Spread control captures Ctrl+Z instead fo MenuItem

I have a form where there is shortcut applied to a MenuItem. The problem is that when the focus is inside the Spread control it traps the Ctrl+Z press and the shortcut never fires. If the focus is placed on a different control (ex. TextBox) the…
0
votes
1 answer

can i run two process that use spread on the same machine without them see each other?

I have two process that use spread-toolkit and i want to run them on the same machine but the are not suppose to see each other in the spread. The only simple solution that I can come up with is running to spread instances on different ports and…
yakov
  • 61
  • 2
  • 6
-1
votes
1 answer

Pass properties but make exceptions in React

There is something common that sometimes we all do. Wrap dom elements in custom components Custom component in this example wraps button which has the properties id and title but…
Helmut Granda
  • 4,565
  • 7
  • 35
  • 51
-1
votes
3 answers

why does this function return ['y','e','s']?

can someone please explain it to me how does this function return ['y','e','s'] instead of just the string 'yes' ???? the value of num first will be 8 then else condition will work then num will be [5,6,7] and again the else condition will work then…
xangetsue
  • 15
  • 5
-1
votes
2 answers

Merging several columns with the same headers in R

I have a data frame with several Participant_ID. For each Participant_ID, I have 4 variables (Start_day,End_day,Lights_out and Got_up) and 48 days for each variables (named here:...2 - ...3 - ...) : I'd like to have 6 columns: id- days - Start_day…
Virginie
  • 67
  • 5
-1
votes
2 answers

Create an array of objects from controlled inputs

I have a form with dynamically created inputs. The number of inputs and their name changes depending on fetched data. I'd like to create an array of objects from the values I get from those inputs. const [form, setForm] = useState([]); packages =…
MadGrip
  • 391
  • 4
  • 17
-1
votes
1 answer

Why do I have to use the spread syntax in this case?

I'm attempting to solve this leetcode problem: https://leetcode.com/problems/subsets/ Here's the code that works: function subset(set) { const result = []; helper(set, 0, [], result); return result; } function helper(set, i, slate,…
-1
votes
2 answers

How to spread this array object?

I have the following object: const info = [{ name: 'John', address: 'america', gender: 'Male', job: 'SE' }]; And I need to spread this array object and get this as form:{ name:"John", address:"america", gender:"Male", job:"SE" } How…
prancy
  • 1
  • 2
-1
votes
1 answer

How do you turn categorical rows into columnd?

I am attempting to convert the rows of org_type into columns. Is there a way to do this I tried spread, but I have not had success. Does anyone know how? Below is a picture. r
-1
votes
1 answer

How to read specific properies from array by using spread operator maybe?

I'm adding data to the formData by appending each item from my javascript object and it looks like this: let formData = new FormData(); formData.append('File', document.file); product = { ...values, productType: productT, }; …
Roxy'Pro
  • 4,216
  • 9
  • 40
  • 102
-1
votes
1 answer

Alternative code with tidyr:: spread() of my code with tidyr::pivot_wider()

TLDR: I have a problem with tidyr::pivot_wider() and suspect that it can be a bug of tidyr. I need alternative code with tidyr:: spread() of my code below to find out if it is a bug of tidyr or there is other problem. Or if you have an idea what…
vasili111
  • 6,032
  • 10
  • 50
  • 80
-1
votes
1 answer

Error in running a spread because of unique 'key combinations'; combining rows of data

I'm looking to do a group_by on Google Analytics data where I have a unique user identifier, URL the person went to, and then the number of times the user went to that page. The data come from Google Analytics like this: ID Page …
JAB
  • 115
  • 1
  • 1
  • 9
-1
votes
2 answers

How can I spread a data frame (from long to wide) and preserve two fields' data?

I have a data frame: df <- structure(list(date = structure(c(17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17563, 17564, 17564,…
Mus
  • 7,290
  • 24
  • 86
  • 130
-1
votes
2 answers

Multiple column spread

I have a need to do what is really what tidyr::spread() does, but for multiple value columns. If I have a data set like this: te <- structure(list(Syllable = c("[pa]", "[ta]", "[ka]", "[pa]", "[ta]", "[ka]", "[pa]", "[ta]", "[ka]", "[pa]"), PA =…
Fredrik Karlsson
  • 485
  • 8
  • 21
-1
votes
2 answers

Spreading very long dataset - performance issues

I'm trying to spread a very long data frame (17,000,000 rows; 111.2MB RDS file) into a wide format by a variable with ~2,000 unique values. Running this on a 16 cores 64GB RAM linux machine results in a Error: cannot allocate vector of size…
ceefel
  • 153
  • 1
  • 10
1 2 3
27
28