? How to create a new variable after comparing values from multiple columns in R?

I have this data frame, q17, below. My goal is replacing "contacts" following these rules:ifelse (any values in q17a, q17d, q17f, q17g <5) then contacts is 1 ifelse (any values in q17a, q17d, q1
 ? Sum values in different rows sharing the same value in a column

Say I have the following dataset:PlotName<- c(A,B,B,C,D,E,F,F,F)NewValue<- c(1,2,1,3,0,0,2,1,3)OldValue<- c(3,3,1,2,1,3,0,3,1)I want to sum NewValue and OldValue values for the elements repea
 ? Separate long and complex names in R

Say I have the following list of full scientific names of plant species inside my dataset:FullSpeciesNames <- c("Aronia melanocarpa (Michx.) Elliott", "Cotoneaster divaricatus Rehder & E. H. Wi
 ? Converting row level details to column values in R

I have data in the below format stored as dataframe in R,Now i need the output as follows,Can anyone provide me the code as how i can transform the data in R for the above mentioned dataset and the br
 ? R draw 2 pie charts with plotly

I have a question about drawing pie charts.Following is my csv raw data: type,com,year,month,valuetype,com,year,month,valueA,CH,2015,1,0A,CH,2015,2,0A,CH,2015,3,0A,CH,2015,4,0A,CH,2015,5,0A,CH,2015,6
 ? Read a CSV from github into R

I am trying to read a CSV from github into R:latent.growth.data <- read.csv("https://github.com/aronlindberg/latent_growth_classes/blob/master/LGC_data.csv")However, this gives me:Error in file(fil
 ? Finding maximum value of one column (by group) and inserting value into another data frame in R

All,I was hoping someone could find a solution to an issue of mine that isn't necessarily causing headaches, but, as of right now, invites the possibility for human error in creating a data set for a
 ? Sliding time intervals for time series data in R

I am trying to extract interesting statistics for an irregular time series data set, but coming up short on finding the right tools for the job. The tools for manipulating regularly sampled time seri
 ? remove row with nan value

let's say, for example, i have this data:data <- c(1,2,3,4,5,6,NaN,5,9,NaN,23,9)attr(data,"dim") <- c(6,2)data [,1] [,2][1,] 1 NaN[2,] 2 5[3,] 3 9[4,] 4 NaN[5,] 5 23
 ? r data.frame create new variable

I have a dataframe with around 1.5 million rows and 5 cols. One variable (VARIABLE) is of this type NATIONALITY_YEAR (e.g. SPAIN_1998) and I want to split it in two columns, one containing the Nationa
 ? How to remove groups of observation with dplyr::filter()

For the following datads <- read.table(header = TRUE, text ="id year attend1 2007 11 2008 11 2009 11 2010 11 2011 18 2007 38 2008 NA8 2009 38 2010 NA8 201
 ? data.table or dplyr - data manipulation

I have the following dataDate Col1 Col22014-01-01 123 122014-01-01 123 212014-01-01 124 322014-01-01 125 322014-01-02 123 342014-
 ? R: create a data frame out of a rolling window

Lets say I have a data frame with the following structure:DF <- data.frame(x = 0:4, y = 5:9)> DF x y1 0 52 1 63 2 74 3 85 4 9what is the most efficient way to turn 'DF' into a data frame with t
 ? Using R to insert a value for missing data with a value from another data frame

All,I have a question that I fear might be too pedestrian to ask here, but searching for it elsewhere is leading me astray. I may not be using the right search terms.I have a panel data frame (country
 ? How to run tapply() on multiple columns of data frame using R?

I have a data frame like the following:a b1 b2 b3 b4 b5 b6 b7 b8 b9D 4 6 9 5 3 9 7 9 8F 7 3 8 1 3 1 4 4 3R 2 5 5 1 4 2 3 1 6D 9 2
 ? Extract non null elements from a list in R

I have a list like this: x = list(a = 1:4, b = 3:10, c = NULL) x #$a #[1] 1 2 3 4 # #$b #[1] 3 4 5 6 7 8 9 10 # #$c #NULLand I want to extract all elements that ar

Page 2 of 1894  |  Show More Pages:  Top Prev Next Last