Displaying 1 result from an estimated 1 matches for "wind_dir_data".
2006 Mar 16
1
filling a matrix with data
Hi,
I've extracted netcdf data in R, and am trying to output it in a matrix
format. I can make the matrix, and I have the data, but I can't get the
matrix to include the data...
I'm not very experienced at using R, so please forgive the crudeness of
these codes...
# For the matrix
wind_dir_data<-matrix( NA, 17, 365 , byrow = FALSE )
wind_speed_data<-matrix( NA, 17, 365, byrow = FALSE )
# to put the data into the matrix
wind_dir_data[level, ]<-wind_dir_corrected
wind_speed_data[level, ]<-rwind
#This is the response from R: "Error in "[<-"(`*tmp*`, lev...