1. M

    what is wrong with my code

    I'm generating a random numbers x,y between -10 and 10 then I create an if statement to classify each pair(x,y) in 4 quadrant in the following if statement but the column quad give me all 4 so why? x <- runif(n=400, min = -10, max = +10) y <- runif(n=400, min = -10, max = +10)...
  2. T

    Loop through values - only first element is used

    Hi everybody, i feel this is very baisc but i need a hand. I want to use the strsplitfunction on characters in a data.frame but under certain conditions! If the condition is met --> split character and take the first two stringparts If the condition is not met --> split the character and take...