I'm analyzing data from a Redshift database, working in R using a connection per dplyr - which works:
my_db<-src_postgres(host='my-cluster-blahblah.redshift.amazonaws.com', port='5439', dbname='dev',user='me', password='mypw')
mytable <- tbl(my_db, "mytable")
viewstation<-mytable %>%
filter(stationname=="something")
When I try to turn that output into a data frame, so:
thisdata<-data.frame(viewstation)
I get the error message, Warning message:
Only first 100,000 results retrieved. Use n = -1 to retrieve all.
Where am I supposed to set n?