s<-matrix(1:25,5)
s[lower.tri(s)] = t(s)[lower.tri(s)]
More Related Contents:
- Several questions on ggplot2 [closed]
- object I am trying to take the mean of is not found
- How to create a consecutive group number
- Explicitly calling return in a function or not
- Consistent width for geom_bar in the event of missing data
- Importing Excel files into R, xlsx or xls
- Removing empty rows of a data file in R
- Meaning of ~. (tilde dot) argument?
- Grouped barplot in R with error bars
- Why do some Unicode characters display in matrices, but not data frames in R?
- Read Excel file from a URL using the readxl package
- Replace NA values by row means
- Interpretation of ordered and non-ordered factors, vs. numerical predictors in model summary
- Dealing with timestamps in R
- Randomly insert NAs into dataframe proportionaly
- How can I make a discontinuous axis in R with ggplot2?
- Can dplyr join on multiple columns or composite key?
- Subset xts object by time of day
- Remove all punctuation except apostrophes in R
- Select rows of a matrix that meet a condition
- How to make variable bar widths in ggplot2 not overlap or gap
- How to group by two columns in R
- Plot inside a plot
- Add an image to a table-like output in R
- How to use empty space produced by facet_wrap?
- Save imported csv data in vector – R
- Function to concatenate paths?
- How can I label points in this scatterplot?
- Error when using predict() on a randomForest object trained with caret’s train() using formula
- Aggregating all unique values of each column of data frame