Posts by Letícia Lara • 147 points
3 posts
- 
		2 votes1 answer709 viewsQ: How to replace values with NA using element encoding (not position)?I’m having trouble replacing values on a vector with NA, but using treatment coding (not position). A simple and hypothetical example of my problem is (my data set is too large and I have several… 
- 
		7 votes1 answer83 viewsQ: How to use contents of an array to mount the name of a file to be saved?I’ve tried to use colnames(), names() and nothing works. My data is something like that (however, I have 38,000 names and 38,000 columns): nomes <- c("nome105", "outro.nome_26", "qualquerCoisa")… 
- 
		5 votes2 answers620 viewsQ: How to smooth a curve and define ylim for a given function using ggplot2?I got the following graph with the curve function: f1 <- function(x){x^4 - 6*(x^2)} curve(f1, xlim = c(-3, 3), ylim= c(-10, 5), ylab = expression(x^4 - 6*(x^2))) However, I would like to use the…