The rtruncnorm() function will return the results you need.
library(truncnorm)
rtruncnorm(n=10, a=0, b=340, mean=39.4, sd=25.09)
More Related Contents:
- How to resolve “invalid number of 'breaks'” [closed]
- R fulfill empty cells with previous values [closed]
- Calculate gradient of data in R (or other) [closed]
- Error: could not find function … in R
- Simultaneously merge multiple data.frames in a list
- How to save plots that are made in a shiny app
- Aggregate a data frame based on unordered pairs of columns
- Sample from vector of varying length (including 1)
- Histogram with Logarithmic Scale and custom breaks
- Convert named list to vector with values only
- Using R to list all files with a specified extension
- What’s the differences between & and &&, | and || in R? [duplicate]
- File path issues in R using Windows (“Hex digits in character string” error)
- How to create grouped barplot with R [duplicate]
- What is the right way to multiply data frame by vector?
- How to plot a hybrid boxplot: half boxplot with jitter points on the other half?
- How do I use functions in one R package masked by another package? [duplicate]
- How to reorder a legend in ggplot2?
- How do I clear only a few specific objects from the workspace?
- How to run lm models using all possible combinations of several variables and a factor
- What’s the difference between `1L` and `1`?
- Concatenate rows of a data frame
- How to deal with “data of class uneval” error from ggplot2?
- Issue with ggplot2, geom_bar, and position=”dodge”: stacked has correct y values, dodged does not
- Count unique values for every column
- R data.table breaks in exported functions
- Remove part of a string in dataframe column (R)
- How to remove strange characters using gsub in R? [duplicate]
- R, car package unable to load
- Failure to connect to odbc database in R