search for: item_num

Displaying 2 results from an estimated 2 matches for "item_num".

Did you mean: item_name
2009 May 25
0
Or operator on working on the r-objects doesn't generate a logical value
...this,shown below with two values 3 and 4:--- x 1 3 2 4 *STEP-II *For creating the string with these values returned by function 1 i have another function2. These values when passed to function 2 ,returns something like this:--- > source("myscript.R") [1] "dataset[record_num,item_num]=='3' || dataset[record_num,item_num]=='4' " type of the above text prepared is "list" Say it is text<- dataset[record_num,item_num]=='3' || dataset[record_num,item_num]=='4' *Step-III* Now this 'text ' is passed to another function3 where...
2012 Nov 14
3
numbering observations: help please!
Dear Friends, I have the very simple problem of needing to number observations in a data frame. After scratching the rest of my hair off my head without inspiration, I'm using a silly loop. I'm sure that there is a much more elegant and faster solution - can anyone help? Here is an example: my.data <- data.frame (person=c(1,1,1,1,2,2,3,3,3,3,3,3,3,4,4,4)) # now I want to number